IT 1100 : Introduction to Operating Systems

Chapter 3


Directory Tree Structure

Linux, OSX and Windows all have different directory tree structures. Even different versions of Linux have unique directory structures.

This is an example of an Ubuntu Linux directory structure. You should gain a basic understanding of the types of files stored in each of these directories.

Linux Directory Structure Example

More detailed information is contained in WES-3.


Navigation

Although the exact file and directory names will differ between Operating Systems and Distributions, the way that you navigate through them is generally the same - Directories(Folders) and Files. Directories can be inside of other directories. You can go in and out of directories, down and up the tree.

Since we are using the command line instead of the mouse - spelling is important. You must type everything exact.


Color Coding

As you navigate through the Linux directory tree and run the ls command you will notice the different colors of the names. Although each terminal is slightly different. These are some File Type Colors:


Command Structure

Everything you type on the command line will have the same basic structure. As you learn each new command watch closely for this structure. It will help you remember the correct syntax for your commands.

command -options arguments

Arguments are simply the directory(ies) or file(s) that we want to run the command on.

Options are our preferences as to how the command runs.

Some commands have options and some have arguments. Sometimes options and arguments are required and sometimes they are optional. Sometimes both, sometimes none. It all depends on the command itself.

However, everything always begins with a command.

And there is always a space between the command and the options and the arguments.


Textbook Time

Read and Complete the Excercises in the Book


Last Updated 12/15/2017