Intro to UNIX/Linux Chapter 7- Lab Name: Sec: Self Test 1 from the textbook. 1) What...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Intro to UNIX/Linux Chapter 7- Lab Name: Sec: Self Test 1 from the textbook. 1) What is the command to create a directory named Proposals? 2) What command changes your current directory to the Proposals directory? 3) What command changes your current directory back to the home directory? 4) What shell command can you enter to identify your current directory? 5) What 1s command option tells 1s to distinguish files from directories in its output? 6) Your home directory is your current directory, and you enter the command s cd Projects You then create a file named confused. What directory will list the confused file? 7) How is it possible to have two files with the same filename in your account? 8) Assume your home directory is your current directory. What command will move a file named florence to a directory named Proposals, which is a subdirectory of the home directory? 9) Assume you want to move the file ideas from the current directory to a subdirectory named Work, and you enter the following command: S mv ideas Work When you examine the Work directory, the file is not listed there. Where is it? Chapter 7- Lab 1o) In the current directory, what command would list the files of a subdirectory named Cows and distinguish between files and directories? Self Test 2 from the textbook. 1) What command takes you back to the previous directory? Assume you are using a bash shell. 2) What directory can a user be in to access a file using commands with arguments such as: A. S more /etc/passwd B. S more Studydiary C. S more Desk/journal D. S more Desk/journal 3) At this point, we have specified directories using a variety of instructions. In the following table, a cd command, including its argument, is on the left. Fill in the result of entering the specified cd command on the right- which directory will you change into? Command Result S cd .. Change to parent directory. S cd. ../bill s cd - S cd -/bill S cd -bill s cd -bill/bill s cd /bill $ cd bill Chapter 7- Lab Solve the following problems from Self Test 2 by first sketching a directory tree of the information presented. Show your work below. page 3 Directory Tree Sketch 4) Assume your current directory is not known. What command changes your current directory to a directory named Education, which is listed in a directory named Proposals, which is listed in your home directory? 5) From your home directory, what command do you enter to edit a file mikekerby that is listed in the Proposals directory? 6) From any directory, how can you create a directory Rejected, listed in the Proposals directory in your home directory? 7) Regardless of your current directory, how would you copy a file selquist from your home directory into Education, which is a subdirectory of the Proposals directory that is listed in your home directory? 8) What command changes your directory to the parent directory? 9) What command changes into the Marilyn directory listed in your home directory? 10) Assume the directories Programs and Letters have the same parent directory (your home directory) and that you are currently in the Programs directory. How do you change your current directory from Programs to Letters? page 4 Chapter 7- Lab 11) How would you move the file report7 in the current directory to the parent directory? 12) How can you copy all files from the current directory to the parent? 13) Given that you are located in your home directory, what are three different ways you can create a directory named Junkyvard in a subdirectory called Location that is in your home directory? i) ii) iii) 14) You are in your home directory, using the vi editor to edit a ffile called client-list that is under Proposals Contracts, You end the (vi) session. Which directory are you in now? 15) What command do you issue to use the vi editor to edit the file cats in the home directory of the user named Chris? 16) What command will copy a file called rhino to a subdirectory Africa and rename the file elephant? 17) What command would move the file vans from the subdirectory Transportation in the home directory of the user named pjaddessi to the /tmp directory, renaming the file cars? Self Test 3 from the textbook. 1) What command would you enter to move the file eakins, which is in your current directory, so that it is listed in your home directory? 2) What is the difference between the commands rmdir and rm -r? 3) Assume you are in the Projects directory, which has the subdirectories Old-projects and New-projects. What is the command to move the Bookproject directory from New-projects to Old-projects? 4) You are in your home directory, where there is a file named users on. What command will list the file in both your home directory and in the subdirectory Projects? Intro to UNIX/Linux Chapter 7- Lab Name: Sec: Self Test 1 from the textbook. 1) What is the command to create a directory named Proposals? 2) What command changes your current directory to the Proposals directory? 3) What command changes your current directory back to the home directory? 4) What shell command can you enter to identify your current directory? 5) What 1s command option tells 1s to distinguish files from directories in its output? 6) Your home directory is your current directory, and you enter the command s cd Projects You then create a file named confused. What directory will list the confused file? 7) How is it possible to have two files with the same filename in your account? 8) Assume your home directory is your current directory. What command will move a file named florence to a directory named Proposals, which is a subdirectory of the home directory? 9) Assume you want to move the file ideas from the current directory to a subdirectory named Work, and you enter the following command: S mv ideas Work When you examine the Work directory, the file is not listed there. Where is it? Chapter 7- Lab 1o) In the current directory, what command would list the files of a subdirectory named Cows and distinguish between files and directories? Self Test 2 from the textbook. 1) What command takes you back to the previous directory? Assume you are using a bash shell. 2) What directory can a user be in to access a file using commands with arguments such as: A. S more /etc/passwd B. S more Studydiary C. S more Desk/journal D. S more Desk/journal 3) At this point, we have specified directories using a variety of instructions. In the following table, a cd command, including its argument, is on the left. Fill in the result of entering the specified cd command on the right- which directory will you change into? Command Result S cd .. Change to parent directory. S cd. ../bill s cd - S cd -/bill S cd -bill s cd -bill/bill s cd /bill $ cd bill Chapter 7- Lab Solve the following problems from Self Test 2 by first sketching a directory tree of the information presented. Show your work below. page 3 Directory Tree Sketch 4) Assume your current directory is not known. What command changes your current directory to a directory named Education, which is listed in a directory named Proposals, which is listed in your home directory? 5) From your home directory, what command do you enter to edit a file mikekerby that is listed in the Proposals directory? 6) From any directory, how can you create a directory Rejected, listed in the Proposals directory in your home directory? 7) Regardless of your current directory, how would you copy a file selquist from your home directory into Education, which is a subdirectory of the Proposals directory that is listed in your home directory? 8) What command changes your directory to the parent directory? 9) What command changes into the Marilyn directory listed in your home directory? 10) Assume the directories Programs and Letters have the same parent directory (your home directory) and that you are currently in the Programs directory. How do you change your current directory from Programs to Letters? page 4 Chapter 7- Lab 11) How would you move the file report7 in the current directory to the parent directory? 12) How can you copy all files from the current directory to the parent? 13) Given that you are located in your home directory, what are three different ways you can create a directory named Junkyvard in a subdirectory called Location that is in your home directory? i) ii) iii) 14) You are in your home directory, using the vi editor to edit a ffile called client-list that is under Proposals Contracts, You end the (vi) session. Which directory are you in now? 15) What command do you issue to use the vi editor to edit the file cats in the home directory of the user named Chris? 16) What command will copy a file called rhino to a subdirectory Africa and rename the file elephant? 17) What command would move the file vans from the subdirectory Transportation in the home directory of the user named pjaddessi to the /tmp directory, renaming the file cars? Self Test 3 from the textbook. 1) What command would you enter to move the file eakins, which is in your current directory, so that it is listed in your home directory? 2) What is the difference between the commands rmdir and rm -r? 3) Assume you are in the Projects directory, which has the subdirectories Old-projects and New-projects. What is the command to move the Bookproject directory from New-projects to Old-projects? 4) You are in your home directory, where there is a file named users on. What command will list the file in both your home directory and in the subdirectory Projects?
Expert Answer:
Answer rating: 100% (QA)
1 The command to create a directory named Proposals is mkdir Proposals 2 The command to change your current directory to the Proposals directory is cd Proposals 3 The command to change your current di... View the full answer
Related Book For
Advanced Financial Accounting
ISBN: 978-0078025624
10th edition
Authors: Theodore E. Christensen, David M. Cottrell, Richard E. Baker
Posted Date:
Students also viewed these accounting questions
-
How is it possible to have a regulation conflict with a Code section?
-
Can a map have two keys with the same value? Two values with the same key?
-
UNIX treats file directories in the same fashion as files; that is, both are defined by the same type of data structure, called an inode. As with files, directories include a 9-bit protection string....
-
Pick a Nigerian brand that has been very successful competing against the bigger global brands in its product category. What are the elements of its strategy that have enabled it to achieve this...
-
Which is better? With the success of Bethune in motivating his employees for strong positive change in the organization, one would think Theory Y is the only way to go. McGregor certainly thought so...
-
A psychology professor decides to give a quiz at the beginning of every class in hopes that it will encourage her students to do the assigned readings. However, after a few quizzes have been given,...
-
Order point Phoenix Company expects daily usage of 500 lbs. of material Z, an anticipated lead time of seven days, and a desired safety stock of 2,500 Ibs. a. Determine the order point. b. Determine...
-
The inventory on hand at the end of 2016 for Reddall Company is valued at a cost of $94,550. The following items were not included in this inventory: 1. Purchased goods in transit, under terms FOB...
-
4- -6 -4 -2 0 -2- -4- Given the graph of f (I) above, find the following limits. To enter co in your answer field, . When you are in text entry mode (when your answer field has just one line), type...
-
Aaron Rivers, CPA, is auditing the financial statements of Charger Company, a client for the past five years. During past audits of Charger, Rivers identified some immaterial misstatements (most of...
-
Solve each system (x,y) by substitution. 5) y=-3x-1 y=4x-1 6) y=x-2 y=3x-8
-
What are some examples of significant non-cash activities?
-
a. Indicate the types of statistical sampling techniques that may be used in auditing. b. Explain the essential differences between the techniques.
-
Identify four cash-based ratios that are relevant to the decision-making process.
-
Identify four factors that may affect the auditor's identification of the population to be sampled.
-
a. What are the basic similarities and differences between statistical and nonstatistical sampling? b. Identify the benefits to the auditor in using statistical sampling.
-
Which of the following more closely aligns with a job versus a career? Multiple Choice A job belongs to you and lasts a lifetime. A job is temporary and in service of someone else. A job can be create
-
Juanita owns a home in Richardson, TX. She purchases a Homeowners Policy (HO-3) from Farm State Ins. Co. The policy provides $100,000 in liability coverage (coverage E) and $5,000 in Med Pay coverage...
-
Jackson Corporation purchased shares of Phillips Corporation in the following sequence: The book value of Phillips net assets at January 1, 20X6, was $200,000. Each year since Jackson first purchased...
-
Alman Company sold pharmaceuticals to a Swedish company for 200,000 kronor (SKr) on April 20, with settlement to be in 60 days. On the same date, Alman entered into a 60 day forward contract to sell...
-
Norgaard Corporation purchased management consulting services from its 75 percent owned subsidiary, Bline Inc. During 20X3, Norgaard paid Bline $123,200 for its services. For the year 20X4, Bline...
-
When bonds are retired or repaid at their due date, there generally will be a. a gain. b. a loss. c. accrued interest. d. no gain or loss.
-
If the market rate had been 8% at the time of issuance, a. the bonds would have been issued at a premium. b. the bonds would have been issued at a discount. c. the bonds would have been issued at...
-
When a bond is issued at a discount, the interest expense each year a. is greater than the cash payment for interest. b. is less than the cash payment for interest. c. equals the cash payment for...
Study smarter with the SolutionInn App