LFCS: LINUX FOUNDATION CERTIFIED SYSTEM ADMINISTRATOR | 100% VERIFIED EXAM
QUESTIONS & ANSWERS | LATEST 2026/2027 VERSION | PASS GUARANTEE
1. Which command is used to view the contents of a file one page at a
time?
A. cat
B. more
C. head
D. grep
ANSWER : B. more
2. What command displays the first 10 lines of a file by default?
A. tail
B. grep
C. head
D. less
ANSWER : C. head
3. Which command is used to search for a pattern in a file?
A. find
B. locate
C. grep
D. awk
ANSWER : C. grep
4. What does the command 'ls -la' do?
A. Lists files in long format including hidden files
B. Lists only hidden files
C. Lists files sorted by size
D. Lists files sorted by date
ANSWER : A. Lists files in long format including hidden files
5. Which command is used to change file permissions?
A. chown
B. chmod
C. chgrp
, D. chattr
ANSWER : B. chmod
6. What does 'chmod 755 file.sh' do?
A. Owner: rwx, Group: r-x, Others: r-x
B. Owner: rw-, Group: r-x, Others: r-x
C. Owner: rwx, Group: rwx, Others: r-x
D. Owner: rwx, Group: r-x, Others: ---
ANSWER : A. Owner: rwx, Group: r-x, Others: r-x
7. Which command changes file ownership?
A. chmod
B. chgrp
C. chown
D. usermod
ANSWER : C. chown
8. What command is used to find files in a directory hierarchy?
A. locate
B. grep
C. which
D. find
ANSWER : D. find
9. Which command displays current running processes?
A. jobs
B. ps
C. top
D. Both B and C
ANSWER : D. Both B and C
10. What does 'kill -9 PID' do?
A. Gracefully stops a process
B. Forcefully terminates a process
C. Pauses a process
D. Restarts a process
ANSWER : B. Forcefully terminates a process
11. Which directory contains system configuration files in Linux?
A. /bin
B. /usr
C. /etc
, D. /var
ANSWER : C. /etc
12. What is the purpose of the /tmp directory?
A. Stores temporary files cleared on reboot
B. Stores user home directories
C. Stores system binaries
D. Stores log files
ANSWER : A. Stores temporary files cleared on reboot
13. Which command creates a new directory?
A. touch
B. makedir
C. mkdir
D. newdir
ANSWER : C. mkdir
14. What does 'rm -rf directory' do?
A. Removes only empty directories
B. Recursively removes directory and all contents without prompting
C. Moves the directory to trash
D. Renames the directory
ANSWER : B. Recursively removes directory and all contents without
prompting
15. Which command creates an empty file or updates timestamps?
A. create
B. new
C. touch
D. make
ANSWER : C. touch
16. What filesystem type is commonly used for Linux root partitions?
A. NTFS
B. FAT32
C. ext4
D. HFS+
ANSWER : C. ext4
17. Which command mounts a filesystem?
A. attach
B. mount
, C. link
D. bind
ANSWER : B. mount
18. What file contains the list of filesystems to mount at boot?
A. /etc/mtab
B. /proc/mounts
C. /etc/fstab
D. /etc/filesystems
ANSWER : C. /etc/fstab
19. Which command shows disk usage of a directory?
A. df
B. du
C. ls
D. stat
ANSWER : B. du
20. What does 'df -h' display?
A. Disk usage in bytes
B. Filesystem disk space in human-readable format
C. Directory file count
D. Inode usage
ANSWER : B. Filesystem disk space in human-readable format
21. Which command adds a new user in Linux?
A. adduser
B. newuser
C. useradd
D. Both A and C
ANSWER : D. Both A and C
22. What file stores user account information?
A. /etc/shadow
B. /etc/passwd
C. /etc/group
D. /etc/users
ANSWER : B. /etc/passwd
23. Where are encrypted user passwords stored?
A. /etc/passwd
B. /etc/password
QUESTIONS & ANSWERS | LATEST 2026/2027 VERSION | PASS GUARANTEE
1. Which command is used to view the contents of a file one page at a
time?
A. cat
B. more
C. head
D. grep
ANSWER : B. more
2. What command displays the first 10 lines of a file by default?
A. tail
B. grep
C. head
D. less
ANSWER : C. head
3. Which command is used to search for a pattern in a file?
A. find
B. locate
C. grep
D. awk
ANSWER : C. grep
4. What does the command 'ls -la' do?
A. Lists files in long format including hidden files
B. Lists only hidden files
C. Lists files sorted by size
D. Lists files sorted by date
ANSWER : A. Lists files in long format including hidden files
5. Which command is used to change file permissions?
A. chown
B. chmod
C. chgrp
, D. chattr
ANSWER : B. chmod
6. What does 'chmod 755 file.sh' do?
A. Owner: rwx, Group: r-x, Others: r-x
B. Owner: rw-, Group: r-x, Others: r-x
C. Owner: rwx, Group: rwx, Others: r-x
D. Owner: rwx, Group: r-x, Others: ---
ANSWER : A. Owner: rwx, Group: r-x, Others: r-x
7. Which command changes file ownership?
A. chmod
B. chgrp
C. chown
D. usermod
ANSWER : C. chown
8. What command is used to find files in a directory hierarchy?
A. locate
B. grep
C. which
D. find
ANSWER : D. find
9. Which command displays current running processes?
A. jobs
B. ps
C. top
D. Both B and C
ANSWER : D. Both B and C
10. What does 'kill -9 PID' do?
A. Gracefully stops a process
B. Forcefully terminates a process
C. Pauses a process
D. Restarts a process
ANSWER : B. Forcefully terminates a process
11. Which directory contains system configuration files in Linux?
A. /bin
B. /usr
C. /etc
, D. /var
ANSWER : C. /etc
12. What is the purpose of the /tmp directory?
A. Stores temporary files cleared on reboot
B. Stores user home directories
C. Stores system binaries
D. Stores log files
ANSWER : A. Stores temporary files cleared on reboot
13. Which command creates a new directory?
A. touch
B. makedir
C. mkdir
D. newdir
ANSWER : C. mkdir
14. What does 'rm -rf directory' do?
A. Removes only empty directories
B. Recursively removes directory and all contents without prompting
C. Moves the directory to trash
D. Renames the directory
ANSWER : B. Recursively removes directory and all contents without
prompting
15. Which command creates an empty file or updates timestamps?
A. create
B. new
C. touch
D. make
ANSWER : C. touch
16. What filesystem type is commonly used for Linux root partitions?
A. NTFS
B. FAT32
C. ext4
D. HFS+
ANSWER : C. ext4
17. Which command mounts a filesystem?
A. attach
B. mount
, C. link
D. bind
ANSWER : B. mount
18. What file contains the list of filesystems to mount at boot?
A. /etc/mtab
B. /proc/mounts
C. /etc/fstab
D. /etc/filesystems
ANSWER : C. /etc/fstab
19. Which command shows disk usage of a directory?
A. df
B. du
C. ls
D. stat
ANSWER : B. du
20. What does 'df -h' display?
A. Disk usage in bytes
B. Filesystem disk space in human-readable format
C. Directory file count
D. Inode usage
ANSWER : B. Filesystem disk space in human-readable format
21. Which command adds a new user in Linux?
A. adduser
B. newuser
C. useradd
D. Both A and C
ANSWER : D. Both A and C
22. What file stores user account information?
A. /etc/shadow
B. /etc/passwd
C. /etc/group
D. /etc/users
ANSWER : B. /etc/passwd
23. Where are encrypted user passwords stored?
A. /etc/passwd
B. /etc/password