Linux Basic Practice Multiple Choice Questions – 06

26. Question: What command is used to create symbolic links between files in Linux?

Option 1: ln

Option 2: link

Option 3: symlink

Option 4: connect

Correct Answer: 1

Explanation: In Linux, the ln command is used to create symbolic links between files. A symbolic link is a reference to another file or directory, allowing you to access the linked content from different locations in the file system.

27. Question: What command is used to display the disk usage of files and directories in Linux?

Option 1: du

Option 2: df

Option 3: space

Option 4: usage

Correct Answer: 1

Explanation: In Linux, the du (disk usage) command is used to display the disk usage of files and directories. It provides information on the space occupied by each file or directory, helping you manage disk space effectively.

28. Question: In Linux, the ____ command is used to send signals to processes, typically to terminate them.

Option 1: kill

Option 2: stop

Option 3: pause

Option 4: continue

Correct Answer: 1

Explanation: The kill command is used to send signals to processes, typically to terminate them. It allows you to gracefully terminate a process or send specific signals to control its behavior.

29. Question: When handling file permissions, the ____ command is used to modify special permissions such as setuid, setgid, and sticky bits.

Option 1: chmod

Option 2: chown

Option 3: chattr

Option 4: lsattr

Correct Answer: 1

Explanation: The chmod command is used to modify special permissions of files, such as setuid, setgid, and sticky bits. These special permissions can change the behavior of files and directories, and chmod is used to set or remove these permissions.

30. Question:_____ command provides a snapshot of the current processes in the system.

Option 1: ps

Option 2: top

Option 3: ls

Option 4: df

Correct Answer: 1

Explanation: The ps command provides a snapshot of the current processes in the system. It displays detailed information about running processes, including process ID (PID), CPU and memory usage, and other important statistics.

Leave a Comment