Unix - Study Mode

[#981] set command by default displays the variables in the current shell.
Correct Answer

(A) True

[#982] Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.)?
Correct Answer

(C) ls .???*

[#983] Which one of the following keys are used to moving cursor rightwards along a line?
Correct Answer

(C) l

[#984] Which command is used to display and create files?
Correct Answer

(B) vi

Explanation

Solution: In Unix, the vi command is a text editor that is commonly used to display and create files. It allows users to view and edit text files directly within the terminal. When you open a file with vi that doesn't exist, it creates a new file with that name. So, vi is the command used to both display and create files in Unix.

[#985] The second set of the three permissions (r-) indicates that
Correct Answer

(B) other has read permission only

Explanation

Solution: In Unix file permissions, the three sets of permissions (rwx) represent the access rights for the owner, group, and others, respectively. The second set of permissions, indicated by (r-), means that the group associated with the file or directory has read permission only. The absence of the "w" (write) and "x" (execute) permissions indicates that the group does not have those permissions. So, Option B is the correct interpretation of the second set of permissions (r-) in Unix file permissions.