All featured quizzes

Linux & OS - Basics

Linux command-line utilities, text editors like nano and Vim, file management, and directory structures.

Sample Questions

A preview of what's in this quiz. Answer them interactively for instant scoring and full explanations.

What is Linux?

1. What is Linux?

  • A.A database server application
  • B.A compiler tool for JavaScript
  • C.A web application framework
  • D.An open-source operating system kernel
What is the difference between the Linux Kernel and a Linux Distribution (Distro)?

2. What is the difference between the Linux Kernel and a Linux Distribution (Distro)?

  • A.The distribution is the core hardware-manager; the kernel packages applications.
  • B.The kernel is paid software; distributions are always free and open-source.
  • C.The kernel runs on local PCs; distributions run only on remote cloud servers.
  • D.The kernel is the core hardware-manager; a distribution packages the kernel with applications and tools.
In the Linux filesystem hierarchy, what does the single forward slash '/' represent?

3. In the Linux filesystem hierarchy, what does the single forward slash '/' represent?

  • A.The current user's home directory
  • B.A shortcut for parent directories
  • C.A division between drive letters
  • D.The root directory of the filesystem
Who is the administrative superuser account in Linux operating systems?

4. Who is the administrative superuser account in Linux operating systems?

  • A.admin
  • B.sudo
  • C.system
  • D.root
Where are essential user binary executables (command-line tools like ls, cp, grep) located?

5. Where are essential user binary executables (command-line tools like ls, cp, grep) located?

  • A./etc/
  • B./var/
  • C./tmp/
  • D./bin/
Where are user-specific files and personal directories typically stored in a Linux system?

6. Where are user-specific files and personal directories typically stored in a Linux system?

  • A./usr/
  • B./bin/
  • C./root/
  • D./home/
Which directory is designated for storing temporary files that are often deleted upon system reboot?

7. Which directory is designated for storing temporary files that are often deleted upon system reboot?

  • A./var/
  • B./etc/
  • C./opt/
  • D./tmp/
Which Linux command displays the absolute path of the current working directory in the terminal?

8. Which Linux command displays the absolute path of the current working directory in the terminal?

  • A.cd
  • B.ls
  • C.whereami
  • D.pwd
Which command is used to run a command with administrative superuser (root) privileges?

9. Which command is used to run a command with administrative superuser (root) privileges?

  • A.run-root
  • B.su
  • C.admin
  • D.sudo
Where are system configuration files (like hosts, fstab, network settings) stored in Linux?

10. Where are system configuration files (like hosts, fstab, network settings) stored in Linux?

  • A./var/
  • B./usr/
  • C./bin/
  • D./etc/
Which flags are passed to the 'rm' command to force delete a directory and all of its contents recursively, bypassing warnings?

11. Which flags are passed to the 'rm' command to force delete a directory and all of its contents recursively, bypassing warnings?

  • A.rm -d
  • B.rm -delete
  • C.rm -a
  • D.rm -rf
Which Linux command is used to delete (remove) a file?

12. Which Linux command is used to delete (remove) a file?

  • A.delete
  • B.rmdir
  • C.erase
  • D.rm
Which flags are passed to 'ls' to show a detailed list (long format) including permissions, size, and owner, as well as hidden files?

13. Which flags are passed to 'ls' to show a detailed list (long format) including permissions, size, and owner, as well as hidden files?

  • A.ls -h
  • B.ls -d
  • C.ls -all
  • D.ls -la
Which Linux command lists the files and directories inside the current folder?

14. Which Linux command lists the files and directories inside the current folder?

  • A.dir
  • B.list
  • C.cat
  • D.ls
Which Linux command is used to copy files or directories from one location to another?

15. Which Linux command is used to copy files or directories from one location to another?

  • A.mv
  • B.rm
  • C.copy
  • D.cp
Which Linux command is used to change the current working directory?

16. Which Linux command is used to change the current working directory?

  • A.pwd
  • B.ls
  • C.move
  • D.cd
Which Linux command is used to create a new, empty directory?

17. Which Linux command is used to create a new, empty directory?

  • A.newdir
  • B.createdir
  • C.touch
  • D.mkdir
Which Linux command is used to move or rename files or directories?

18. Which Linux command is used to move or rename files or directories?

  • A.cp
  • B.rename
  • C.rm
  • D.mv
Which Linux command concatenates and displays the full contents of a text file in the console?

19. Which Linux command concatenates and displays the full contents of a text file in the console?

  • A.less
  • B.echo
  • C.print
  • D.cat
Which Linux command is used to create a new, empty file or update the timestamp of an existing file?

20. Which Linux command is used to create a new, empty file or update the timestamp of an existing file?

  • A.mkdir
  • B.create
  • C.newfile
  • D.touch

Looking for a different topic? Browse all subjects