Question: Assignment: Perform simple linux commands and capture a screen shot of the output Requirements: Provide a series of screen shots of your Linux console that

Assignment: Perform simple linux commands and capture a "screen shot" of the output

Requirements: Provide a series of "screen shots" of your Linux console that shows the following:

From you home directory, create some nested directories called one/two/three. Use the "tree" command to show that it worked

Descend into the "two" directory and copy the /etc/passwd file there

Move the passwd file from the "two" directory to the "one" directory. Use "ls" to show that it's there

Create some empty files at the "two" directory called "test1", "test2", and "test3". Use "ls" to show that they are there

Show the long file listing of just test1 and test2 using wildcards

From the home directory, show the long listing of one/passwd file

From the home directory, delete the one/passwd file. Use "ls" to show that it's gone

Show the manual page for the "mkdir" command

Show the manual page for the "mkdir" API function

Create an alias called "home" that does two things... returns you to your home directory, then does a long listing of all files found there

Create a file called "Output.txt" that contains the output of the "ls /etc" command

Using "cat", create a file called "poem.txt" where you enter at least one line of text ("Mary had a little lamb" will do...)

Using "cat", pipe the contents of poem.txt into the "wc" command to count the number of words

Using "cat" and "grep", display only the lines in /etc/passwd that has contain your user name

Display the last 5 lines of the /etc/passwd file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!