View Files and Folders in Bash

InstructorCameron Nokes

Share this video with your friends

Send Tweet

Sometimes when working at the command line, it can be handy to view a file’s contents right in the terminal, or open a file with a certain application. We’ll learn how to view files in the terminal using cat and less and we’ll learn how to open them with open.

Mark Lagendijk
Mark Lagendijk
~ 3 years ago

The 'open' command is Mac specific. On Linux you can use 'xdg-open'.

Brendan Whiting
Brendan Whiting
~ 2 years ago

It says 'the branch name corresponds to the particular lesson' but all I see is master, on GitHub as well.

Cameron Nokes
Cameron Nokes(instructor)
~ 2 years ago

Hey Brendan, that's a convention that egghead has that doesn't really make sense for this course. All the example files are in master. Sorry for any confusion.

Hakan Karaduman
Hakan Karaduman
~ 2 years ago

The 'open' command is Mac specific. On Linux you can use 'xdg-open'.

And on windows you can use explorer command

SSD
SSD
~ 2 years ago

In windows you can use start . to open the current folder in the file explorer.