Search Tutorials


Linux MCQ - Multiple Choice Questions And Answers(Quiz) | JavaInUse

Linux Quiz - Multiple Choice Questions

Q1. What command is used to list files and directories in Linux?

A. dir
B. ls
C. list
D. show

Q2. Which command is used to change the current directory in Linux?

A. cd
B. chdir
C. change
D. move

Q3. What command is used to display the contents of a file in Linux?

A. cat
B. show
C. view
D. open

Q4. Which command is used to copy files or directories in Linux?

A. copy
B. cp
C. duplicate
D. replicate

Q5. What command is used to move or rename files or directories in Linux?

A. move
B. mv
C. rename
D. shift

Q6. Which command is used to delete files or directories in Linux?

A. delete
B. rm
C. remove
D. erase

Q7. What command is used to change file permissions in Linux?

A. chmod
B. perm
C. change
D. modify

Q8. Which command is used to find files in Linux?

A. search
B. find
C. locate
D. seek

Q9. What command is used to display the current directory in Linux?

A. pwd
B. dir
C. current
D. path

Q10. Which command is used to display the manual pages in Linux?

A. help
B. man
C. info
D. guide

Q11. What command is used to display the disk usage of files and directories in Linux?

A. df
B. du
C. disk
D. usage





Q12. Which command is used to display the system uptime in Linux?

A. uptime
B. time
C. sys
D. info

Q13. What command is used to display the current date and time in Linux?

A. date
B. time
C. calendar
D. clock

Q14. Which command is used to display the processes running in Linux?

A. ps
B. process
C. run
D. task

Q15. What command is used to display the network interfaces in Linux?

A. ifconfig
B. net
C. interface
D. config

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

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

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

A. touch
B. create
C. mkdir
D. newdir

Q18. What does the 'chmod' command do in Linux?

A. Change mode or modify file permissions
B. Create a new file
C. Compress a file
D. Copy a file

Q19. Which command is used to display the content of a file in Linux?

A. show
B. cat
C. display
D. view

Q20. What does the 'grep' command do in Linux?

A. Create a new file
B. Format a drive
C. Search text using patterns
D. Compress files

Q21. Which command is used to remove a directory in Linux?

A. delete
B. rmdir
C. remove
D. rd

Q22. What does the 'ps' command do in Linux?

A. Print screen
B. Create a process
C. Display running processes
D. Stop a process

Q23. Which command is used to copy files in Linux?

A. move
B. transfer
C. cp
D. duplicate

Q24. What does the 'df' command do in Linux?

A. Define file
B. Display file contents
C. Disk free space
D. Delete file

Q25. Which command is used to move or rename files in Linux?

A. change
B. mv
C. rename
D. transfer

Q26. What does the 'tar' command do in Linux?

A. Terminate a process
B. Create a tar archive
C. Transfer files
D. Track file changes

Q27. Which command is used to display system information in Linux?

A. info
B. sysinfo
C. uname
D. systemdetails

Q28. What does the 'top' command do in Linux?

A. Create a new top-level directory
B. Display system processes and resource usage
C. Stop all processes
D. List top files

Q29. Which command is used to find files in Linux?

A. search
B. locate
C. find
D. filesearch

Q30. What does the 'man' command do in Linux?

A. Create a manual
B. Display manual pages for commands
C. Manage files
D. Run manual tasks