Unix Fundamentals Individual Project 1

Submitted by: Submitted by

Views: 34

Words: 614

Pages: 3

Category: Science and Technology

Date Submitted: 02/04/2015 09:41 AM

Report This Essay

Jason Martin

CS126-1501A-02 Unix Fundamentals

01/12/2015

UNIX Commands – Input and Output

1.) The cd or “change directory” command will show you where you are currently at within the directory structure. The command is intended to allow a user to move throughout the shell’s directory structure to add, delete, or to make any necessary changes to a file system. In this example, since the cd command was only used without any path, then it will keep a user in the current directory.

2.)

The mkdir or “make directory” command allows the user to create a directory within the directory structure or file system. In the above command the intention was to create a directory named apache in the file system. As you can see with the ls command, apache is now a directory within the home or root directory.

3.)

The cd APACHE command is intended for the user to access or choose the APACHE directory. However, UNIX is case sensitive and sense the directory is lowercase (apache), you receive a no such file or directory.

4.)

The cd apache command is similar to the previous command, however, when this specific command is entered in the shell, it moves the user into the apache directory within the file system. You can determine which directory you are in by seeing ~/apache#. This shows that you are in the apache directory within the root or home directory.

5.)

The pwd command shows the user the path to the current directory that they are working in. In the screenshot above, you can see that I’m in the apache directory and by using the pwd command I can see the specific path to the apache directory. The path is /root/apache. So I’m in the apache directory within the root or home directory.

6.)

The command cd ../../../../../../../etc sends the user to the /etc directory as this can be verified with the ls command which shows all the files such as configuration files in the etc file. The ../ signifies going back a directory in the file system, so in this particular...