0% found this document useful (0 votes)
15 views10 pages

Linux OS Quiz Updated Answers[1]

Uploaded by

rihasagarkekathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views10 pages

Linux OS Quiz Updated Answers[1]

Uploaded by

rihasagarkekathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Linux and Operating Systems Quiz

1. Which of the following is NOT a conventional disk filesystem in Linux?


A) ext4
B) XFS
C) FAT32
D) jffs2

2. What command is used to lock the screen in GNOME using the Super (Windows) key?
A) Super + Esc
B) Super + L
C) Ctrl + L
D) Super + Shift

3. Which package manager is used in Debian-based Linux distributions?


A) rpm
B) dnf
C) apt
D) yum

4. Which of the following protocols is commonly used for email retrieval?


A) SMTP
B) DHCP
C) IMAP
D) TCP

5. What is the purpose of the 'sudo' command in Linux?


A) To change file permissions
B) To run commands with superuser privileges
C) To switch between users
D) To list system processes

6. Which Linux command is used to find a specific file by name?


A) locate
B) find
C) grep
D) both A & B

7. In the 'top' command output, what does a load average of 4.00 on a quad-core system indicate?
A) The system is underutilized
B) The system is 100% utilized
C) The system is overloaded
D) The system is idle

8. What command is used to view all background jobs in a terminal?


A) jobs
B) ps
C) fg
D) bg

9. Which of the following directories contains system configuration files in Linux?


A) /home
B) /var
C) /etc
D) /bin

10. What is the main function of the 'chmod' command?


A) Change file permissions
B) Change file ownership
C) Change file timestamps
D) Move files

11. What is the default display manager for GNOME?


A) gdm
B) xdm
C) kdm
D) lightdm

12. Which Linux command is used to check disk usage?


A) df
B) du
C) lsblk
D) Both A & B

13. What does the command `ps aux` do?


A) Lists all processes of all users
B) Terminates a process
C) Starts a new process
D) Displays memory usage

14. What is the purpose of the `/proc` directory?


A) Stores system logs
B) Contains kernel and process information
C) Stores user files
D) Holds executable binaries

15. Which file contains user account information in Linux?


A) /etc/passwd
B) /etc/shadow
C) /etc/group
D) /etc/login.defs

16. What command is used to view the first few lines of a file?
A) tail
B) head
C) cat
D) grep

17. What is the purpose of the 'man' command?


A) To display system logs
B) To view manual pages
C) To list running processes
D) To manage files

18. Which command is used to create a new directory in Linux?


A) rmdir
B) mkdir
C) touch
D) newdir

19. How do you switch to the root user in Linux?


A) su
B) sudo
C) root
D) login

20. What does 'ps' command do?


A) Displays process status
B) Lists files
C) Shows disk usage
D) Manages user permissions

21. Which directory stores system log files?


A) /var/log
B) /etc/logs
C) /sys/log
D) /usr/logs

22. Which Linux command is used to search inside a file?


A) find
B) grep
C) locate
D) search

23. What is the purpose of the 'chmod' command?


A) Change file ownership
B) Change file permissions
C) Move files
D) Copy files

24. What is the default shell in most Linux distributions?


A) zsh
B) csh
C) bash
D) fish

25. What is the primary function of the 'kill' command?


A) Terminate processes
B) Delete files
C) Restart the system
D) Log out users

26. How do you check the current working directory?


A) ls
B) cd
C) pwd
D) dir

27. Which directory contains essential Linux binaries?


A) /etc
B) /bin
C) /home
D) /lib

28. Which process scheduling tool runs jobs at a specific time?


A) at
B) cron
C) sleep
D) nohup

29. What does the 'df' command display?


A) Free and used disk space
B) Directory structure
C) Running processes
D) Open network ports

30. How do you list open network connections in Linux?


A) netstat
B) ps
C) lsnet
D) ifconfig

31. What does the 'uptime' command show?


A) System boot logs
B) System running time
C) Logged-in users
D) Memory usage

32. Which file system is primarily used in Linux?


A) NTFS
B) FAT32
C) ext4
D) HFS+

33. What does the 'passwd' command do?


A) Change user password
B) List users
C) Add a user
D) Lock a user account

34. What is the purpose of the /dev directory?


A) Store device files
B) Store user data
C) Store logs
D) Store applications

35. How do you display the contents of a file in Linux?


A) touch
B) ls
C) cat
D) mv

36. Which command is used to compare files?


A) cmp
B) diff
C) compare
D) Both A & B

37. What does 'nice' command do?


A) Change process priority
B) Kill a process
C) Monitor system load
D) Create a new user

38. What does the 'top' command show?


A) List of processes
B) Mounted filesystems
C) Open network connections
D) Disk usage

39. What does the 'alias' command do?


A) Create shortcut commands
B) Create new users
C) Display processes
D) Mount a drive

40. What is the purpose of 'export' command?


A) Set environment variables
B) Export files
C) Backup data
D) Move directories

41. How do you remove a directory in Linux?


A) rm -r
B) del
C) rmdir
D) erase

42. What does the 'echo' command do?


A) Display a message
B) Copy a file
C) Create a new user
D) Show memory usage

43. How do you restart a Linux system?


A) shutdown -r
B) reboot
C) Both A & B
D) restart

44. What does 'ls -a' do?


A) List all files including hidden ones
B) List only hidden files
C) List system files
D) List directories only

45. What is the purpose of the 'tar' command?


A) Archive files
B) Delete files
C) Extract text
D) Move files

46. What does the 'scp' command do?


A) Copy files securely over SSH
B) Create symbolic links
C) Show process status
D) Display user permissions

47. What is the purpose of the 'mount' command?


A) Attach a filesystem
B) Unmount a drive
C) Create partitions
D) Format a disk

48. What does 'grep -i' do?


A) Case-insensitive search
B) Search only uppercase letters
C) Count words
D) Search and replace text

49. How do you list all running services?


A) systemctl list-units --type=service
B) ps aux
C) top
D) netstat -tulnp

50. What is the function of the 'history' command?


A) View previously executed commands
B) Show system logs
C) Display active users
D) Monitor memory usage
Answers:

1. D
2. B
3. C
4. C
5. B
6. D
7. B
8. A
9. C
10. A
11. A
12. D
13. A
14. B
15. A
16. B
17. B
18. B
19. A
20. A
21. A
22. B
23. B
24. C
25. A
26. C
27. B
28. B
29. A
30. A
31. B
32. C
33. A
34. A
35. C
36. D
37. A
38. A
39. A
40. A
41. C
42. A
43. C
44. A
45. A
46. A
47. A

You might also like