Unix - Study Mode

[#381] Which of the followings command(s) is used to kill the login shell?
Correct Answer

(D) kill -9 $$ and kill -s KILL 0

[#382] Which of the following command is used to delete a single line?
Correct Answer

(A) dd

[#383] A system call is a routine built into the kernel and performs a basic function.
Correct Answer

(A) True

[#384] The . . . . . . . . variable stores the name of the file currently being processed.
Correct Answer

(B) FILENAME

[#385] Which of the following commands is used to display the directory attributes rather than its contents?
Correct Answer

(A) ls -l -d

Explanation

Solution: In Unix, the ls command is used to list directory contents. By using the -l option, it displays detailed information about the files and directories. Adding the -d option makes ls display the attributes of the directory itself rather than its contents. So, ls -l -d is the correct command to display the directory attributes rather than its contents.