Question 1mediummultiple choice
Read the full Essential Commands explanation →LFCS Essential Commands • Complete Question Bank
Complete LFCS Essential Commands question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit. $ ps aux | grep apache root 1234 0.0 0.2 12345 6789 ? Ss Jan01 0:00 /usr/sbin/apache2 -k start www-data 5678 0.0 0.1 12345 1234 ? S Jan01 0:00 /usr/sbin/apache2 -k start www-data 5679 0.0 0.1 12345 1234 ? S Jan01 0:00 /usr/sbin/apache2 -k start
Refer to the exhibit. $ ls -l /etc/shadow -rw-r----- 1 root shadow 1234 Jan 15 10:00 /etc/shadow $ id uid=1000(user1) gid=1000(user1) groups=1000(user1) $ cat /etc/shadow cat: /etc/shadow: Permission denied
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
r
w
x
s (owner execute)
t (other execute)
-rwxr-x--- 1 root developers 1234 Feb 20 10:00 script.sh
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1234 99.5 0.2 12345 6789 pts/0 R 10:00 45:00 process_hog
Filesystem Size Used Avail Use% Mounted on /dev/sda1 20G 20G 0 100% /var
Refer to the exhibit.
A user attempts to read /etc/passwd and receives "Permission denied". What is the most likely reason?
Refer to the exhibit.
A user attempts to create a file in /backup/snapshots/ but receives an error. What is the most likely cause?
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro) /dev/sda2 on /var type ext4 (rw,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev) /dev/sdb1 on /backup type ext4 (ro)
Refer to the exhibit.
The /data directory needs to be resized to 15GB. What is the first step?
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 20G 0 disk ├─sda1 8:1 0 512M 0 part /boot └─sda2 8:2 0 19.5G 0 part / sdb 8:16 0 10G 0 disk └─sdb1 8:17 0 10G 0 part /data
Refer to the exhibit. $ top -bn1 | head -5 top - 14:23:45 up 10 days, 2:15, 1 user, load average: 1.5, 2.0, 2.5 Tasks: 123 total, 1 running, 122 sleeping, 0 stopped, 0 zombie %Cpu(s): 25.0 us, 10.0 sy, 0.0 ni, 65.0 id, 0.0 wa, 0.0 hi, 0.0 si MiB Mem : 1984.4 total, 500.0 free, 1000.0 used, 484.4 buff/cache MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 1484.4 avail Mem
Refer to the exhibit. $ ls -l /usr/local/bin/backup.sh -rwx------ 1 root root 1024 Jan 1 12:00 /usr/local/bin/backup.sh $ sudo -u backup /usr/local/bin/backup.sh sudo: unable to execute /usr/local/bin/backup.sh: Permission denied $ id backup uid=1003(backup) gid=1003(backup) groups=1003(backup)
$ systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-10-23 09:15:32 UTC; 2min ago
Docs: man:nginx(8)
Process: 1234 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
Main PID: 1234 (code=exited, status=1)$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 50G 45G 5.4G 90% / /dev/sdb1 100G 20G 80G 20% /data