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...
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
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...
-
Sparta Investments Ltd. had the following short-term investments in marketable securities at fair value at December 31, 2016: Alberta Energy Co. ........................... $310,000 Finning Ltd....
-
In February 2011, there is an unexpected temporary surge in the demand for notebook hard drives, increasing the monthly demand for hard drives by 25 percent at any possible price. As a result of...
-
In the past five years, there have been significant innovations in technology such as smartphones and tablets. Technology companies rely on intellectual property (IP) rights, such as patents,...
-
The state government established a capital project fund in 2011 to build new highways. The fund is supported by a 5 percent tax on diesel fuel sales in the state. The tax is collected by private gas...
-
Connect each yearly salary to the correct paycheck payment. A. $55,000 B. $60,000 C. $26,000 D. $129,000 E. $56,000 OS $500 weekly $5,000 monthly $2,333 semi-monthly $4,961 biweekly $4,583 monthly
-
Skylar and Walter Black have been married for 25 years. They live at 883 Scrub Brush Street, Apt. 52B, Las Vegas, NV 89125. Skylar is a stay-at-home parent and Walt is a high school teacher. His W-2...
-
What would happen if a major parasite were to eliminate several of the megafauna (large animals) in Yellowstone?
-
Luigi has agreed to your recommendation for income protection cover with a 60-day waiting period and benefit to age 65. What needs to happen now?
-
Reasoning: The Supreme Court has noted that corporations can only act through their individual employees. The Act in question requires stringent, affirmative actions on the part of corporate...
-
How does the Shortest Remaining Time First (SRTF) scheduling algorithm dynamically prioritize processes based on their remaining execution time, optimizing for minimal turnaround and response times?
-
Warm transfers are when agents wait on the line to speak to the next department prior to transferring the student. How long should the agent wait on the line before the agent will need to cold...
-
Create two queries. Make sure that each contains either a criterion to refine the search data or a function that computes a value. Be sure to name these queries with a descriptive name as well.
-
After reading Kathleen Brown's Good Wives, Nasty Wenches, & Anxious Patriarchs, answer the questions below. Goal to understand the overall answer to this question. What role does gender play in...
-
7 A 29-year-old, previously healthy man suddenly collapses at a party where legal and illicit drugs are being used. Enroute to the hospital, he requires resuscitation with defibrillation to establish...
-
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?
-
Stage-2 receivables are those in which the payment is delayed by: a. Less than 30 days b. More than 30 days but less than 90 days c. More than 60 days d. More than 90 days
-
In July 2023, JFI Islamic Bank booked receivables of USD 5,000 from Paragon Parks Limited which were to be received in five equal instalments. The first payment was due on Dec 15, 2023. By the end of...
-
Which of the following will be used to determine the amount of credit losses? a. The total amount of receivable at risk b. Any change in the credit loss of a receivable due to a decline of credit...
Study smarter with the SolutionInn App