0% found this document useful (0 votes)
24 views

Linux Basics Extended Multiple-Choice Test

This document contains a 40 question multiple choice test on Linux basics. The questions cover a wide range of fundamental Linux commands and concepts including viewing network traffic, checking the current working directory, changing file permissions and ownership, installing and managing software packages, compressing and archiving files, scheduling tasks, and other core Linux administration tasks.

Uploaded by

eran
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Linux Basics Extended Multiple-Choice Test

This document contains a 40 question multiple choice test on Linux basics. The questions cover a wide range of fundamental Linux commands and concepts including viewing network traffic, checking the current working directory, changing file permissions and ownership, installing and managing software packages, compressing and archiving files, scheduling tasks, and other core Linux administration tasks.

Uploaded by

eran
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Linux Basics Extended Multiple-Choice Test

1. What is the command used to view network traffic?


A. tcpdump
B. wireshark
C. sniffer
D. tcpmon

2. Which command is used to display the current working directory in Linux?


a) pwd
b) ls
c) cd
d) dir

3. What is the purpose of the chmod command in Linux?


a) Change Mode
b) Change Directory
c) Change Modification
d) Change Ownership

4. Which file stores the system-wide environment variables in Linux?


a) .profile
b) .bashrc
c) /etc/environment

d) /var/envs

5. What does the command ls -l display?


a) List of files and directories
b) Detailed file and directory information
c) Hidden files only

d) File sizes in kilobytes

6. Which command is used to install software packages in Debian-based Linux distributions?


a) yum
b) dpkg
c) apt-get

d) pacman

7. What is the purpose of the grep command in Linux?


a) Graphical Representation
b) General Replacement
c) Global Regular Expression Print

d) Get Report

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


a) mkdir
b) touch
c) newdir

d) addfolder

9. What does the ps command display in Linux?


a) Process Status
b) Print Spooler
c) Program Scheduler

d) Processor Speed

10. Which command is used to remove a file in Linux?


a) delete
b) rm
c) erase

d) del

11. What does the sudo command allow a user to do in Linux?


a) Switch User
b) Superuser Do
c) System Update

d) Secure Undo

12. Which configuration file contains network-related settings in Linux?


a) /etc/network.conf
b) /etc/hosts
c) /etc/resolv.conf

d) /etc/config/network

13. What is the purpose of the tar command in Linux?


a) Tape Archive
b) Text Archive
c) Terminal Archive

d) Tree Archive
14. Which command is used to find the total disk space usage of a directory in Linux?
a) df
b) du
c) disk

d) space

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


a) Bash
b) Zsh
c) Fish

d) Sh

16. Which command is used to update the package list in Debian-based Linux distributions?
a) update
b) apt-update
c) yum update

d) apt-get update

17. What is the purpose of the chmod +x command in Linux?


a) Change Ownership to Execute
b) Change Modification to Execute
c) Change Mode to Execute

d) Change Directory to Execute

18. What does the acronym "SSH" stand for in the context of Linux?
a) Secure Shell
b) System Shell
c) Shell Scripting

d) Superuser Shell

19. Which command is used to view the contents of a file in Linux?


a) cat
b) view
c) read

d) show

20. In Linux, what does the cron system do?


a) Controls system clock
b) Manages user accounts
c) Handles periodic tasks and scheduling
d) Controls system configuration

21. What is the purpose of the ls -a command in Linux?


a) List all files including hidden ones
b) List files in alphabetical order
c) List files in ascending order by size

d) List only executable files

22. Which command is used to find files in Linux based on their content?
a) locate
b) find
c) grep

d) search

23. What is the purpose of the ifconfig command in Linux?


a) Interface Configuration
b) Install Configuration
c) Internet Configuration

d) Internal Configuration

24. Which command is used to display the last few lines of a file in Linux?
a) tail
b) head
c) more

d) less

25. What does the uname -a command display in Linux?


a) User names
b) System information
c) Active processes

d) Network interfaces

26. Which command is used to create an empty file in Linux?


a) newfile
b) create
c) touch

d) make

27. What does the df -h command display in Linux?


a) Detailed file information
b) Disk space usage in human-readable format
c) Directory hierarchy

d) File permissions

28. Which command is used to compress files in Linux?


a) zip
b) compress
c) gzip

d) tar

29. In Linux, what is the purpose of the echo command?


a) Display system messages
b) Create a new file
c) Print environment variables

d) Output text to the console

30. Which command is used to rename a file in Linux?


a) mv
b) rename
c) cp

d) chname

31. What is the purpose of the chown command in Linux?


a) Change Ownership
b) Change Permissions
c) Change Size

d) Change Name

32. Which directory is the home directory for the root user in Linux?
a) /home/root
b) /root
c) /home/admin

d) /admin

33. What is the purpose of the whoami command in Linux?


a) Display current user
b) Display system hostname
c) Display current date and time
d) Display system architecture

34. Which command is used to create a symbolic link in Linux?


a) symlink
b) link
c) ln

d) mklink

35. What is the purpose of the umask command in Linux?


a) Update mask
b) User mask
c) Unmask

d) User file creation mask

36. Which command is used to display the manual page for a command in Linux?
a) help
b) man
c) info

d) readme

37. In Linux, what is the purpose of the history command?


a) Display system history
b) Display user login history
c) Display command history

d) Display file modification history

38. What is the purpose of the mount command in Linux?


a) Mount a new hard drive
b) Mount a file system
c) Mount a directory

d) Mount a network drive

39. Which command is used to change the priority of a process in Linux?


a) nice
b) priority
c) renice

d) change-priority

40. In Linux, what is the purpose of the shutdown command?


a) Restart the system
b) Log out the current user
c) Power off the system

d) Suspend the system

You might also like