The document contains a series of objective and short answer questions related to Linux commands and their functions. Key commands include 'mkdir' for creating directories, 'chmod' for changing file permissions, and 'grep' for searching patterns in files. The document serves as a study guide for understanding essential Linux command functionalities.
The document contains a series of objective and short answer questions related to Linux commands and their functions. Key commands include 'mkdir' for creating directories, 'chmod' for changing file permissions, and 'grep' for searching patterns in files. The document serves as a study guide for understanding essential Linux command functionalities.
Okay, let's solve the questions in the provided document.
Part A: Objective Questions
1. What is the primary purpose of the Linux operating system's kernel? ○ The correct answer is a) To manage the system's hardware resources effectively. 2. Which command is used to list all files and directories in the current directory, including hidden ones? ○ The correct answer is b) ls -l. 3. Which command is used to change the current working directory in Linux? ○ The correct answer is b) cd. 4. Which command is used to display the current working directory? ○ The correct answer is c) pwd. 5. Which command is used to change file access permissions in Linux? ○ The correct answer is a) chmod. 6. Identify the command which is used to remove files. ○ The correct answer is a) rm. Part B: Short Questions 1. Identify the function of the "mkdir" command in Linux. ○ The function of the "mkdir" command in Linux is to create a new directory. 2. What is the function of "rmdir" command in Linux ○ The function of the "rmdir" command in Linux is to remove empty directories. 3. What is the function of "cp" command in Linux ○ The function of the "cp" command in Linux is to copy files and directories. 4. What is the function of "mv" command in Linux ○ The function of the "mv" command in Linux is to move or rename files and directories. 5. What is the function of "grep" command in Linux ○ The function of the "grep" command in Linux is to search for patterns in files. 6. What is the function of "chmod" command in Linux ○ The function of the "chmod" command in Linux is to change file permissions. 7. What is the function of "useradd" command in Linux ○ The function of the "useradd" command in Linux is to create a new user account. 8. What is the function of "passwd" command in Linux ○ The function of the "passwd" command in Linux is to change a user's password. 9. What is the function of "history" command in Linux ○ The function of the "history" command in Linux is to display a list of previously executed commands. 10.What is the function of "dmesg" command in Linux ○ The function of the "dmesg" command in Linux is to print the kernel's message buffer. 11.Identify the function of the "cpuinfo" command in Linux. ○ The cpuinfo command is used to display information about the CPU. 12.Identify the function of the "uname" command in Linux. ○ The uname command is used to print system information. 13.Identify the function of the "du" command in Linux. ○ The du command is used to estimate file space usage. 14.Identify the function of the "time" command in Linux. ○ The time command is used to measure the execution time of a command. 15.Identify the function of the "write" command in Linux. ○ The write command is used to send messages to another user. 16.Identify the function of the "fdisk" command in Linux. ○ The fdisk command is used to manipulate disk partition tables. 17.Identify the function of the "locate" command in Linux. ○ The locate command is used to find files by name. 18.Identify the function of the "touch" command in Linux. ○ The touch command is used to create empty files or update the timestamp of existing files. 19.Identify the function of the "ln" command in Linux. ○ The ln command is used to create hard or symbolic links to files.