Question

PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /  ...

PART 4: Learn about commands to navigate the directory tree structure:

  1. use the ls –ali /   command to review the contents of the / directory
  2. Review the Linux Filesystem Standard (FSSTD) and document the following directories’ contents

/ -------

|--bin

|--boot

              |--dev

              |--etc

|--home

              |--lib

              |--mnt

              |--opt

              |--root

              |--sbin

              |--tmp

              |--usr

              |--var

3. use the cd etc  OR cd /etc  to change your default directory to the etc directory

4. use the ls –ali command to review the contents of the /etc directory

5. now, change your directory to /dev and use the ls –ali command to review the contents of the /dev directory

6. get back to your home directory and use the mkdir test1 command to make a directory in your home directory

7. use the cd command to change into the test1 directory

8. create a file in the test1 directory by touch file1

9. use the ls command to view the details of the file1 , What options do you use to see the detail?

10. rm file1

11. exit the test1 directory

12.  rmdir test1

13. use the cd, mkdir, and cp commands to make a directory named test in your home directory and copy the  /etc/passwd file to /home/test/passwd.bak file  

type:   cp /etc/passwd   passwd.bak

Homework Answers

Answer #1

3.) cd etc
4.) ls -ali
5.) cd.
cd dev
ls -ali
6.) cd ~ // move to home directory
mkdir test1
7.) cd test1
8.) touch file1
9.) ls -lh // list with option -l and -h for detailed information of files in human readable format
10.) rm file1 // delete file
11.) cd. // move to parent directory
12.) rmdir -r test1 // remove directory, -r is used for recursively delete all containing files and directory as well.
13.) cd ~ // move to home directory
mkdir test // create test directory
cp /etc/passwd passwd.bak // copy file

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Hello, I'm new to UNIX and I am asked to use the ls –ali / command...
Hello, I'm new to UNIX and I am asked to use the ls –ali / command to review the contents of the / directory. I did that, but then I am asked to review the Linux Filesystem Standard (FSSTD) and document the following directories’ contents, e.g. |--home |--lib    |--mnt My question is, what command can I use to document the contents of these directories? Could you please show me a screenshot of the results I am supposed to get...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
Write UNIX commands to perform the following tasks. Each task must use exactly one line of...
Write UNIX commands to perform the following tasks. Each task must use exactly one line of command. Unless stated otherwise, all files are assumed to be at your current working directory. a) (10 points) Print your current working directory into a file named file1 b) (10 points) Assume that your current working directory is NOT the same as your home directory. Print all file and subdirectory names of your home directory into a file named file2. c) (15 points) Copy...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT