Linux System & Disk Commands – Full Quiz
← Back to System & Disk Commands
← Back to Linux Commands
← Back to Quiz Home
This quiz contains 20 questions focused on Linux system and disk commands.
It helps you understand how DevOps engineers monitor memory, disk usage, and system information
on production servers.
Which command shows memory usage in Linux?
The free command displays the total amount of free and used physical and swap memory in the system.
Which option with free shows output in human-readable format?
The -h (human-readable) option automatically scales the values to MB, GB, etc., making them easier to read.
By default, the free command shows memory in which unit?
The default output of free is in kilobytes (KB).
Which command shows disk usage of mounted filesystems?
The df (disk free) command reports the amount of available disk space being used by file systems.
Which option with df displays sizes in human-readable format?
The -h option with df prints sizes in powers of 1024 (e.g., 10M, 5G).
Which command shows disk usage of files and directories?
The du (disk usage) command estimates file space usage, summarizing disk usage of the set of files.
Which command displays the system hostname?
The hostname command is used to show or set the system's host name.
Which command is used to display system manual pages?
The man command is the system's manual pager, used to display the user manual of any command.
Which command shows the full path of a command?
The which command is used to identify the location of valid executables in the system's PATH.
Which file contains OS version information?
The /etc/os-release file contains operating system identification data, including the OS name and version.
Which command prints user and group IDs?
The id command displays the real and effective user and group IDs.
cd .. changes the current directory to the parent directory.
cd ../.. moves the current directory two levels up in the hierarchy.
Which command takes you to the home directory?
Running cd without arguments defaults to changing to the current user's home directory.
Which symbol represents the home directory?
The tilde symbol ~ is shorthand for the user's home directory.
Which command returns to the previous directory?
cd - switches back to the previous directory you were in before the last cd command.
Which command shows the current directory?
pwd displays the absolute path of the current working directory.
Which command shows command documentation with examples?
man (manual) pages provide detailed documentation, often including usage examples.
Which command helps identify where a binary is located?
which locates a command executable in the user's PATH.
Which command helps a DevOps engineer quickly verify disk space issues?
df (disk free) is the primary command to check overall disk space usage on mounted filesystems.
Quiz Progress
0 / 0 questions answered
(0% )
0 correct
Quiz Complete!
0%
Reset quiz
📩 Get weekly DevOps quizzes & guides
📬 Weekly DevOps, Cloud & Gen AI quizzes & guides