lictions: On 4.6. What is the difference between Is -1 and 1s -L when listing the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
lictions: On 4.6. What is the difference between Is -1 and 1s -L when listing the contents of directory play? The command Is lists the files in the current directory. And Is -L is the change current working directory. 4.7. Create a file called hello.txt that contains the words "hello world". What command did you use? echo command 4.8. How would you create and delete a file that begins with the symbol (dash) -? What commands did you use? rm-- touch- 5. Working with expansion 5.1. What is the output of the command: echo (con pre} [sent fer} {s,ed)? Screenshot your command and the output here: 5.2. Now, from your home directory, copy /etc/passwd and /etc/group into your home directory in one command, given that you can only type /etc once. What commands did you use? Screenshot your command and the output here: 6. Experiment with the options on the 1s command. 6.1. What do the di, R, and Foptions do for the Is command? F gives a full listing of type of files in the directory. I gives a long listing of all files. R gives a recursive listing, including the content of all subdirectory. And d is information about a directory itself. 7. Another important command in the bash repertoire is grep. The grep command searches the named input FILES (or standard input if no files are named) for lines that match the given PATTERN. By default, grep prints the matching lines. The basic usage of the grep command is to search for a specific string in the specified file, as shown below. Syntax: grep "literal string" filename 7.1. Use the man grep command to read about usage and options. Screenshot your command and the output here: 7.2. Make sure that you are in the play subdirectory under your home directory. Use grep to search for the string "uucp" in the passwd file in the play directory. What command did you use? and What is the output? Screenshot your command and the output here: 7.3. Execute the command grep NOBODY passwd What is displayed? /etc/password Accessibility: Investigate C L III Terms of use U lictions: On 4.6. What is the difference between Is -1 and 1s -L when listing the contents of directory play? The command Is lists the files in the current directory. And Is -L is the change current working directory. 4.7. Create a file called hello.txt that contains the words "hello world". What command did you use? echo command 4.8. How would you create and delete a file that begins with the symbol (dash) -? What commands did you use? rm-- touch- 5. Working with expansion 5.1. What is the output of the command: echo (con pre} [sent fer} {s,ed)? Screenshot your command and the output here: 5.2. Now, from your home directory, copy /etc/passwd and /etc/group into your home directory in one command, given that you can only type /etc once. What commands did you use? Screenshot your command and the output here: 6. Experiment with the options on the 1s command. 6.1. What do the di, R, and Foptions do for the Is command? F gives a full listing of type of files in the directory. I gives a long listing of all files. R gives a recursive listing, including the content of all subdirectory. And d is information about a directory itself. 7. Another important command in the bash repertoire is grep. The grep command searches the named input FILES (or standard input if no files are named) for lines that match the given PATTERN. By default, grep prints the matching lines. The basic usage of the grep command is to search for a specific string in the specified file, as shown below. Syntax: grep "literal string" filename 7.1. Use the man grep command to read about usage and options. Screenshot your command and the output here: 7.2. Make sure that you are in the play subdirectory under your home directory. Use grep to search for the string "uucp" in the passwd file in the play directory. What command did you use? and What is the output? Screenshot your command and the output here: 7.3. Execute the command grep NOBODY passwd What is displayed? /etc/password Accessibility: Investigate C L III Terms of use U
Expert Answer:
Related Book For
Principles of Information Systems
ISBN: 978-1133629665
11th edition
Authors: Ralph Stair, George Reynolds
Posted Date:
Students also viewed these algorithms questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
Under California Law, does a client Carmen Leake have an affirmative defense to inability to pay child support where a parent's inability to pay is due to unwillingness to work, if that parent is...
-
On December 31, 2017, when the market interest rate is 6 percent, an investor purchases $700,000 of Solar Ltd. 10-year, 5 percent bonds at issuance for $647,929. Interest is paid semi-annually....
-
Goodie shoes. has $4,000 of finished goods inventory as of December 31, 2022. If beginning finished goods inventory was $2,000 and cost of goods sold was $8,000, how much would Goodie shoes report...
-
Calculate the net present value and investor's rate of return in Example 19.1 if the product life cycle is extended from three to five years. All other input data remain unchanged. Data From Example...
-
Indicate whether the following statements about the conceptual framework are true or false. If false, provide a brief explanation supporting your position. (a) Accounting rule-making that relies on a...
-
LeMans Company produces specialty papers at its Fox Run plant. At the beginning of June, the following information was supplied by its accountant Direct materials Inventory Work-in-process inventory...
-
On May 1, a petty cash fund was established for $150.00. The following vouchers were issued during May: REQUIRED 1. Prepare the journal entry to establish the petty cash fund. 2. Record the vouchers...
-
6. A random sample of n = 12 observations was drawn and ordered as follows. 81, 94, 95, 95, 97, 102, 106, 110, 113, 114, 135, 160 (a) Find the mean of the sample. (b) Find the standard deviation of...
-
One of my questions was not addressed. Can you answer the question about PART 2: Reflection . You must complete the detailed budget before you may earn points for the reflection. a 300-word minimum...
-
in his pathbreaking analysis of the tradegy of the commons, garrett hardin makes notes of instances where profits are privitazied and costs are commonized (double P- double c game) give examples og...
-
in his pathbreaking analysis of the tradegy of the commons, garrett hardin makes notes of instances where profits are privitazied and costs are commonized (double P- double c game) explain why is it...
-
The face value, also known as the par value, is the nominal or stated value of the bond, and it represents the amount the issuer agrees to repay to the bondholder at the bond's maturity. The face...
-
Accounting on a(n) ____________ takes into account the money that a nonprofit has earned and is entitled to receive, as well as obligations for expenditures that it has not yet incurred. Group of...
-
(a) Your money market broker quotes you the following spot rates: 3-month KLIBOR = 8% 6-month KLIBOR = 9.5% What should the correct price of a 3-month KLIBOR futures contract be? (b) A bank has...
-
What is a manufacturing system?
-
1. What risks were involved in the systems development project? 2. What benefits were gained from this systems development project? Was it worth the risks?
-
What is feedback? What are possible consequences of inadequate feedback?
-
What is a fuel cell? What advantages do fuel cells offer over batteries for use in portable electronic devices? Do they have any disadvantages?
-
Oxygen at \(30{ }^{\circ} \mathrm{C}\) and \(300 \mathrm{kPa}\) absolute pressure expands isothermally to an absolute pressure of \(120 \mathrm{kPa}\). Determine the final density of the gas.
-
Compare the isentropic bulk modulus of air at \(101 \mathrm{kPa}\) (abs) with that of water at the same pressure.
-
Natural gas at \(70{ }^{\circ} \mathrm{F}\) and standard atmospheric pressure of 14.7 psi (abs) is compressed isentropically to a new absolute pressure of 70 psi. Determine the final density and...
Study smarter with the SolutionInn App