Unix - Study Mode

[#816] Which command is used by the shell for manipulating positional parameters?
Correct Answer

(A) set

[#817] tar command uses . . . . . . . . option for backing up files.
Correct Answer

(B) -c

[#818] Which of the following command is used to go to home directory?
Correct Answer

(C) cd

Explanation

Solution: The cd command is used to change the current working directory. When used without any arguments, it takes you to your home directory. Options A, B, and D are incorrect as they do not accurately represent the command to go to the home directory.

[#819] Which command is used to move all files to the bin sub-directory of the parent directory?
Correct Answer

(C) mv * ../bin

Explanation

Solution: The mv command is used to move files or directories. In this case, the wildcard * is used to select all files in the current directory, and ../bin specifies the bin sub-directory of the parent directory as the destination. Options A, B, and D are incorrect as they either specify incorrect destination directories or use incorrect wildcard patterns.

[#820] Which command is used to save the standard output in a file, as well as display it on the terminal?
Correct Answer

(D) tee