Essential Commands questions on this certification test your ability to deploy and manage essential commands concepts in scenario-based situations.
Start practicing
Essential Commands — choose a session length
Free · No account required
Domain overview
Use this page to practise Essential Commands questions for this certification. Focus on how the exam tests essential commands in scenario format — understanding the why behind each answer builds more durable knowledge than memorising options.
Exam objectives
Core Essential Commands concepts and how they apply in real-world cloud scenarios.
How to deploy essential commands correctly and verify the outcome.
Troubleshooting essential commands issues by interpreting error output and system state.
Cloud best practices and Essential Commands design trade-offs tested by this certification.
Selecting the most expensive service when a simpler managed option meets the requirement.
Forgetting that cloud resources must be explicitly secured — defaults are rarely secure.
Choosing a global service fix when the issue is region-specific.
Overlooking cost implications of cross-region data transfer in architecture questions.
Click any question to see the full explanation and answer options, or start a focused practice session above.
A user reports that a script fails with 'Permission denied' when executed. The script has permissions -rw-r--r-- and is owned by the user. Which command should the user run to make the script executable for the owner only?
2A system administrator needs to find all files in /var/log that have been modified in the last 7 days. Which command accomplishes this?
3An administrator wants to ensure that a background process continues running after logout. Which command should be used to start the process?
4A technician needs to display the contents of a compressed file named archive.tar.gz without extracting it. Which command should be used?
5A user wants to find the location of the 'grep' binary. Which command should they use?
6Which TWO commands can be used to create a new empty file?
7Which THREE commands can be used to view the contents of a file?
8What is the purpose of the chmod 755 command in this exhibit?
9Based on the exhibit, which process will be affected if the root user runs 'kill 5678'?
10A developer accidentally deleted a critical file /var/log/app.log. The system administrator knows that the file was recently backed up using a cron job that runs 'tar -czf /backup/logs.tar.gz /var/log/'. Which command should the administrator use to restore the file from the backup without extracting the entire archive?
11A system administrator needs to find all files in /home that are owned by user 'alice' and have been modified in the last 7 days. The administrator then wants to compress those files into a single archive named alice_recent.tar.gz. Which of the following commands accomplishes this?
12A junior administrator needs to display the first 10 lines of a file named 'data.csv'. Which command should they use?
13A system administrator is troubleshooting a user's report that a command 'myapp' is not found. The administrator checks the PATH variable and sees it includes /usr/local/bin. The administrator verifies that the binary 'myapp' exists in /usr/local/bin with permissions 755. However, running 'myapp' still fails with 'command not found'. What is the most likely cause?
14Which TWO commands can be used to display the current working directory? (Choose exactly two.)
15Which THREE of the following commands can be used to view the contents of a compressed file named 'file.gz' without permanently decompressing it? (Choose exactly three.)
16A user with uid 1000 tries to read /etc/shadow and gets 'Permission denied'. The user is not in the shadow group. Which of the following actions would allow the user to read the file without changing the file's group or permissions?
17You are a system administrator for a company that runs a web server on a Linux system. The web server logs are stored in /var/log/nginx/access.log. The log file grows rapidly and rotates weekly via logrotate. The system has been running for several months. Recently, the development team reported that the web server is responding slowly. You suspect that the disk I/O might be high due to log file activity. You check the disk usage and find that /var/log/nginx/access.log is 4 GB, and the rotated logs (access.log.1.gz, access.log.2.gz, etc.) total another 10 GB. The /var partition has 20 GB total, so it's 70% full. You decide to reduce the disk usage by compressing the current log file and truncating it without stopping the nginx service. Which command sequence should you use to safely achieve this?
18You are managing a Linux server that hosts a critical web application. The server is running low on disk space in the root filesystem, and you need to free up space urgently. You run 'df -h' and see that /dev/sda1 is mounted on / and is 95% full. You also notice that /var/log/messages is over 2 GB in size. The application writes logs to /var/log/app.log, which is also large. The server has a separate /var partition that has plenty of free space. The application must continue running with minimal downtime. You need to compress and rotate logs without losing any data, and ensure that the root filesystem has at least 10% free space. Which of the following actions should you take first to achieve this goal?
19A system administrator needs to list all files in the current directory, including hidden files, in a long listing format sorted by modification time (oldest first). Which command achieves this?
20A user wants to find all files in /var/log that have been modified within the last 2 days. Which command should they use?
21A system administrator runs 'grep -r 'error' /var/log' and gets many false positives. They want to search only for the exact word 'error' as a whole word, case-insensitively, and display line numbers. Which command should they use?
22A user needs to view the contents of a compressed log file /var/log/syslog.gz without first decompressing it. Which command should they use?
23A developer wants to change the ownership of a directory and all its contents recursively to user 'appuser' and group 'appgroup'. Which command accomplishes this?
24A systems administrator needs to add a new user 'jdoe' with a home directory in /export/home, a UID of 1500, and an expiry date of 2025-12-31. Which command should they use?
25A user wants to set the permissions of a file to 'rwxr-xr--'. Which octal permission value should they use with chmod?
26Order the steps to mount an ext4 filesystem from an external USB drive automatically at boot.
27Match each Linux permission type to its symbolic representation.
28A user reports that a shell script 'backup.sh' in /home/user/scripts fails to execute. What is the most likely cause?
29A system administrator needs to find all files under /var/log that have been modified within the last 7 days. Which command accomplishes this task?
30A process is consuming 99% CPU and is unresponsive to normal shutdown requests. After running 'top', you see the PID is 1234. What is the most appropriate command to stop the process gracefully first?
31A backup script must create a compressed archive of the /etc directory, preserving file permissions and timestamps. Which command should be used?
32A user wants to continuously monitor the last 20 lines of a log file that is being written to by a running service. Which command achieves this?
33A system administrator needs to replace all occurrences of 'oldhost' with 'newhost' in /etc/hosts, but only on lines that contain the string 'domain'. Which sed command accomplishes this?
34To check the disk usage of the /var/log directory in a human-readable format, which command is appropriate?
35A user needs to view the contents of a large text file one screen at a time. Which command is best for this?
36A cron job runs a script every hour but sometimes fails because the script cannot find commands like 'tar' and 'gzip'. The script works when run manually from a terminal. What is the best fix?
37Which TWO commands can be used to list the contents of a tar archive without extracting it?
38Which THREE commands can change the priority of an already running process?
39Which TWO commands can display the current environment variables?
40Refer to the exhibit. The file script.sh has permissions -rwxr-x--- and is owned by root with group 'developers'. A user named 'alice' is a member of the 'developers' group. Which command allows alice to execute the script without changing the file's group ownership?
41Refer to the exhibit. The output of 'ps aux' shows a process named 'process_hog' with PID 1234 consuming 99.5% CPU. The process is stuck in an infinite loop and does not respond to SIGTERM. Which signal should be used to forcefully terminate it?
42Refer to the exhibit. The /var partition is 100% full. Which command can be used to find the largest files in /var/log to free up space?
43A system administrator needs to find all files in /var/log that have been modified in the last 24 hours. Which command accomplishes this?
44A DevOps engineer wants to measure how long a specific command takes to execute. Which command should be used?
45An administrator runs 'ls -la' and sees the following entry for a file: 'lrwxrwxrwx 1 root root 24 Jan 10 12:00 link -> /etc/passwd'. If the target file /etc/passwd is deleted, what happens to the link file?
46To compress a file while preserving the original file, which command should be used?
47A system administrator wants to display a list of all currently running processes with their parent process IDs. Which command is most appropriate?
48An administrator runs 'df -h' and notices that /dev/sda1 is 95% full. The administrator needs to identify the largest files in the filesystem. Which command sequence is most efficient?
49To display the first 10 lines of a file named 'log.txt', which command is correct?
50A user is unable to write to a file. The output of 'ls -l file' shows '-r--r--r--'. Which command will grant write permission to the owner?
51An administrator needs to find the process ID of the cron daemon. Which combination of commands is most effective?
52A system administrator needs to change the group ownership of a file to 'developers' and set the setgid bit on a directory. Which two commands accomplish these tasks? (Choose two.)
53An administrator wants to find all files larger than 100MB in the /home directory. Which three commands or command sequences achieve this? (Choose three.)
54A user wants to view the contents of a compressed file file.txt.gz without decompressing it permanently. Which two commands can be used? (Choose two.)
55Refer to the exhibit. A user attempts to read /etc/passwd and receives "Permission denied". What is the most likely reason?
56Refer to the exhibit. A user attempts to create a file in /backup/snapshots/ but receives an error. What is the most likely cause?
57Refer to the exhibit. The /data directory needs to be resized to 15GB. What is the first step?
58A system administrator needs to find all files in /var/log that have been modified in the last 7 days. Which command accomplishes this?
59A user is unable to execute a script in their home directory. The script has permissions -rw-r--r--. Which command will allow the user to execute the script?
60A DevOps engineer wants to list all running processes sorted by memory usage in descending order. Which command should be used?
61An administrator needs to compress a directory named 'project' into a tarball with maximum compression using gzip. Which command is appropriate?
62A junior admin runs 'ls -l' and sees permissions '-rwxrwxr-x' on a file. What is the octal representation?
63A system administrator wants to kill a process with PID 1234 that is not responding to SIGTERM. Which command will forcefully terminate it?
64A user needs to see the contents of a gzip-compressed file 'data.txt.gz' without decompressing it. Which command is appropriate?
65A script needs to search for lines containing 'ERROR' in /var/log/syslog and count them. Which command pipeline achieves this?
66An administrator wants to print the last field of each line from a CSV file 'data.csv' (comma-separated). Which awk command accomplishes this?
67A user 'dba' tries to login via SSH and fails. Based on the exhibit, what is the most likely cause?
68Based on the exhibit, what is the average CPU idle percentage over the last 15 minutes?
69The backup script fails to run as user 'backup' with sudo. What is the issue?
70Which TWO commands can be used to display the contents of a text file page by page? (Select two.)
71Which TWO commands can be used to change the ownership of a file to a specific user and group? (Select two.)
72Which THREE commands can be used to view the contents of a compressed archive file without extracting it? (Select three.)
73A user reports that they cannot run a script because it says 'Permission denied'. The script is owned by root and has permissions -rw-r--r--. Which command would allow the user to execute the script?
74A system administrator is troubleshooting a performance issue. They need to identify which process is consuming the most CPU time over the last 24 hours. Which command should be used?
75A developer needs to extract the third column from a CSV file where columns are separated by commas, but some fields contain commas within double quotes. Which command correctly handles this?
76A system administrator has a cron job that runs a backup script. The script requires the variable BACKUP_DIR to be set, but the administrator cannot modify the script. Which is the most appropriate place to define the variable for cron?
77An administrator needs to replace all occurrences of the string 'foo' with 'bar' in all files under /etc/config, but only in files ending with .conf. The replacement must be done in-place, and backup copies should be created with a .bak extension. Which command accomplishes this?
78A user wants to view the contents of a compressed log file /var/log/syslog.2.gz without decompressing it first. Which command should they use?
79A security policy requires that all users in the 'webadmin' group should have read and write access to files in /var/www/html. New files created in that directory should automatically be assigned to the 'webadmin' group and have group read/write permissions. Which combination of permissions and group ownership should be set on /var/www/html?
80Which command displays the amount of free and used memory in the system?
81An administrator wants to terminate a process with PID 1234 and all its child processes. Which command should be used?
82Which TWO commands can be used to view the last 10 lines of a file and also follow new lines as they are written?
83Which THREE of the following commands can be used to search for a string in multiple files and display the matching lines?
84Which TWO commands can be used to display the current working directory?
85Refer to the exhibit. The nginx service failed to start. What is the most likely immediate next step to diagnose the issue?
86Refer to the exhibit. The administrator receives alerts that the root filesystem is almost full. Which command could free up space by removing old log files?
87A system administrator is managing a production web server running CentOS 7. The server hosts a critical application that depends on the 'httpd' package. Recently, the administrator attempted to install an updated version of httpd using 'yum update httpd', but the update failed with a dependency error: 'Error: Package: httpd-2.4.6-97.el7.centos.x86_64 requires libapr-1.so.0()(64bit)'. The administrator verifies that the apr package is installed (apr-1.5.2-6.el7.x86_64) and that the required library file exists at /usr/lib64/libapr-1.so.0. Despite this, yum continues to fail with the same error. After checking the yum repository configuration, the administrator notices that the base repository lists 'mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os' and the 'baseurl' is commented out. The system's /etc/yum.conf has 'keepcache=1'. What is the most likely cause of the dependency error, and which command should the administrator run to resolve it?
88A system administrator notices that '/var/log/syslog' has grown very large and is consuming significant disk space. The administrator wants to identify the largest log files in the '/var/log' directory hierarchy. Which command should the administrator use?
89A developer reports that a compiled binary 'app' fails to execute with 'Permission denied' error when run from a mounted directory '/mnt/software'. The binary has execute permissions for all users. What is the most likely cause?
90A system administrator needs to stop a misbehaving process gracefully, allowing it to clean up resources. The process is unresponsive to the standard SIGTERM signal. What should the administrator do next?
91A database administrator wants to compress a large directory of log files for archival. The administrator uses the command: tar -cvf logs.tar.gz logs/. The command completes successfully but the resulting archive is only 10 MB while the original directory is 100 MB. What is the most likely reason?
92Which TWO commands can be used to display the contents of a text file that has been compressed with gzip without decompressing it to disk?
93Which THREE of the following statements about Linux file permissions are correct?
94A user reports that they cannot delete a file named 'important.txt' located in their home directory. The file is owned by the user and the user has write permission on the directory. Running 'rm important.txt' produces the error: 'rm: cannot remove 'important.txt': Operation not permitted'. The user has also tried using 'sudo rm' but gets the same error. Which of the following is the most likely cause and correct solution?
95A system administrator notices that the disk space on the root filesystem is at 95% usage. After investigating, they find that a large log file named 'access.log' in /var/log is taking up significant space. The administrator deletes the file using 'rm /var/log/access.log' but the disk usage remains at 95%. Running 'df -h' still shows the same usage. What is the most likely cause and the correct next step?
96A DevOps engineer is writing a continuous integration pipeline that runs a script to deploy an application. The script is stored in a Git repository and is executed on a build server. The script works locally on the engineer's workstation, but when executed on the build server, it fails with '/bin/sh: line 12: somecommand: command not found'. The 'somecommand' is a standard Linux tool that is installed on the build server. The build server uses a minimal Docker container. Which of the following is the most likely cause and solution?
97A system administrator monitors a server that periodically becomes unresponsive for a few seconds. Investigation reveals that the kernel OOM killer is being invoked, but standard memory usage monitoring tools like 'free' and 'top' show less than 50% memory usage. The server runs a web server and a database. Which of the following is the most likely cause and diagnostic step?
98A security audit reveals that a sensitive file '/etc/shadow' has been modified. The file's permissions are set to 600 and owned by root. However, the audit logs show that a service account 'webapp' was able to read the file. The 'webapp' user is not in the root group. Which of the following is the most likely method the 'webapp' user used to read the file?
99A system administrator configures a new server with multiple disks. After partitioning and formatting, they mount a partition to /data. Several days later, they notice that the /data filesystem is full, but 'du -sh /data' reports only 2 GB used, while the partition is 100 GB. 'df -h' shows /data is 98% full. What is the most likely cause and the correct action?
Deep-dive questions
The most-searched questions in this domain — detailed explanations, worked examples, full answer breakdowns.
Essential Commands questions on this certification test your ability to deploy and manage essential commands concepts in scenario-based situations.
The Courseiva LFCS question bank contains 99 questions in the Essential Commands domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Essential Commands domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included