What is a token? How does the shell decide where one token ends and other begins? 2) Assume the file list contains the names of several of the files listed in your home directory. What is the result of running the following? $ wc `cat list` 3) If a user enters the following with noclobber set off, what is the error message? Assume the file junk1 exists and the utility datxxx does not exist. What impact does issuing this command have? $datxx junk1 > junk1 4) How can you overwrite a file if noclobber is set in the bash shell? 5) Each blank line below indicates a token. How does the bash shell interpret each token in proper Linux syntax? Use U for utility, F for file and A for argument: A.$ < || > ; | B.$ | && ; ` | `|| C.$ | ; ` ` D.$ | $ > ; > Chapter 8 – Lab page 2 6) When a user issues the following distinct commands, what happens and why? Assume noclobber is not set and all files exist. A. $ CTRL-Z B. $ PATH=$PATH:~/mybin C. $ echo $? D. $ wc filexx > filexx E. $ cp –i fileCC fileDD 7) If noclobber is set on, and both files exist, what happens when the following command is issued: $mv fileAA fileBB

Respuesta :

Answer:

Check the explanation

Explanation:

1. The shell reads its input in terms of lines from a file or from a terminal when the command used in an interactive shell. Tokens are separated by delimiter.

2.

(base) Mousumi:Brainly apple$ wc list

30 32 429 list

(base) Mousumi:Brainly apple$ wc 'cat list'

wc: cat list: open: No such file or directory

3.  

(base) Mousumi:Brainly apple$ datxx list > list

-bash: datxx: command not found

(base) Mousumi:Brainly apple$ set -o noclobber

(base) Mousumi:Brainly apple$ datxx list > list

-bash: list: cannot overwrite existing file

(base) Mousumi:Brainly apple$

4.

By turning off noclobber for single operation. Use >| operator to force the file to be overwritten:

(base) Mousumi:Brainly apple$ ls >list

-bash: list: cannot overwrite existing file

(base) Mousumi:Brainly apple$ ls >| list

(base) Mousumi:Brainly apple$ cat list