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...
-
How does the auditor evaluate the allowance for doubtful accounts?
-
In 2018 the price of oil fell to a 14-year low. For drivers, the cost of driving fell significantly as gasoline prices plunged. For the airline industry, the cost of operation also fell significantly...
-
Royal Auto Ltd operates a car sales business with two departments new cars and secondhand cars. The companys accountant has prepared a statement of financial performance for the year ending 30 June...
-
Super Security Co. offers a range of security services for athletes and entertainers. Each type of service is considered within a separate department. Marc Pincus, the overall manager, is compensated...
-
An auditor randomly samples 20 accounts receivable from among the 500 such accounts of a client's firm. The auditor lists the amount of each account and checks to see if the underlying documents...
-
Business transactions completed by Hannah Venedict during the month of September are as follows. a. Venedict invested $60,000 cash along with office equipment valued at $25,000 in a new business...
-
32. (Vi+V 4 1) 4/(1+x) +c 2) (+ Vx +c 3. 3 4 3) Va+Vx +. 4) (1+ +c Sin 2 r
-
Aluminum metal and bromine liquid (red) react violently to make aluminum bromide (white powder). One way to represent this equilibrium is: 2 Al(s) + 3 Br(1) 2 AlBr3(s) We could also write this...
-
Cost of Goods Sold Allyson Ashley makes jet skis. During the year, Allyson manufactured 94,000 jet skis. Finished goods inventory had the following units: January 1 December 31 Required: 6,800 7,200...
-
Police Corp. Station Corp. Consolidation Entries DR CR Consolidated Income Statement Sales 200,000 Less: Depreciation Expense (25,000) Less: Other Expenses (105,000) Income from Station Corp. 30,000...
-
Pureform, Incorporated, uses the weighted-average method in its process costing system. It manufactures a product that passes through two departments. Data for a recent month for the first department...
-
Compound interest (Unit4B) produces exponential growth because an inte rest-bearing account grows by the same percentage each year. Suppose your bank account has a doubling time of 21 years. By what...
-
for attracting the best employees, I think it will affect the organization in a positive way. When I went through the selection process for being hired through the postal service it gave me a greater...
-
The following items were displayed in the statement of affairs for Lubbock Company: Fully secured liabilities ......... $90,000 Partially secured liabilities ....... 12,000 Unsecured liabilities...
-
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...
-
Entrepreneur magazine ranks franchises. Among the factors that the magazine uses in its rankings are growth rate, number of locations, start-up costs, and financial stability. A recent ranking listed...
-
The following 20 observations are for two quantitative variables, x and y. a. Create a scatter chart for these 20 observations. b. Fit a linear trendline to the 20 observations. What can you say...
-
Blatt Consulting Services is interested in comparing the number of customer accounts managed by its consultants. The chart below is a default chart produced in Excel. a. Which preattentive attributes...
Study smarter with the SolutionInn App