Junior Linux administrator interviews come down to a dozen commands explained well
Learn a dozen everyday commands well and say why you would run each one. A careful order of checks counts for more than a long list of flags.

Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
A junior Linux interview often includes practical questions at a shell prompt, on paper or on a real server. Panels listen for the command you would type, and for what you expect it to show.
Each model answer is written to be said aloud and then adapted. Put the answers in your own words, and add what you have done on a real server or a home lab.
Reading and changing permissions
Permissions make a good first topic because so many Linux faults come back to them. A panel will often start with a numeric mode and ask you to read it.
A typical opener is "What does chmod 640 report.txt do?" Read the digits from left to right:
The owner can read and write the file, and members of its group can read it. Everyone else has no access. Each digit is a sum of read (4), write (2) and execute (1).
From there, the follow-ups test whether you understand the edges of the model:
- "Why does
/tmpshow atat the end of its permissions?" That is the sticky bit, also called the restricted deletion flag. In a directory everyone can write to, it stops users removing or renaming files unless they own the file or the directory. - "How do you change the owner and the group in one go?"
chown deploy:www-data report.txtsets both. A colon with no group after it sets the group to that user's login group instead. - "What happens if you run
chmodon a symbolic link?" Run on its own, it changes the file the link points to. The permissions on the link itself are not changed, and a recursive run skips links.
A strong answer also names what you would avoid, such as chmod -R 777 to make an error go away. Instead, find which user the process runs as, and grant that user only the access it needs.
Users, groups and sudo
Once files are covered, the next question is who may change them. Adding users to groups and granting admin rights are routine junior tasks, so expect at least one question here.
The first is often "How do you add an existing user to a group?" A good answer shows you know the trap:
I would run
sudo usermod -aG developers deploy. The-amatters, because-Gon its own replaces the user's supplementary groups. Without it, they drop out of every group not listed.
The second classic is how to give someone sudo rights safely. Edit the rules with visudo, never with a plain editor, because visudo locks the sudoers file and checks its syntax before saving. That check protects you, since sudo reads the same file. If visudo would see a syntax error, so would sudo, and admin access could stop working.
A stronger answer adds the @includedir /etc/sudoers.d line, which lets each rule live in its own small file. In that folder, files whose names contain a dot or end in ~ are skipped. A file called web-team.conf would therefore be silently ignored. Running visudo -c checks the files without opening an editor.
Account locking is a common follow-up. usermod -L locks only the password, by putting a ! in front of the stored hash. To lock the account itself, not just password sign-in, also set its expiry date, for example with usermod -e 1.
Processes and the signals that stop them
Knowing who can run things leads naturally to what is running now. Expect to list processes, stop one cleanly and explain what the states mean.
To see every process, use ps -ef in standard syntax or ps ax in BSD syntax. The question that follows is nearly always about stopping one:
Plain
killsends SIGTERM, which a program can catch so it can tidy up and exit cleanly.kill -9sends SIGKILL, which cannot be caught, so the program gets no chance to clean up. I would send SIGTERM first and use SIGKILL only if the process ignores it.
Zombie processes are the other favourite. A zombie has already exited, but its parent has not collected it, and ps shows it as Z or marks it defunct. Zombies are removed once the parent exits, so the parent process is the one to investigate.
Services and their logs under systemd
A process that keeps dying is often a service, and on systemd distributions services are managed with systemctl. Their logs live in the journal, so the two tend to come up together.
Panels like to check that you know start from enable:
systemctl startruns the service now.systemctl enablecreates the links that start it at boot, but it does not start it now unless you add--now.
If you edit a unit file, run systemctl daemon-reload so systemd reloads its unit files, then restart the service. systemctl status nginx shows the unit's state followed by its most recent log lines, 10 by default. For the full story, journalctl filters the journal in the ways an investigation needs:
journalctl -u nginxshows messages for that one unit.-blimits the output to the current boot.-p errshows errors and anything more severe.--since todaystarts from midnight, and-ffollows new entries as they arrive.
A unit can also stay failed after a change. KBY's runbook on a systemd service left failed after a deployment walks through one case.
When the disk fills up
A service with no room to write will fail as well, so it pays to have a disk-space answer ready. The usual question is how you would find what is filling a disk:
df -hshows each file system's size and free space in readable units. Thendu -h --max-depth=1 /vartotals each folder one level down, and I repeat that inside the largest one.
Two follow-ups separate a practised answer from a memorised one. The first is "df says the disk is full, but du adds up to much less." A deleted file that a process still holds open keeps its space until the last open copy is closed. The space comes back when that process closes the file, so restarting it is the usual fix.
The second is "There is free space, but nothing can create new files." Run df -i, which reports inodes rather than blocks. KBY's guide to inode exhaustion shows how to tell the two causes apart.

Network checks with ip and ss
With the server itself healthy, the next question is whether anything can reach it. Two tools cover most junior network questions.
For addresses and routes, ip addr shows the addresses on every interface and ip route shows the routing table. ip neigh shows the neighbour table, the kernel's cache of neighbouring machines on the local network. Together they answer "does this server have an address, and does it know where to send traffic?"
For services, the usual question is how you would check that one is listening:
ss -tlnplists listening TCP sockets, with port numbers rather than service names and the process using each one. Without options, ss lists open non-listening sockets, so a listening service would not appear.
It is worth adding that ss shows the same kind of information as netstat, with more detail on TCP. That shows a panel you can work on an older server as well as a new one.
SSH keys and a safer sshd
Remote access is how an administrator reaches almost every server, so expect questions on keys and on locking SSH down. Both build on the permissions you covered earlier.
For key-based login, a good answer runs in order. ssh-keygen creates a key pair, Ed25519 by default on current OpenSSH, and the public half goes into ~/.ssh/authorized_keys on the server. The private key stays on your machine, readable by nobody else. A passphrase encrypts it, which protects a copied key file.
A popular follow-up is "Your key is set up, but the server still refuses it." Check the permissions first. sshd ignores authorized_keys if that file, ~/.ssh or the home directory can be written by other users.
Hardening questions usually ask for a short list of changes to sshd_config:
PasswordAuthentication no, once key login works. The default is yes.PermitRootLogin no. The default,prohibit-password, already blocks password logins for root.AllowUserswith the accounts that need access, because by default every user may log in.
Before restarting, run sshd -t, which checks the configuration file and keys without starting anything. Keep your current session open until a fresh login works, so one typing mistake cannot lock you out.
Installing and updating packages
Hardening and patching go together, so the package manager usually follows. Name the package manager you know, and say how you would learn another.
On Ubuntu, sudo apt update refreshes the package index and sudo apt upgrade installs the available upgrades. apt is meant for interactive use, so scripts should call apt-get instead. To find which package installed a file, dpkg -S may be able to tell you.
Putting it together: the website is down
Scenario questions test whether all of this comes out in a sensible order. A common version is "Users report that the website on one of our Linux servers has stopped responding." Talk through your checks, cheapest first:
- Run
systemctl status nginxto see whether the service is running, and read its latest log lines. - Run
journalctl -u nginx --since todayfor the full log. - Check
df -handdf -i, because a full disk can stop the service writing. - Run
ss -tlnpto confirm something is listening on port 80 or 443. - Check
ip addrandip routeif the server itself seems cut off.
Following along on your device? Tap a step’s number to tick it off.
At each step, say what you expect to see and what you would do with the answer. Then ask what changed recently, such as a package update or a new configuration file. If the fix means restarting a production service, say you would agree it with the team first.

Turning the answers into practice
Answers like these stick once you have typed them, so practise on a virtual machine or a spare computer. The free material comes first. Pages such as man chmod and man ss come with the system, and the answers here are based on them.
If you want a certificate as well, two are built around these skills. The LFCS exam is online, proctored and performance-based: you solve tasks at a Linux command line within 2 hours. It costs $445 on its own, is valid for 2 years and is not tied to one distribution.
LPIC-1 needs two exams, 101 and 102, and LPI publishes the objectives for each. The LFCS domains also make a useful checklist. Operations deployment and networking carry 25% each, storage and essential commands 20%, and users and groups 10%.
Some questions will be about you rather than the commands, such as a fault you fixed or a change that went wrong. KBY's guide to the STAR method helps you shape those answers.
Courses and practice tests
Partner links- KodeKloud · PaidKodeKloud hands-on labsBrowser-based Linux labs, for practising these commands at a real prompt before you have a server of your own.Check partner offer
- Pluralsight · PaidPluralsightVideo courses and hands-on labs on Linux administration, once you have worked through the free man pages and LPI objectives.Check partner offer
Partner links are sponsored: KBY may receive a commission at no extra cost to you. Whether a provider pays KBY does not decide what we recommend, and the free official material comes first. Advertising disclosure.
Common questions
- Do I need a Linux certification for a junior role?
- Check the adverts you are applying to, because they decide it. LFCS and LPIC-1 both show structured study, and LFCS is a hands-on exam at a command line. A home lab you can talk about in detail also gives a panel something concrete to ask about.
- Should I practise on Ubuntu or on Red Hat Enterprise Linux?
- Practise on whichever family the adverts you want mention. LFCS is not tied to one distribution.
- What if I forget an option during the interview?
- Say so, and say where you would look: the command's man page or its --help output. Naming the page and the option you are after shows you know how to find out, which is what the job asks of you every day.
Sources
Every figure and rule in this guide comes from these pages, read on 30 November 2026. Pay rates, exams and schemes change: check the source before you rely on one.
- chmod(1) (Linux man-pages (man7.org))
- chown(1) (Linux man-pages (man7.org))
- usermod(8) (Linux man-pages (man7.org))
- Visudo Manual (Sudo project)
- Sudoers Manual (Sudo project)
- ps(1) (Linux man-pages (man7.org))
- kill(1) (Linux man-pages (man7.org))
- signal(7) (Linux man-pages (man7.org))
- systemctl (systemd project (freedesktop.org))
- journalctl (systemd project (freedesktop.org))
- df(1) (Linux man-pages (man7.org))
- du(1) (Linux man-pages (man7.org))
- unlink(2) (Linux man-pages (man7.org))
- ip(8) (Linux man-pages (man7.org))
- ss(8) (Linux man-pages (man7.org))
- ssh-keygen(1) (OpenBSD manual pages (OpenSSH))
- sshd(8) (OpenBSD manual pages (OpenSSH))
- sshd_config(5) (OpenBSD manual pages (OpenSSH))
- Install and manage packages (Ubuntu Server documentation)
- Linux Foundation Certified System Administrator (LFCS) (The Linux Foundation)
- LPIC-1 (Linux Professional Institute)
Spotted something wrong or out of date? Tell us and we will correct it.
About this page
Credited to
Dates
Published
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Keep reading
More in Interviews
All careers guides
InterviewsJunior cyber security analyst interviews reward the candidate who can read the evidence
23 Nov 2026 8 minRead
InterviewsJunior network engineer interview questions, from subnetting on paper to a packet that never arrives
21 Nov 2026 9 min
Recommended reading


Education ITDfE digital accessibility standards come due at your next policy review or purchase
24 Nov 2026 9 min
Found this useful? Follow KBY for more like it.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.