Unix - Study Mode
[#391] Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
Correct Answer
(A) cat emp[!0-9]
Explanation
Solution: In Unix, the command cat emp[!0-9] is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric character. Here, the square brackets denote character classes, and the exclamation mark (!) negates the character class. So, [!0-9] matches any character that is not a numeric character. Therefore, Option A: cat emp[!0-9] is the correct command to concatenate all files beginning with the string 'emp' and followed by a non-numeric character.
[#392] The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
Correct Answer
(A) tee
Explanation
Solution: In Unix, the tee command reads the standard input and writes it to both the standard output and one or more files, effectively making a copy of the input. This can be useful when you want to see the output of a command on the screen while also saving it to a file. So, tee is the correct command to transcribe the standard input to the standard output and also make a copy of the same in a file.
[#393] Which command is used to remove a file?
Correct Answer
(B) rm
Explanation
Solution: In Unix, the rm command is used to remove or delete files and directories. It stands for "remove". So, rm is the correct command to remove a file.
[#394] Input mode is used for . . . . . . . .
Correct Answer
(A) editing text in files
[#395] Which of the following action can be taken by a process upon receiving a signal?
Correct Answer
(D) ignore the signal, terminate and suspend the process