Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Type cd and then hit enter key. Now, create a directory lab2 and perform following steps in lab2 directory. root bin etc users tmp

image

Type cd and then hit enter key. Now, create a directory lab2 and perform following steps in lab2 directory. root bin etc users tmp usr john work work carol play 1. Create the directory tree depicted in the above Figure. Navigate to root directory and use tree command to view the directory structure. Redirect the result of tree command in Tree.txt file. 2. Navigate to play directory. In play directory, create a file a2notes.txt using vi editor and add following lines. Open the file a2notes.txt using vi editor to view the contents of the file. a. This is A2. Username is - (your username) b. Hello World! 3. Navigate to the tmp directory. In tmp directory, create a file a3notes.txt using nano editor and add following lines. Then save and exit from the file. Again, open the file a3notes.txt using nano editor to view the contents. a. Today is: b. Hello World! (date) Current time is: 4. Write a command to find the current working directory. Then check the inode number of a3notes.txt file (file in tmp directory). 5. Navigate to play directory. Now copy a2notes.txt to root directory in a single command. Then navigate to tmp. Now copy a3notes.txt to root directory using single command. 6. Go to root directory in single command. Use grep command find the word day in both the files. 7. Count all lines in a2notes.txt that contain the word "day". Find the type of files (a2notes.txt and a3notes.txt, if they are ACSII text files or not). 8. Use find command to find files a2notes.txt and a3notes.txt in your home directory and its subdirectories. Go to root directory and Email to yourself the files Tree.txt, a2notes.txt and a3notes.txt. Create a file that contains ALL commands used to produce this assignment (starting form creation of root directory), called assign2.txt, then email yourself this file as well. Submit the files on Slate :- Asessments -> Lab 2 NOTE: Masks will be deducted if you submit incomplete history. Submission in Compressed Folder will not be evaluated.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Operating Systems Design And Implementation

Authors: Andrew Tanenbaum, Albert Woodhull

3rd Edition

0131429388, 978-0131429383

More Books

Students also viewed these Computer Network questions

Question

What is quality of work life ?

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

Why is the chroot system call limited to the superuser?

Answered: 1 week ago

Question

=+a) Whats the expected profit?

Answered: 1 week ago