Unix - Study Mode
[#991] Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?
Correct Answer
(B) +m.n
Explanation
Solution: In the Unix sort command, the -k option is used to specify the key fields to be used for sorting. It allows you to define a custom sort field based on column position. The syntax for using this option is -k start[,end], where start and end are the positions of the starting and ending columns of the key field, respectively. The +m.n option specifies sorting starting after the nth column of the mth field. Therefore, Option B is the correct choice.
[#992] The cp command uses:
Correct Answer
(D) neither standard input nor standard output file
Explanation
Solution: The cp command in Unix is used to copy files and directories from a source to a destination. It does not involve standard input or standard output files. Instead, it directly works with file system paths as source and destination arguments. Therefore, Option D is the correct choice.
[#993] Which of the following files contains information related to password aging?
Correct Answer
(A) Shadow
Explanation
Solution: In Unix-like operating systems, including Linux, the /etc/shadow file stores encrypted password and other security-related information such as password aging policies for user accounts. It is readable only by the root user and provides enhanced security compared to the older /etc/passwd file. Therefore, Option A is the correct choice.
[#994] Which one of the following command is used to replace a single character with many?
Correct Answer
(A) s
[#995] Shell enables one or more arguments to be obtained from the standard output of another command. This feature is called . . . . . . . .
Correct Answer
(A) command substitution