Operating System Unix/Linux

  1. Which Linux command is used to display kernel version?
    A) uname -r
    B) kernel -v
    C) version
    D) sysinfo
    Answer: A
  2. What does the chmod 755 file command do?
    A) Grants full access to all users
    B) Owner full, group & others read/execute
    C) Owner read only
    D) Removes all permissions
    Answer: B
  3. Which file contains user account information?
    A) /etc/shadow
    B) /etc/group
    C) /etc/passwd
    D) /etc/users
    Answer: C
  4. What is the default shell in most Linux distributions?
    A) csh
    B) bash
    C) zsh
    D) sh
    Answer: B
  5. Which command is used to change file ownership?
    A) chmod
    B) chown
    C) change
    D) owner
    Answer: B
  6. Which signal is sent by default with kill command?
    A) SIGKILL
    B) SIGSTOP
    C) SIGTERM
    D) SIGINT
    Answer: C
  7. Which command lists all running processes?
    A) list
    B) ps
    C) run
    D) jobs
    Answer: B
  8. What is inode in Unix/Linux?
    A) File name
    B) File content
    C) File metadata structure
    D) File path
    Answer: C
  9. Which command is used to find files?
    A) search
    B) locate
    C) find
    D) grep
    Answer: C
  10. Which directory contains system binaries?
    A) /home
    B) /bin
    C) /usr
    D) /etc
    Answer: B
  11. What does pwd command do?
    A) Prints working directory
    B) Changes directory
    C) Lists files
    D) Deletes files
    Answer: A
  12. Which command is used to compress files in Linux?
    A) zip
    B) tar
    C) gzip
    D) All of the above
    Answer: D
  13. What is the root directory in Linux?
    A) /root
    B) /home
    C) /
    D) /bin
    Answer: C
  14. Which command is used to change directory?
    A) dir
    B) cd
    C) chdir
    D) move
    Answer: B
  15. Which command is used to display file contents?
    A) show
    B) cat
    C) open
    D) view
    Answer: B
  16. What does ls -l show?
    A) Simple list
    B) Detailed file list
    C) Hidden files only
    D) Sorted list
    Answer: B
  17. Which command removes files?
    A) delete
    B) remove
    C) rm
    D) erase
    Answer: C
  18. Which command creates a directory?
    A) mkdir
    B) create
    C) dir
    D) newdir
    Answer: A
  19. Which command is used to copy files?
    A) cp
    B) copy
    C) mv
    D) clone
    Answer: A
  20. What does mv command do?
    A) Copy files
    B) Move/rename files
    C) Delete files
    D) Compress files
    Answer: B
  21. What is a shell?
    A) Kernel
    B) Interface between user and OS
    C) Hardware
    D) File system
    Answer: B
  22. Which command displays disk usage?
    A) df
    B) du
    C) Both A and B
    D) usage
    Answer: C
  23. What is the purpose of /etc/shadow?
    A) Stores user passwords securely
    B) Stores file info
    C) Stores logs
    D) Stores commands
    Answer: A
  24. Which command is used for process priority?
    A) nice
    B) top
    C) ps
    D) kill
    Answer: A
  25. Which command displays current processes dynamically?
    A) ps
    B) top
    C) run
    D) proc
    Answer: B
  26. What does grep do?
    A) Deletes files
    B) Searches text patterns
    C) Compress files
    D) Moves files
    Answer: B
  27. Which command is used to change password?
    A) passwd
    B) password
    C) chpass
    D) setpass
    Answer: A
  28. What is the superuser called?
    A) admin
    B) root
    C) super
    D) user1
    Answer: B
  29. Which command shows manual pages?
    A) help
    B) man
    C) info
    D) guide
    Answer: B
  30. Which file system is commonly used in Linux?
    A) FAT
    B) NTFS
    C) ext4
    D) HFS
    Answer: C
  31. What does df show?
    A) Disk free space
    B) File details
    C) Directory structure
    D) Memory usage
    Answer: A
  32. What does du show?
    A) Disk usage of files
    B) Free space
    C) CPU usage
    D) Memory
    Answer: A
  33. Which command is used to link files?
    A) ln
    B) link
    C) connect
    D) bind
    Answer: A
  34. What is a symbolic link?
    A) Copy of file
    B) Shortcut to file
    C) Hidden file
    D) Encrypted file
    Answer: B
  35. Which command displays environment variables?
    A) env
    B) var
    C) setenv
    D) export
    Answer: A
  36. Which command shuts down system?
    A) shutdown
    B) poweroff
    C) halt
    D) All of the above
    Answer: D
  37. Which command schedules tasks?
    A) cron
    B) at
    C) Both A and B
    D) schedule
    Answer: C
  38. What is cron used for?
    A) Process management
    B) Task scheduling
    C) Memory allocation
    D) File system
    Answer: B
  39. Which command shows current user?
    A) user
    B) whoami
    C) id
    D) me
    Answer: B
  40. What does who command do?
    A) Shows logged-in users
    B) Shows files
    C) Shows processes
    D) Shows memory
    Answer: A
  41. Which command is used for archiving?
    A) tar
    B) zip
    C) gzip
    D) rar
    Answer: A
  42. What does kill -9 do?
    A) Graceful termination
    B) Forcefully kills process
    C) Suspends process
    D) Restarts process
    Answer: B
  43. What is /home directory used for?
    A) System files
    B) User files
    C) Logs
    D) Boot files
    Answer: B
  44. Which command shows system uptime?
    A) up
    B) uptime
    C) time
    D) sys
    Answer: B
  45. Which command shows memory usage?
    A) mem
    B) free
    C) top
    D) Both B and C
    Answer: D
  46. Which command changes group ownership?
    A) chgrp
    B) chown
    C) group
    D) grpchange
    Answer: A
  47. Which command edits text files?
    A) nano
    B) vi
    C) vim
    D) All of the above
    Answer: D
  48. What does echo do?
    A) Displays text
    B) Deletes text
    C) Moves text
    D) Edits text
    Answer: A
  49. Which command clears terminal?
    A) clean
    B) clear
    C) cls
    D) reset
    Answer: B
  50. What is a daemon in Linux?
    A) User process
    B) Background service
    C) Hardware device
    D) File system
    Answer: B

Leave a Comment