Create a sub-directory within your home directory and call


Remember to use the correct email subject header - Unix/Linux Assn 2

Your home directory is where you are placed within the UNIX filesystem upon logging in to the system. After logging in, determine where your home directory is.

A) Give the complete path of your directory.

What is the path of my home directory relative to yours?

(I want the relative path. Do not use the ~ syntax.)

Create a directory called tempdir within your home directory. cd into tempdir and touch a file called tempfile. cd back up to your home directory.

Using the rm command, remove the directory called tempdir.

A) What happened and why? (Be specific)

(Be careful with the next command)

Using the command rm -r, remove the directory called tempdir.

B) What does the -r option of the rm command do?

Create a sub-directory within your home directory and call it dir1. cd into dir1 and using the touch command, create a file called file1.

A) How large is the file, file1,in bytes?

B) What is the creation date/time on the file?

In the /etc directory there is a file called group. Construct a grep command string to search this file for the string root and output a count of the number of lines that the string appears in. (Do NOT use wc to do this)

A) How many lines did the string root appear in within the file called group?

B) Which grep command option did you use?

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Create a sub-directory within your home directory and call
Reference No:- TGS0591407

Expected delivery within 24 Hours