Type cd and then hit enter key. Now, create a directory lab2 and perform following steps...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Operating Systems Design And Implementation
ISBN: 9780131429383
3rd Edition
Authors: Andrew Tanenbaum, Albert Woodhull
Posted Date:
Students also viewed these computer network questions
-
please make your Terminal window larger by resizing the window if you have not already done so so that we capture as much as possible (drag lower right corner with your mouse). Again note you may not...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
What are the lessons of the 1997 Asian financial crisis? Were the IMF supported adjustment programs successful in their objective? Were there flaws in their design?
-
10 kmol of methane gas are heated from 1 atm and 298 K to 1 atm and 1000 K. Calculate the total amount of heat transfer required when (a) Disassociation is neglected. (b) When disassociation is...
-
On January 1, 2023, Corgan Company acquired 80 percent of the outstanding voting stock of Smashing, Inc., for a total of $980,000 in cash and other consideration. At the acquisition date, Smashing...
-
Describe the differences between domestic and international HRM.
-
Valuing Bonds The Marigold Corporation has two different bonds currently outstanding. Bond M has a face value of $20,000 and matures in 20 years. The bond makes no payments for the first six years,...
-
What is the difference between enterprise-based and price-based multiples? Give an example of each and explain why they are defined as belonging to each category. 2.Why and how the incentive...
-
Elastic bands are attached to tuning fork 1 ( which was 2 5 6 Hz ) to reduce its frequency. It is sounded again with tuning fork 2 ( 2 5 5 Hz ) , making 1 2 beats in 6 . 0 s . What is the new...
-
On January 1, 20X5, Pastel Colors Corporation purchased drilling equipment for $11,500. The equipment had an estimated useful life of four years and a salvage value of $500. Assuming that Pastel...
-
Long Island Rum accounts for production costs using the FIFO method of process costing. Direct materials are all added at the beginning of production and conversion costs are incurred uniformly...
-
Extra credit: Who sued the production of Straight Outta Compton for a false portrayal of him? You are going to have to look this one up.
-
Assuming the variable costs, the depreciation expense, and the rent and utilties would all remain the same, but the bonus is based on the variable cost of goods manufactured per unit decreasing by...
-
Wells Technical Institute (WTI), a school owned by Tristana Wells, provides training to individuals who pay tuition directly to the school. WTI also offers training to groups in off-site locations....
-
Silver Company Ltd. leased an equipment to Grey Company on January 1, 2015. The equipment has an economic life of 8 years. The term of the non-cancellable lease is 7 years. Silver Company determined...
-
In exchange for land, the company received a 12-month note on January 1. The face amount of the note is $1,000, and the stated rate of interest is 13%, compounded annually. The 13% rate is equal to...
-
Using a financial calculator, solve for the unknowns in each of the following situations. a. On June 1, 2024, Holly Golightly purchases lakefront property from her neighbor, George Peppard, and...
-
Ed owns Oak Knoll Apartments. During the year, Fred, a tenant, moved to another state. Fred paid Ed \($1,000\) to cancel the two-year lease he had signed. Ed subsequently began renting the unit to...
-
In 2017, Harry and Mary purchased Series EE bonds, and in 2023 redeemed the bonds, receiving \($500\) of interest and \($1,500\) of principal. Their income from other sources totaled \($30,000.\)...
Study smarter with the SolutionInn App