Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Unix/Linux Part 1. Multiple choice 1. In the command ls /tmp, the ls is the__ A)

ID: 3755363 • Letter: U

Question

Unix/Linux

Part 1. Multiple choice 1. In the command ls /tmp, the ls is the__ A) argument B) option C) utility D) file E) kernel 2. In the command mv -i fileAA fileBB A) there are three arguments B) there is one option C) there is one utility D) If fileBB exists it will not be overwritten with confirmation E) All of the above 3. To add the output of date to the end of the file junk, we enter A) junk date B) date | junk C) date> junk D) date >> junk E) junk > date F) junk >> date

Explanation / Answer

1. Correct Option is 'D'.

explanation: In Linux we use 'ls' command to view the list of all the file in the current directory. So when ever there is question of using ls command , it defenetly used to access the files.

Note: 'ls' is a file containing the program to execute the 'ls' command with in the Linux terminal.

2. Correct option is 'D'

  explanation: the command 'mv' used to move files and directories . the command 'mv -i' will be used when to get a interactive prompt(which means a confirmation ask you to get confirmed) before over writing the file.

and the command 'mv -f' used to forcibly overwrite the destination file with out raisng a prompt(which means with out a confirmation message).

3. option is "D"

explanation: '>>' used to append the Command data to an external file.

Syntax: commandXYZ >> abc.txt

in the question you are supposed to add the date to the file junk. so the linux command will be

'date >> junk'

and '>' used to just to redirect the output to a file.

and 'I' output of the first command acts as input to the second command.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote