Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Linux Command Line: Understanding Common Commands and Utilities, Exams of Cybercrime, Cybersecurity and Data Privacy

Answers and rationales for various linux command-line utilities, including fdisk, tar, grep, vi, cat, chmod, ps, apt-get, ls, service, touch, and more. Learn about their functions and how they are used in linux systems.

Typology: Exams

2023/2024

Available from 03/28/2024

ClemBSC
ClemBSC 🇺🇸

4.1

(17)

710 documents

Partial preview of the text

Download Linux Command Line: Understanding Common Commands and Utilities and more Exams Cybercrime, Cybersecurity and Data Privacy in PDF only on Docsity! IS 192 Linux Administration Review Exam Q & A 2024 1. When installing a Linux system, which of the following is the recommended size for the swap partition? A) Equal to the size of RAM B) Double the size of RAM C) Half the size of RAM D) No swap partition needed Answer: A) Equal to the size of RAM Rationale: The swap partition serves as overflow space for RAM. It is recommended to be equal to the size of RAM to ensure optimal performance and manageability. 2. Which desktop environment is known for its lightweight design and low resource consumption, suitable for older hardware? A) GNOME B) KDE C) XFCE D) Unity Answer: C) XFCE Rationale: XFCE is designed to be lightweight and fast, which makes it an excellent choice for older hardware with limited resources. 3. In a Linux shell, what command is used to display the contents of a text file? A) ls B) cat C) rm D) chmod Answer: B) cat Rationale: The 'cat' command is used to concatenate and display the content of text files. 4. What is the primary command used to change file permissions in Linux? A) chown B) chmod C) chgrp D) cp Answer: B) chmod B) They allow running multiple shell sessions from a single terminal. C) They enhance the security of the system. D) They are used for system monitoring. Answer: B) They allow running multiple shell sessions from a single terminal. Rationale: 'screen' and 'tmux' are terminal multiplexers, allowing a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. 13. Which command is used to edit the crontab to schedule jobs? A) cron B) anacron C) crontab D) at Answer: C) crontab Rationale: The 'crontab' command is used to create, edit, install, uninstall, or list the cron jobs that are used to schedule tasks. 14. In Linux, what is the significance of the '/home' directory? A) It contains the system configuration files. B) It is where the kernel is stored. C) It is the default directory for user personal files and settings. D) It holds the temporary files created by system and users. Answer: C) It is the default directory for user personal files and settings. Rationale: The '/home' directory is the default location for users' personal directories and files, as well as user-specific settings. 15. What is the command to display the current Linux kernel version? A) kernel B) version C) uname -r D) lsb_release -a Answer: C) uname -r Rationale: The 'uname -r' command displays the system's kernel version, which is part of the larger 'uname' tool used to show system information. 1. When planning and installing a Linux system, which of the following is commonly used to partition and format disk drives? A. fdisk B. tar C. grep D. vi Answer: A. fdisk Rationale: fdisk is a commonly used command-line utility for partitioning and formatting disk drives in Linux. 2. Which of the following desktop interfaces is commonly used in Linux systems? A. Windows B. macOS C. GNOME D. Android Answer: C. GNOME Rationale: GNOME is a popular desktop interface for Linux systems, known for its user-friendly design and customization options. 3. In Linux shells, which command is used to display the contents of a text file? A. cat B. ps C. kill D. top Answer: A. cat Rationale: The cat command is used to concatenate and display the contents of one or more text files in the Linux shell. 4. Which of the following commands is used to modify file permissions in Linux? A. chmod B. chown C. ls D. mkdir Answer: A. chmod Rationale: The chmod command is used to change the permissions of a file or directory in Linux, specifying who can read, write, or execute the file. 5. What command can be used to list the running processes on a Linux system? A. list B. ps C. run D. show Answer: B. ps Rationale: The ps command is used to display information about the currently running processes on a Linux system, including their process IDs and resource usage. 6. Which command can be used to install new software packages in a Linux system? A. apt-get B. cd C. mv D. ping Answer: A. apt-get Rationale: apt-get is a package management tool used in Debian-based Linux distributions to install, update, and remove software packages. 7. To view the contents of a directory in Linux, which command should be used? A. dir B. ls C. end D. shutdown Answer: A. kill Rationale: The kill command is used to terminate a running process in Linux by sending a signal to the process ID. 15. Which command can be used to search for files and directories in Linux? A. find B. search C. locate D. scan Answer: A. find Rationale: The find command is used to search for files and directories in a specified path in Linux, based on various criteria such as file type and size. 16. What command is used to rename a file in Linux? A. rename B. mv C. cp D. touch Answer: B. mv Rationale: The mv command is used to rename or move a file in Linux, specifying the original and new file names as arguments. 17. Which command is used to display system information in Linux, such as CPU and memory usage? A. info B. top C. status D. show Answer: B. top Rationale: The top command is used to display real-time system information in Linux, including CPU and memory usage, as well as running processes. 18. To create a symbolic link in Linux, which command should be used? A. link B. sym C. ln D. shortcut Answer: C. ln Rationale: The ln command is used to create links or shortcuts to files or directories in Linux, with options to create hard links or symbolic links. 19. Which command can be used to display the contents of a text file in a paginated format in Linux? A. less B. more C. cat D. head Answer: A. less Rationale: The less command is used to display the contents of a text file in a paginated format in Linux, allowing users to scroll through the file. 20. To change the ownership of a file in Linux, which command should be used? A. chown B. chmod C. chgrp D. own Answer: A. chown Rationale: The chown command is used to change the ownership of a file or directory in Linux, specifying the new owner and optionally the group. 21. Which of the following commands can be used to view the contents of a file without opening it in Linux? A. grep B. cat C. head D. tail Answer: C. head Rationale: The head command is used to display the beginning of a file in Linux, showing the first few lines by default. 22. When managing system processes in Linux, which command can be used to prioritize a process for execution? A. nice B. kill C. renice D. top Answer: C. renice Rationale: The renice command is used to change the priority of a running process in Linux, adjusting its scheduling priority for CPU usage. 23. Which command is used to display detailed disk usage information in Linux? A. df B. du C. disk D. ls Answer: A. df Rationale: The df command is used to display detailed information about disk usage in Linux, showing the total and available space on disk partitions. 24. When managing system modules in Linux, which command can be used to load a kernel module into memory? A. load B. insmod C. start C. /etc/group D. /etc/resolv.conf Answer: A. /etc/passwd Rationale: The /etc/passwd file contains user account information including usernames, user IDs, and home directories. Question: What is the purpose of the df command in Linux? A. Display system uptime B. Show disk space usage C. Find a file D. Display file permissions Answer: B. Show disk space usage Rationale: The df command is used to display disk space usage on Linux systems. Question: Which command is used to create a new directory in Linux? A. newdir B. mkdir C. touch D. makedir Answer: B. mkdir Rationale: The mkdir command is used to create new directories in Linux. Question: What is the purpose of the ifconfig command in Linux? A. Configure network interfaces B. Display system information C. List installed packages D. Run a script Answer: A. Configure network interfaces Rationale: The ifconfig command is used to configure network interfaces on Linux systems. Question: Which command is used to compress files in Linux? A. zip B. tar C. gzip D. unzip Answer: C. gzip Rationale: The gzip command is used to compress files in Linux using the gzip compression algorithm. Question: What is the purpose of the top command in Linux? A. Display the top CPU processes B. View disk usage C. Create a new file D. Change file permissions Answer: A. Display the top CPU processes Rationale: The top command is used to display real-time information about the top CPU-consuming processes in Linux. Question: Which command is used to search for specific text within files in Linux? A. find B. grep C. locate D. search Answer: B. grep Rationale: The grep command is used to search for specific text patterns within files in Linux. Question: What is the purpose of the /etc/fstab file in Linux? A. Store system log files B. Define file system mount points C. Manage user accounts D. Set system time Answer: B. Define file system mount points Rationale: The /etc/fstab file is used to define file system mount points and options in Linux. Question: Which command is used to change the current directory in Linux? A. cd B. pwd C. ls D. dir Answer: A. cd Rationale: The cd command is used to change the current working directory in Linux. Question: What is the purpose of the tar command in Linux? A. Untar files B. Display file contents C. Create compressed archives D. Rename files Answer: C. Create compressed archives Rationale: The tar command is used to create compressed archive files in Linux. Question: Which command is used to kill a running process in Linux? A. stop B. end C. kill D. terminate Answer: C. kill Rationale: The kill command is used to send a signal to terminate a running process in Linux. Question: What is the purpose of the cron daemon in Linux? A. Schedule recurring tasks B. Monitor system logs C. Manage user permissions D. Configure network interfaces
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved