Free tech learning for everyone, from basics to pro

More topics20 questionsAbout 20 minutes

Linux basics quiz

Files and permissions, users, processes, services, networking commands and logs on Linux. Choose one answer for each question, then press Check my answers to see your score and an explanation for every question.

1Which command shows the full path of the folder you are in?
2What does chmod 640 file.txt give the owner, group and others?
3Which command runs a single command with administrator rights?
4Which command shows IP addresses on a modern Linux system?
5Which command lists listening ports and the programs using them?
6How do you restart the nginx service on a systemd-based system?
7Which command follows a log file as new lines are added?
8Where are most system logs stored on Linux?
9Which command searches for the word "error" in all files under /var/log, ignoring case?
10Which is the safest way to log in to a Linux server over the network?
11Which command lists files, including hidden ones, in long format?
12Which command changes the owner of a file to user alice?
13Which file maps hostnames to IP addresses locally, before DNS?
14Which command shows running processes and live resource use?
15Which command shows disk space used and available on mounted filesystems?
16What does the pipe symbol | do?
17Which command enables a service to start automatically at boot on systemd?
18Where are the SSH server settings usually stored?
19Which setting in sshd_config stops direct root logins?
20Which tool is commonly used on Ubuntu to manage a simple host firewall?

Revise these topics

Next quiz: Cloud fundamentals quiz (AWS and Azure) →

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.