From the course: Command Line Data Analysis

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Files and directories

Files and directories - Unix Tutorial

From the course: Command Line Data Analysis

Files and directories

- [Instructor] Let's discuss files and directories. In the Unix system, everything is a file, and the hierarchy of the Unix file system can be pretty complicated. This is one example from Wikipedia about the standard Unix file system and depending on the Unix system that you're using, Debian, Red Hat and others, it can vary. But we are going to look at how to work with files. So to know where you are, you can use the PWD, present working directory. And now we know what is the current directory that we are. The less command can be used to list files. So let's look at the data directory and I see the files there. I can add a dash L to the less command for a long format and now I get more information about the files, about the owner, permissions, et cetera, et cetera. But the sizes are in bites, which are not that helpful. So let's add another switch. And this is the age for human. And now we can see the sizes in human…

Contents