Question: 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

lictions: On 4.6. What is the difference between Is -1 and 1s

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!