What should you focus on for a Linux interview?
Start with the most asked questions below. Use them to check which commands you can explain and which tasks you can work through. Then check scripting, the topic covered in the most interviews.
Which basic questions should you check first?
Changing file ownership and permissions, finding what fills a disk, and listing running processes each appeared in 4 of 94 interviews. Use these questions to check your command knowledge:
- Can you explain how to change file ownership, group ownership, and permissions?
- Can you show how to list currently running processes?
- Can you explain the difference between a symbolic link and a hard link?
- Can you create a directory from the command line?
- Can you name the commands you commonly use for administration and say what each does?
Also check whether you can explain the difference between kill and kill -9, including what SIGKILL does.
What scripting tasks should you try?
Shell scripting and automation was the most common topic, appearing in 37 of 94 interviews. It covered Bash, cron, script safety, command output, PowerShell, and automation across operating systems. Your checks should go beyond Bash syntax.
Writing code was part of 7 of 94 interviews. Try these tasks from the interviews:
- Check a process's status every two minutes and log the result.
- Parse and validate a command's JSON output. Handle non-zero exit codes and partial or malformed JSON.
- Write a safe cleanup script for files older than thirty days. Handle spaces, logging, and deletion failures.
Can you also describe an administrative task you would automate with PowerShell or Bash and explain what the script would do?
Can you work through a disk or performance problem?
Check whether you can use df to read filesystem disk usage. Then explain how you would find what is taking up space and safely free it.
For performance questions, can you describe how you would check CPU, memory, load averages, and logs? Can you explain how you would investigate an application crash or a web server problem?
Can you explain access, networking, and services?
Use these checks for the security, networking, and service questions:
- Can you explain how you handle users, permissions, privileged access, and SSH keys?
- Can you describe how you would check authentication logs?
- Can you explain how you would investigate DNS, ports, routing, or an SSH connection problem?
- Can you describe how you use
systemdandsystemctlto manage services and investigate failures?
Who gets asked Linux
The 20 most asked Linux questions
Counted by interview, not by mention: a question asked twice in one conversation counts once.
How do you change file ownership, group ownership, and permissions in Linux?
Asked in 4 of 94 interviews · last asked Sep 19 · Tooling · Junior
Show answer
Use `chown` to change the owner, `chgrp` to change the group, and `chmod` to change permissions. You can change both owner and group with `chown user:group file`. Use symbolic permissions, like `u+x`, or numeric permissions, like `640`. Changing the owner normally requires root privileges.
- Permissions apply to owner, group, and others; read, write, and execute have values 4, 2, and 1.
- A file’s owner can change its permissions and assign it to a group they belong to.
- For directories, execute allows traversal; write and execute together normally allow creating or deleting entries.
- Use `-R` carefully: it applies changes recursively, including to files and subdirectories.
Codesudo chown alice report.txt sudo chgrp developers report.txt sudo chown alice:developers report.txt # Owner: read/write; group: read; others: no access. chmod 640 report.txt # Give the owner execute permission. chmod u+x script.shWhat the interviewer checks: The interviewer checks whether you can choose the right commands and explain permission bits and privilege limits.
Other ways it was asked
- “How do you change a file’s permissions in Linux?”
- “How do you change file and directory ownership and permissions in Linux, including assigning them to a user or group?”
- “What command do you use to change permissions?”
How would you find what is filling a Linux disk and safely free up space?
Asked in 4 of 94 interviews · last asked Oct 7 · Scenario · Mid-level
Show answer
I use `df -h` and `df -i` to check disk space and inode use. Then I use `du` and `find` on the affected filesystem to locate large directories and files. I remove only confirmed disposable data, following log retention rules. If deleted files are still open, I arrange a safe restart of the process holding them.
- Check inode use: many small files can fill a filesystem without using all its space.
- Keep searches on the affected filesystem; `du -x` and `find -xdev` avoid crossing filesystem boundaries.
- Use `lsof +L1` to find deleted files that open processes still hold.
- Do not blindly delete logs or application data; check retention rules and verify space afterward.
Codedf -h df -i # Replace / with the affected filesystem's mount point. sudo du -xhd1 / | sort -h sudo find / -xdev -type f -size +500M -printf '%s %p\n' | sort -nr | head -20 sudo lsof +L1What the interviewer checks: The interviewer checks whether you can locate the cause and recover space without losing needed data or disrupting services.
Other ways it was asked
- “A disk is running out of space. How would you quickly identify what is consuming it?”
- “How would you debug a Linux server that is 95% full and free up disk space?”
- “How would you identify and filter for files that are consuming disk space on a Linux server?”
How do you list currently running processes in Linux?
Asked in 4 of 94 interviews · last asked Jul 16 · Tooling · Junior
Show answer
Use `ps aux` or `ps -ef` to list all current processes. Use `top` for a live view, or `htop` if it is installed. These commands also show sleeping processes, not just processes using the CPU right now.
- `ps` shows a snapshot; `top` refreshes automatically.
- The output includes process IDs, owners, and command names.
- Plain `ps` normally shows only your processes attached to the current terminal.
Codeps auxWhat the interviewer checks: The interviewer is checking whether you can list processes and choose between a snapshot and a live view.
Other ways it was asked
- “In Linux, how do you see the currently running processes?”
- “How can you see which processes are running on a Linux machine?”
- “Which Linux commands can you use to list running processes?”
What is the difference between a symbolic link and a hard link?
Asked in 3 of 94 interviews · last asked Aug 30 · Concept · Junior
Show answer
A hard link is another name for the same file, sharing its inode and data. A symbolic link is a separate file that stores a path to its target. Removing one hard link leaves the other names usable. A symbolic link breaks if its target path no longer exists.
- Hard links must stay within the same filesystem and normally cannot point to directories.
- Symbolic links can cross filesystems and point to files or directories.
- Symbolic links have their own inodes and can point to paths that do not exist.
- Use ln for hard links and ln -s for symbolic links.
What the interviewer checks: The interviewer is checking whether you understand file names, inodes, and what happens when a link or target is removed.
Other ways it was asked
- “Explain symbolic links versus hard links.”
- “What is the difference between a hard link and a soft link in Linux?”
How do you create a directory from the Linux command line?
Asked in 3 of 94 interviews · last asked Oct 7 · Tooling · Junior
Show answer
Use `mkdir` followed by the directory name. For example, `mkdir test` creates a directory named `test` in the current directory. Use `mkdir -p parent/child` to create missing parent directories too.
- You need write and execute permissions on the parent directory.
- Quote names that contain spaces, such as `mkdir "my folder"`.
- With `-p`, an existing directory does not cause an error.
- To rename a directory, use `mv old_name new_name`, where `new_name` does not already exist.
Codemkdir testWhat the interviewer checks: The interviewer checks whether you can use mkdir and understand directory paths and basic permissions.
Other ways it was asked
- “How do you create a folder in Linux?”
- “How do you rename a folder in Linux?”
- “What command would you use to create a directory?”
Which Linux commands do you commonly use for system administration, and what does each do?
Asked in 3 of 94 interviews · last asked Sep 19 · Tooling · Junior
Show answer
I use `ps` and `top` to check processes and resource use. `df` shows filesystem space, while `du` shows space used by files and directories. On systemd systems, `systemctl` manages services and `journalctl` reads logs. I use `ip` to check network settings and `ss` to inspect sockets.
- `free` shows memory and swap use; available memory matters more than free memory alone.
- `chmod` changes file permissions; `chown` changes file owners and groups.
- `kill` sends signals to processes; try normal termination before forcing a process to stop.
- `sudo` runs commands as another user, usually root, when permitted.
What the interviewer checks: The interviewer checks whether you can choose the right commands for routine administration and basic troubleshooting.
Other ways it was asked
- “Which Linux commands do you use most often, and what tasks do you use them for?”
- “What are some commonly used Linux commands, and what does each do?”
- “Which Linux commands are commonly used for system administration?”
How do you use df to check filesystem disk usage in Linux?
Asked in 3 of 94 interviews · last asked May 13 · Tooling · Junior
Show answer
Use `df -h` to check disk space on mounted filesystems in easy-to-read units, such as GiB. It shows total space, used space, available space, usage percentage, and mount point. Use `df -h /path` to check the filesystem containing a specific file or directory.
- `-h` displays sizes in human-readable units using powers of 1024.
- `df` reports filesystem usage; `du` reports file and directory usage.
- `df -i` checks inode usage, which can reach its limit even when disk space remains.
Codedf -h # Check the filesystem containing /var: df -h /varWhat the interviewer checks: The interviewer is checking whether you can read filesystem capacity and distinguish it from directory size.
Other ways it was asked
- “How do you check how much disk space is being used in Linux?”
- “What command would you use in Linux to check disk space?”
- “What does the df command do in Linux?”
What is the difference between kill and kill -9, and what does SIGKILL do?
Asked in 3 of 94 interviews · last asked Aug 30 · Concept · Junior
Show answer
By default, `kill PID` sends SIGTERM, which asks a process to stop and lets it handle the signal for cleanup. `kill -9 PID` sends SIGKILL, which forces termination without letting the process run cleanup code. SIGKILL cannot be caught, blocked, or ignored.
- Try SIGTERM first; use SIGKILL if the process does not stop.
- SIGTERM can be caught, blocked, or ignored.
- SIGKILL may leave unfinished writes or temporary files behind.
- A process in uninterruptible sleep may not exit until that state ends, even after SIGKILL.
What the interviewer checks: The interviewer checks whether you understand graceful termination, forced termination, and when to use each signal.
Other ways it was asked
- “What is the difference between `kill -9` and `kill` in Linux?”
- “What is the difference between `kill` and `kill -9`?”
- “What happens when you run `kill -9 1234`?”
What are Linux services, and how do you manage them using systemd and systemctl?
Asked in 3 of 94 interviews · last asked Sep 19 · Tooling · Junior
Show answer
Linux services are background programs that handle tasks such as logging or serving web requests. On systems that use systemd, it manages services and their dependencies through unit files. Use systemctl to start, stop, restart, or check services, and to enable or disable automatic startup.
- systemd is the service manager; systemctl is the command used to control it.
- Starting runs a service now; enabling configures automatic startup, usually at boot.
- Disabling does not stop a running service; use --now to do both.
- Use systemctl status to check state and journalctl -u to read service logs.
Code# Replace example.service with an installed service name. sudo systemctl start example.service sudo systemctl stop example.service sudo systemctl restart example.service systemctl status example.service sudo systemctl enable --now example.service sudo systemctl disable --now example.service sudo journalctl -u example.serviceWhat the interviewer checks: The interviewer checks whether you can manage services and distinguish their current state from their startup settings.
Other ways it was asked
- “How do you manage services in Ubuntu, including starting and stopping them?”
- “Explain systemd and systemctl.”
- “What are Linux services, and how do you manage them?”
Describe a PowerShell or Bash script you would use to automate an administrative task.
Asked in 3 of 94 interviews · last asked Sep 3 · Tooling · Mid-level
Show answer
I would use Bash to back up system configuration files in /etc. The script creates a dated archive, restricts access, and stops if a command fails. I would schedule it with cron, monitor failures, and test that files can be restored.
- Run with permission to read the source files and write the backup.
- Restrict backup access because configuration files may contain secrets.
- Schedule regular runs and alert on failures.
- Keep older backups under a retention policy and test restores.
Code#!/bin/bash set -euo pipefail umask 077 backup_dir=/var/backups/etc mkdir -p "$backup_dir" archive="$backup_dir/etc-$(date +%Y%m%d-%H%M%S).tar.gz" tar -czf "$archive" -C / etc printf 'Backup saved: %s\n' "$archive"What the interviewer checks: The interviewer is checking whether you can automate a useful task while handling permissions, failures, and scheduling.
Other ways it was asked
- “Do you have experience using PowerShell or Bash? Can you describe a script or command-line task you have used for troubleshooting or basic automation?”
- “How would you use PowerShell or Bash to automate a task?”
- “Can you share an example of a productivity automation or PowerShell script you built?”
How do cron jobs work, when would you use them, and what do crontab fields mean?
Asked in 3 of 94 interviews · last asked Sep 28 · Concept · Mid-level
Show answer
Cron is a service that runs commands automatically on a repeating schedule. I use it for backups, cleanup, and regular reports. A user crontab has five time fields: minute, hour, day of month, month, and day of week, followed by the command. An asterisk means every allowed value.
- Ranges: minute 0–59, hour 0–23, day of month 1–31, and month 1–12.
- On Linux, weekdays usually range from 0–7; both 0 and 7 mean Sunday.
- System crontabs, such as /etc/crontab, add a username field before the command.
- Cron has a limited environment, so use absolute paths and set required environment variables.
Code# Edit your user crontab with: crontab -e # Run an existing backup script every day at 02:00. 0 2 * * * /usr/local/bin/backup.shWhat the interviewer checks: The interviewer is checking whether you can choose suitable recurring tasks and read or write a cron schedule.
Other ways it was asked
- “When would you use cron jobs to schedule tasks?”
- “What is cron, and what are the values in the crontab?”
- “What are cron jobs, and when would you use them?”
How would you troubleshoot a slow Linux server, and which commands would you use?
Asked in 3 of 94 interviews · last asked Aug 14 · Scenario · Mid-level
Show answer
I first confirm what is slow and check recent changes. I use `uptime`, `top`, `free -h`, and `vmstat 1` to check load, CPU, memory, and swapping. I check storage with `df -h` and `iostat -xz 1`, connections with `ss -s`, and logs with `journalctl`. I fix the cause, then measure again.
- High load can mean CPU demand or tasks waiting for I/O; it does not prove CPU overload.
- Check available memory and ongoing swap activity; low free memory alone is normal because Linux caches data.
- Check disk space, inodes with `df -i`, and I/O latency; `iostat` comes from the sysstat package.
- Check application logs and slow dependencies, such as databases or network services, before changing settings or restarting.
What the interviewer checks: The interviewer checks whether you use evidence to find the bottleneck and verify that your fix works.
Other ways it was asked
- “Your Linux computer is running more slowly than usual. Walk me through how you would troubleshoot and potentially fix it.”
- “What Linux commands would you use to diagnose performance problems on a server?”
- “How would you debug a slow Linux server hosting an application?”
How do you check used and available RAM from the Linux command line?
Asked in 3 of 94 interviews · last asked Oct 7 · Tooling · Junior
Show answer
Use `free -h` to show used, free, and available RAM in readable units. The `available` column estimates how much RAM applications can use without swapping. The `free` column shows unused RAM; it excludes memory used for caches that Linux may reclaim.
- Read the Mem row for RAM; the Swap row is separate.
- Use available, not just free, to judge remaining memory capacity.
- `/proc/meminfo` provides detailed memory values in KiB, labeled kB.
Codefree -h # Print only unused RAM, in KiB: awk '/^MemFree:/ {print $2}' /proc/meminfo # Print only available RAM, in KiB: awk '/^MemAvailable:/ {print $2}' /proc/meminfoWhat the interviewer checks: The interviewer checks whether you can inspect RAM usage and explain the difference between free and available memory.
Other ways it was asked
- “How would you display the amount of memory currently free on your system?”
- “How would you display only the value of the memory currently free on your system?”
- “How can you check current RAM usage on a Linux machine?”
How would you print log lines containing errors or warnings?
Asked in 2 of 94 interviews · last asked Oct 7 · Tooling · Junior
Show answer
I would use `grep -Ei 'error|warn' test.log` to print lines containing errors or warnings. `-E` enables `|` to mean “or,” and `-i` ignores letter case.
- This prints whole matching lines, not just the matched words.
- The pattern matches ERROR, WARN, WARNING, and any text containing those strings.
- For errors only, use `grep -i 'error' test.log`.
Codegrep -Ei 'error|warn' test.logWhat the interviewer checks: The interviewer is checking whether you can filter logs using grep, multiple patterns, and case-insensitive matching.
Other ways it was asked
- “How would you print only the warning and error messages from logs?”
- “How would you print the lines containing "error" in test.log?”
How do you create a file from the Linux command line?
Asked in 2 of 94 interviews · last asked Oct 7 · Tooling · Junior
Show answer
Use `touch test.log` to create an empty file named `test.log`. If the file already exists, `touch` updates its timestamps without changing its contents. To create a file with text, use `printf` with output redirection (`>`).
- `touch` creates a file only if it does not already exist.
- `>` creates a file or overwrites its existing contents.
- `>>` appends text, creating the file if needed.
Codetouch test.logWhat the interviewer checks: The interviewer checks whether you can create a file and understand which commands may overwrite existing contents.
Other ways it was asked
- “Can you create a file named test.log?”
How do you list files and directories in Linux, including hidden files?
Asked in 2 of 94 interviews · last asked Sep 19 · Tooling · Junior
Show answer
Use `ls` to list files and directories. Use `ls -a` to include hidden entries, whose names start with a dot. Use `ls -la` to also show details such as permissions, owner, and size.
- `ls` lists the current directory by default; provide a path to list another directory.
- `-a` includes hidden entries plus `.` and `..`.
- `-A` includes hidden entries but leaves out `.` and `..`.
Codels -la /etcWhat the interviewer checks: The interviewer is checking whether you know the basic listing command and how to show hidden entries.
Other ways it was asked
- “How do you list files in Linux, including hidden files?”
- “What command would you use to list files and directories?”
What do su and sudo do in Linux, and when would you use each?
Asked in 2 of 94 interviews · last asked Oct 7 · Concept · Junior
Show answer
su starts a shell as another user, usually root. Use it when you need a session as that user. sudo runs an allowed command as another user, usually root. Use it for admin tasks with permissions controlled by policy, without sharing the root password.
- su normally asks for the target user's password; root can usually switch without one.
- sudo normally asks for your own password, but policy can allow commands without a password.
- su - starts a login shell with the target user's environment.
- sudo controls access through policy, usually logs commands, and can also allow shells with sudo -i.
What the interviewer checks: The interviewer checks whether you understand user switching, controlled admin access, and whose password each command normally needs.
Other ways it was asked
- “What does the sudo command do?”
- “What are su and sudo in Linux, and how are they used?”
What do Linux file permissions 755 and 644 mean?
Asked in 2 of 94 interviews · last asked Oct 7 · Concept · Junior
Show answer
755 gives the owner read, write, and execute permissions; the group and others get read and execute. 644 gives the owner read and write permissions; the group and others get read only. The three digits describe permissions for the owner, group, and others, in that order.
- Each digit adds permission values: read = 4, write = 2, execute = 1.
- 755 is common for directories and executable files; 644 is common for regular, non-executable files.
- For directories, read lists entry names; execute allows traversal and access to entries.
What the interviewer checks: The interviewer is checking whether you can read numeric permissions and explain who can access a file.
Other ways it was asked
- “What do file permissions 755 and 644 mean?”
- “What does chmod 755 mean?”
What steps would you take to harden a Linux server?
Asked in 2 of 94 interviews · last asked Oct 8 · Scenario · Mid-level
Show answer
I would update the system, remove unused software, and disable services the server does not need. I would restrict firewall access, use SSH keys, disable direct root login, and limit sudo rights. I would keep SELinux or AppArmor enabled, protect sensitive files, and monitor logs. Finally, I would test backups and review security settings regularly.
- Allow only required ports, and restrict administrative access to trusted networks.
- Test SSH key access before disabling password login to avoid locking yourself out.
- Give users and services only the permissions they need.
- Apply security updates regularly and test that backups can be restored.
What the interviewer checks: The interviewer is checking whether you can reduce attack paths without breaking services or losing access.
Other ways it was asked
- “How do you secure a Linux server?”
- “What Linux hardening measures would you recommend?”
What is the difference between the `df` and `du` commands, and what does each show?
Asked in 2 of 94 interviews · last asked Aug 14 · Concept · Junior
Show answer
`df` shows total, used, and available space on mounted file systems. `du` shows disk space used by files and directories by scanning their contents. The `-h` option makes sizes easier to read, using units like K, M, and G.
- `df` reports file system space; `du` measures usage under a file or directory path.
- `du -sh /path` shows one total for that path.
- Results can differ: deleted files still held open use space in `df` but are not found by `du`.
Codedf -h / du -sh /var/logWhat the interviewer checks: The interviewer checks whether you can distinguish file system capacity from file and directory usage.
Other ways it was asked
- “What’s the difference between `df -h` and `du -h`?”
Linux basics and commands interview questions
The basics questions cover operating system comparisons, everyday commands, directories, links, file searches, and text processing. 27 questions.
How would you find all files modified in the last seven days in a particular directory?
Asked once · last asked Jun 20 · Tooling · Junior
How would you search for a keyword across multiple log files in a folder when you do not know their filenames?
Asked once · last asked Jul 16 · Tooling · Mid-level
How would you remove a directory?
Asked once · last asked Sep 19 · Tooling · Junior
Other ways it was asked
- “How would you remove a directory that contains files and subdirectories?”
How do you move from one directory to another in the Linux command line?
Asked once · last asked Feb 3 · Tooling · Junior
How do you find a machine’s uptime in Linux using the command line?
Asked once · last asked Feb 3 · Tooling · Junior
What is Linux?
Asked once · last asked May 4 · Concept · Junior
What cURL command would you use to download a file?
Asked once · last asked May 13 · Tooling · Junior
What does the `lsof -l` command do?
Asked once · last asked Jun 20 · Tooling · Junior
Other ways it was asked
- “What does the `lsof -i` command do?”
What do the Linux commands cp, ls, and rm do?
Asked once · last asked Jul 16 · Tooling · Junior
Other ways it was asked
- “In Linux, we have three main commands: cp, ls, and rm. Could you please tell me what they do?”
What are symbolic links in Linux?
Asked once · last asked Dec 4 · Concept · Junior
What does the `tail -f` command do?
Asked once · last asked Aug 14 · Concept · Junior
What is the difference between Linux and Unix?
Asked once · last asked Dec 11 · Concept · Junior
Show 9 more
What roles can Windows and Linux systems serve in infrastructure, and which tasks is each suited to supporting?
Asked once · last asked Sep 3 · Concept · Mid-level
Other ways it was asked
- “What roles did Windows and Linux systems serve in your infrastructure, and which tasks did each support?”
How do you use Unix shell in your day-to-day work?
Asked once · last asked Sep 4 · Tooling
What is the basic difference between Linux and Windows OS?
Asked once · last asked Sep 19 · Concept · Junior
Can you name some Linux distributions?
Asked once · last asked Sep 19 · Concept · Junior
What command would you use to see your current directory?
Asked once · last asked Sep 19 · Tooling · Junior
How would you remove a file?
Asked once · last asked Sep 19 · Tooling · Junior
How would you replace the word "error" with "critical" in test.log?
Asked once · last asked Oct 7 · Tooling · Junior
How would you print the second and third columns from test.log?
Asked once · last asked Oct 7 · Tooling · Junior
How would you list files in the current directory whose sizes are less than 4 KB?
Asked once · last asked Oct 7 · Tooling · Junior
Linux permissions and security interview questions
Security questions cover users, permissions, authentication logs, privileged access, SSH keys, hardening, compliance, and identity integrations. 23 questions.
What would you do if a Linux server ran a script every 30 minutes that sent data to an unknown IP address hosted on DigitalOcean?
Asked once · last asked Sep 21 · Scenario · Junior
Other ways it was asked
- “What might it indicate if a Linux server runs a script every 30 minutes that sends data to an unknown IP address?”
When assessing Linux systems for security compliance, how do you validate controls directly versus coordinate with system administrators?
Asked once · last asked Apr 15 · Scenario · Senior
How does CyberArk server onboarding differ for non-domain-joined infrastructure, such as Linux servers?
Asked once · last asked May 8 · Tooling · Mid-level
When integrating CyberArk with Linux, should a live SSH key pair remain on the target server?
Asked once · last asked May 8 · Scenario · Senior
Can you apply consistent policies across multiple Linux target instances in CyberArk?
Asked once · last asked May 8 · Tooling · Mid-level
How would you find all disabled Active Directory users who have not logged in within the past 90 days?
Asked once · last asked Aug 18 · Write code · Mid-level
What commands or PowerShell pipelines would you use to identify users who logged in over the weekend and performed Active Directory activities?
Asked once · last asked Aug 18 · Scenario · Senior
If you forget the Linux password after installing the operating system, how would you restore access?
Asked once · last asked Aug 18 · Scenario · Mid-level
How do you secure SSH access on a Linux server? Give three different scenarios.
Asked once · last asked Sep 24 · Scenario · Mid-level
How would you secure Kerberos in a hybrid Linux-Windows environment using Active Directory?
Asked once · last asked Oct 8 · Scenario · Senior
In Linux, which pseudorandom algorithm does the shred command use internally for its overwrite passes?
Asked once · last asked Oct 22 · Concept · Senior
A Python web service pings a user-supplied IP address by executing a shell command. Why is this vulnerable, and what kinds of inputs could exploit it to run unintended commands on Linux?
Asked once · last asked Jan 23 · Scenario · Mid-level
Show 7 more
How are SSH keys used for credential management on Linux servers?
Asked once · last asked May 8 · Concept · Mid-level
Where are authentication logs typically stored on Linux?
Asked once · last asked May 13 · Concept · Junior
What types of login information are recorded in Linux authentication logs?
Asked once · last asked May 13 · Concept · Junior
Which Linux files record login sessions?
Asked once · last asked May 13 · Concept · Junior
Which commands can you use to see which users are currently logged in to a system?
Asked once · last asked Jul 30 · Tooling · Junior
How do you change a password in Linux?
Asked once · last asked Dec 4 · Tooling · Junior
How do Linux read, write, and execute permissions work?
Asked once · last asked Sep 19 · Concept · Junior
Other ways it was asked
- “What are Linux file permissions?”
- “What are the three types of file permissions?”
Linux disk and filesystem interview questions
Disk and filesystem questions cover usage, partitions, formatting, mounts, LVM expansion, storage cleanup, and file replication. 13 questions.
How do you format a disk in Linux?
Asked in 2 of 94 interviews · last asked Dec 4 · Tooling · Junior
Other ways it was asked
- “Which Linux commands are used to format a disk, and how do you format one?”
What command would you use to view all drives and their partitions?
Asked once · last asked Mar 26 · Tooling · Junior
What are the trade-offs of scheduled file replication with rsync compared with other replication strategies?
Asked once · last asked Apr 22 · Design · Senior
Which file would you use to save mount configuration so it persists after a reboot?
Asked once · last asked May 18 · Tooling · Junior
How would you add a disk to a Linux server, create and format a partition, mount it automatically, and make it available to the operating system?
Asked once · last asked Jul 28 · Tooling · Mid-level
How would you extend the root (/) filesystem on a Linux virtual machine with a 500 GB disk?
Asked once · last asked Aug 13 · Tooling · Mid-level
Other ways it was asked
- “How would you extend the root (/) disk of a Linux virtual machine by 500 GB?”
How would you extend an LVM logical volume after increasing a Linux virtual machine's disk size?
Asked once · last asked Aug 13 · Tooling · Mid-level
How would you check disk usage in a directory and sort the results to see the largest items first?
Asked once · last asked Aug 14 · Tooling · Junior
Your application says "no space left on device." What could cause this?
Asked once · last asked Aug 30 · Scenario · Mid-level
Which command can you use to display the mount points currently configured on a server?
Asked once · last asked May 18 · Tooling · Junior
Linux processes and services interview questions
You can check questions about processes, threads, signals, systemd, service management, startup tasks, and service failures. 14 questions.
What is the difference between a process and a service in Linux?
Asked in 2 of 94 interviews · last asked Oct 7 · Concept · Junior
Other ways it was asked
- “What are Linux processes and services, and how do they differ?”
If you want your computer to perform a task every time it boots, how can you automate that and other tasks you do regularly?
Asked once · last asked Feb 3 · Tooling · Mid-level
What is the difference between `journalctl` and `systemctl`?
Asked once · last asked Jul 30 · Concept · Junior
How would you investigate why your service failed after reboot?
Asked once · last asked Aug 30 · Scenario · Mid-level
On Linux, a service is failing to start after a config change. What’s your step-by-step method to identify whether it’s a unit file, dependency, permission, or syntax problem using system tooling?
Asked once · last asked Sep 2 · Scenario · Mid-level
How do Linux processes and threads differ, and how do those differences affect performance?
Asked once · last asked Sep 16 · Concept · Mid-level
Other ways it was asked
- “In Linux system architecture, how do you distinguish between process management and threads? What are the key differences, and why do those distinctions matter in Linux systems engineering?”
- “How do the differences between processes and threads affect performance optimization strategies on Linux?”
How do you stop a process in Linux?
Asked once · last asked Feb 3 · Tooling · Junior
How do you check whether a Linux service, such as Nginx, is running?
Asked once · last asked Jul 30 · Tooling · Junior
Other ways it was asked
- “How can you check whether a service is running on a server?”
- “How can you check whether the Nginx service is active?”
How would you restart the Nginx service if it were unavailable?
Asked once · last asked Jul 30 · Tooling · Junior
What is the use of the Postfix service in Linux?
Asked once · last asked Aug 18 · Concept · Junior
What is the path of the Postfix configuration files?
Asked once · last asked Aug 18 · Concept · Junior
Linux shell scripting and automation interview questions
Automation questions cover Bash, cron, script safety, command output, PowerShell, API integrations, and administrative tasks across operating systems. 42 questions.
How would you automate privileged-account onboarding using PowerShell, Python, and CyberArk APIs?
Asked in 2 of 94 interviews · last asked Jul 31 · Tooling · Mid-level
Other ways it was asked
- “How would you use PowerShell and CyberArk APIs to automate privileged-account onboarding?”
- “What sources can provide input data for PowerShell scripts that automate CyberArk onboarding?”
- “How would you use PowerShell, Python, and APIs to automate privileged-account onboarding and reduce a three-day process to four hours?”
What are script parameters, and how do you pass and use arguments in a shell script?
Asked in 2 of 94 interviews · last asked Oct 22 · Tooling · Junior
Other ways it was asked
- “What are parameters in a script?”
- “What is the difference between parameters and variables in a script?”
- “How can you pass arguments to a shell script and use them within the script?”
Write a script that checks a process's status every two minutes and logs the result.
Asked once · last asked Aug 14 · Write code · Junior
Other ways it was asked
- “How would you write a script that checks a process’s status every two minutes and logs the result?”
- “Write a script that checks a process’s status and saves the result.”
How do you copy nested folder structures from one Cloud Storage bucket to another using the shell?
Asked once · last asked Sep 10 · Tooling · Mid-level
Other ways it was asked
- “How would you copy nested folders and files from one Cloud Storage bucket to another?”
How would you change a scheduled job running at 11 p.m. to run at 10 a.m.?
Asked once · last asked Apr 24 · Tooling · Junior
How can you check the exit status of the most recently run command in a Linux shell?
Asked once · last asked May 13 · Tooling · Junior
How can Windows scripts be used to deploy Informatica objects between environments?
Asked once · last asked Nov 10 · Tooling · Mid-level
When automating a task with PowerShell, Python, and REST APIs, how would you decide whether Python and REST APIs alone are sufficient?
Asked once · last asked May 27 · Scenario · Mid-level
How would you automate exports for tracking cloud access control policy updates, and what would the script do?
Asked once · last asked Jul 9 · Tooling · Senior
How would you use an automated script to verify that a backend task running in a Docker container completed successfully?
Asked once · last asked Jul 16 · Scenario · Mid-level
How would you test a shell's here-document delimiter detection, including edge cases and comparisons with Bash?
Asked once · last asked Jul 16 · Scenario · Mid-level
Other ways it was asked
- “What is a difficult edge case in here-document delimiter detection, and how would you catch it?”
- “How would you verify that a shell correctly detects a here-document delimiter? What tests or comparisons with Bash would you use?”
How would you use the Microsoft Graph API or REST APIs with PowerShell to automate Intune tasks?
Asked once · last asked Aug 3 · Tooling · Senior
Show 28 more
Which PowerShell commands would you use to restart a service on 100 servers?
Asked once · last asked Aug 11 · Tooling · Mid-level
What does redirecting output to `/dev/null` do in a Bash command?
Asked once · last asked Aug 14 · Concept · Junior
What is the difference between using double brackets [[ ]] and single brackets [ ] in a Bash script, and what happens if I use a single bracket instead of a double bracket?
Asked once · last asked Aug 14 · Concept · Junior
How would you write a PowerShell script to check whether a specific Windows update (KB) is installed across a list of servers?
Asked once · last asked Aug 18 · Write code · Mid-level
How can PowerShell or similar scripts be used to deploy vulnerability fixes or configuration changes rather than only report issues?
Asked once · last asked Sep 7 · Tooling · Mid-level
In Python or Bash, how would you robustly parse and validate a CLI command's JSON output, including non-zero exit codes and partial or malformed JSON in an automation script?
Asked once · last asked Sep 28 · Write code · Mid-level
In Bash, what techniques do you use to make scripts fail fast and still handle expected errors cleanly?
Asked once · last asked Sep 28 · Tooling · Mid-level
When automating file operations, how do you make a script safe to rerun and prevent partial state if it's interrupted midway?
Asked once · last asked Sep 28 · Scenario · Mid-level
How would you automate a PKI or certificate-management task with PowerShell, and what would the script do?
Asked once · last asked Oct 1 · Tooling · Mid-level
Other ways it was asked
- “What PKI or certificate-related task have you automated with PowerShell, and what did the script do?”
What is the difference between scripting and programming languages?
Asked once · last asked Oct 5 · Concept · Junior
Write a safe cleanup script for files older than thirty days, handling spaces, logging, and deletion failures.
Asked once · last asked Oct 13 · Write code · Mid-level
Other ways it was asked
- “In bash, how would you write a script that finds and deletes files older than thirty days under /var/log/myapp, logs what would be deleted, and safely skips files with spaces?”
- “How would you implement the 30-day file cleanup safely with find -print0 and xargs -0 or find -delete, and make the script exit nonzero if any deletion fails?”
If you want to read a file in a loop until end of file, how would you code that in CLLE?
Asked once · last asked Oct 15 · Write code · Mid-level
What Linux commands or scripts would you use for typical DevOps tasks, and how would you use them?
Asked once · last asked Oct 23 · Tooling · Mid-level
Other ways it was asked
- “What's your level of competence with Linux, and can you give examples of commands or scripts you've written or typical tasks you handle on Linux in a DevOps context?”
What tasks do you use PowerShell for in IT administration?
Asked once · last asked Nov 13 · Tooling · Mid-level
Other ways it was asked
- “What kinds of PowerShell scripts do you use for IT administration?”
What is a script in programming?
Asked once · last asked Jan 29 · Concept · Junior
What is an exit code, and what does it indicate?
Asked once · last asked May 19 · Concept · Junior
How can runbooks be used to launch scripts, for example through batch files?
Asked once · last asked Jun 17 · Tooling · Junior
How do you comment out a line in PowerShell?
Asked once · last asked Jun 26 · Tooling · Junior
How do you pass the output of one command to another command in PowerShell?
Asked once · last asked Jun 26 · Tooling · Junior
How do you run a command remotely from PowerShell?
Asked once · last asked Jun 26 · Tooling · Mid-level
Write code that writes standard output to a file.
Asked once · last asked Jul 29 · Write code · Junior
What does an `if` condition do in a Bash script?
Asked once · last asked Aug 14 · Concept · Junior
What do double brackets (`[[ ]]`) mean in a Bash script?
Asked once · last asked Aug 14 · Concept · Junior
Which languages would you use for custom monitoring and logging scripts, including Zabbix scripts?
Asked once · last asked Sep 3 · Tooling · Mid-level
Other ways it was asked
- “Which programming languages can you use to write custom scripts for Zabbix?”
- “Which programming languages are suitable for writing custom scripts for observability and logging?”
Which version of Bash added arrays?
Asked once · last asked Sep 28 · Concept · Junior
Can you name five scripting languages?
Asked once · last asked Oct 5 · Concept · Junior
How would you schedule an AWS automation script to run regularly?
Asked once · last asked Oct 23 · Scenario · Mid-level
How would you write a script to trigger a pipeline?
Asked once · last asked Oct 23 · Write code · Mid-level
Linux networking interview questions
Networking questions focus on interfaces, routing, DNS, ports, SSH connections, firewall rules, packet captures, and troubleshooting. 15 questions.
How would you troubleshoot intermittent network connectivity on a Linux server, and which tools would you use?
Asked in 2 of 94 interviews · last asked Oct 16 · Scenario · Mid-level
Other ways it was asked
- “How would you diagnose a network problem on a web server, and which tools would you use?”
- “If a Linux server has intermittent connectivity issues, what command-line tools might you use to investigate, and what would each show you?”
What command would you use in Linux to list the ports listening on a server?
Asked in 2 of 94 interviews · last asked Jul 30 · Tooling · Junior
Other ways it was asked
- “How can you check which ports a server is listening on?”
How would you identify the Linux process using a specific port and stop it?
Asked in 2 of 94 interviews · last asked Aug 14 · Tooling · Junior
Other ways it was asked
- “What Linux command can you use to find which process is occupying a port?”
- “How would you identify the process using port 8080 on a Linux server, find its PID, and stop it?”
How do you inspect and configure Linux network interfaces using command-line tools?
Asked in 2 of 94 interviews · last asked May 12 · Tooling · Junior
Other ways it was asked
- “How would you use ifconfig to inspect or configure a device’s network interface?”
- “How can you check network settings in Linux, and what command would you use?”
Which Linux utility would you use to inspect firewall rules in detail, aside from UFW?
Asked once · last asked Apr 15 · Tooling · Mid-level
How would you change the SSH port from the default port 22 to port 322 on a Linux server?
Asked once · last asked Apr 16 · Tooling · Mid-level
How can you display a server's routing table using the ip command?
Asked once · last asked May 18 · Tooling · Junior
How do you identify a Linux server's outgoing network interface and primary IP address using its routing table?
Asked once · last asked May 18 · Scenario · Junior
Other ways it was asked
- “From a server's routing table, how can you identify its outgoing network interface and IP address?”
- “How do you identify a server's primary IP address for SSH or ping, and is it shown in the routing table?”
How do you use tcpdump to capture traffic from a specific IP address going to a specific port? What command and filters would you use?
Asked once · last asked Jun 26 · Tooling · Mid-level
A user cannot SSH into the server. How do you fix it?
Asked once · last asked Dec 11 · Scenario · Mid-level
What is the difference between the DROP and REJECT targets in iptables in terms of how they respond to a packet?
Asked once · last asked Sep 4 · Concept · Mid-level
Walk me through the Linux commands you'd use to distinguish DNS problems from basic connectivity problems.
Asked once · last asked Oct 8 · Tooling · Mid-level
Show 3 more
What does the Linux ss utility do?
Asked once · last asked Apr 15 · Concept · Junior
Explain how DNS works in Linux.
Asked once · last asked Dec 11 · Concept · Mid-level
What is the port number for SSH?
Asked once · last asked Sep 19 · Concept · Junior
Linux performance and troubleshooting interview questions
For performance and troubleshooting, the questions cover CPU, memory, load averages, logs, production monitoring, application crashes, and web server problems. 16 questions.
How would you troubleshoot HTTP 500 errors on a Linux static web server despite apparently sufficient resources?
Asked once · last asked Feb 22 · Scenario · Mid-level
Other ways it was asked
- “On a Linux server with four CPU cores and 8 GB of RAM hosting a static website, users are getting HTTP 500 errors despite low CPU usage and plenty of free memory. What could be causing the problem, and how would you fix it?”
- “If a network drive is mounted and has enough free space and inodes, what other issues could cause HTTP 500 errors on a Linux server hosting a static site?”
What command would you use to view real-time CPU usage and processes?
Asked once · last asked Mar 26 · Tooling · Junior
What are your top three Linux troubleshooting commands?
Asked once · last asked Mar 26 · Tooling · Mid-level
If you have an application running as a JAR file on Linux that crashes every one to three months, what might be causing it?
Asked once · last asked Apr 9 · Scenario · Mid-level
A customer reports that website pages are loading very slowly, and you have SSH access to the server. How would you begin diagnosing the issue?
Asked once · last asked Apr 15 · Scenario · Mid-level
How would you independently supervise production workloads across Linux and Windows Server, including monitoring server performance and services?
Asked once · last asked Jun 2 · Scenario · Senior
If logs indicate that Nginx is unavailable or not responding, what would you check next?
Asked once · last asked Jul 30 · Scenario · Mid-level
Other ways it was asked
- “When troubleshooting an unavailable or unresponsive Nginx service, what would you check, and in what order?”
If load average is high but utilization is low, what could be the reason?
Asked once · last asked Aug 21 · Scenario · Senior
How would you identify which process is causing 100% CPU utilization on a Linux server?
Asked once · last asked Aug 21 · Scenario · Mid-level
What does a load average of 10.5, 8.2, and 5.1 mean?
Asked once · last asked Aug 30 · Concept · Mid-level
When configuring and managing system resources on NixOS, how do you ensure efficient memory management and optimize performance for low-level development tasks?
Asked once · last asked Sep 16 · Tooling · Senior
How would you diagnose a JavaScript service running on Linux or in a container when investigating processes, ports, or memory usage?
Asked once · last asked Oct 22 · Scenario · Mid-level
Show 2 more
Where can HTTP redirects be configured on a web server?
Asked once · last asked Jul 30 · Concept · Junior
What is the difference between `ps`, `top`, and `free`?
Asked once · last asked Aug 30 · Concept · Junior
Linux software packaging and deployment interview questions
Packaging and deployment questions cover package managers, repositories, reproducible builds, distribution engineering, containers, CI/CD, and application deployment across operating systems. 11 questions.
When deploying an MSI and 10 drivers, would you package the drivers in the MSI or handle them with PowerShell?
Asked once · last asked Mar 26 · Scenario · Mid-level
How can you deploy a normal HTML website, such as test.test.com, using Apache on a single-tenant server?
Asked once · last asked Apr 16 · Tooling · Mid-level
How would you deploy an artifact to a Linux server using Jenkins?
Asked once · last asked Apr 16 · Tooling · Mid-level
When provisioning a Kubernetes node, how do you install Linux packages, and when would you use the standard package manager versus another repository?
Asked once · last asked May 12 · Tooling · Mid-level
How would you package and deploy application updates across Windows and Linux?
Asked once · last asked Aug 20 · Tooling · Mid-level
Other ways it was asked
- “What types of application updates have you deployed, and how do you package and deploy them?”
How do RPM and Debian packaging differ, and how does containerization compare as a way to distribute software?
Asked once · last asked Oct 7 · Concept · Mid-level
When building software across multiple distributions or architectures, what problems can arise, and how would you make the resulting packages consistent?
Asked once · last asked Oct 7 · Scenario · Senior
Other ways it was asked
- “What problems did you run into when building software across multiple distributions or architectures?”
Where would you obtain PostgreSQL binaries from, and how would you evaluate whether that source is suitable?
Asked once · last asked Oct 12 · Scenario · Senior
How would you create a workable process for your team to build PostgreSQL 16 binaries on a base operating system?
Asked once · last asked Oct 12 · Scenario · Senior
How would you assess and approach a complex software packaging task?
Asked once · last asked Oct 7 · Scenario · Senior
Other ways it was asked
- “How would you assess and manage the complexity of a software packaging task?”
- “How would you approach complex software packaging with Debian packages, RPMs, containers, or Nix?”
What would you prioritize during your first 90 days as a Linux distribution and build engineer?
Asked once · last asked Oct 7 · Scenario · Mid-level
Linux boot, kernel and hardware interview questions
Boot and hardware questions cover boot sequences, PXE provisioning, kernel failures, hardware diagnostics, virtualization, Yocto, device trees, and board porting. 11 questions.
How would you list all devices connected to the PCIe bus?
Asked once · last asked Mar 26 · Tooling · Mid-level
If Linux reports a DIMM failure, where would you look to identify which DIMM and chip failed, and whether the error was corrected?
Asked once · last asked Mar 26 · Scenario · Senior
How does the Linux server boot process work?
Asked once · last asked Mar 26 · Concept · Mid-level
How would you troubleshoot a Linux kernel panic or a server memory issue?
Asked once · last asked Mar 26 · Scenario · Mid-level
If a server does not receive its boot file during PXE boot, how would you check the DHCP options on Linux and troubleshoot the issue?
Asked once · last asked Mar 26 · Scenario · Mid-level
How does server provisioning typically work in a data center, and what role do you play if something goes wrong?
Asked once · last asked Mar 26 · Scenario · Mid-level
What is a Yocto layer, and why would you use multiple layers?
Asked once · last asked Apr 27 · Concept · Mid-level
How would you begin porting Linux to a new marine-drone board you have never seen before?
Asked once · last asked Apr 27 · Scenario · Senior
What is a device tree, and why is it essential when porting Linux to a new board?
Asked once · last asked Apr 27 · Concept · Mid-level
Which Linux commands would you use to check the server during a restart and perform the related checks?
Asked once · last asked Nov 10 · Tooling · Mid-level
How do you use Kali Linux on your Windows machine, and where do you run it?
Asked once · last asked Oct 13 · Tooling · Mid-level
Related interview questions
- System Administrator interview questions
- DevOps Engineer interview questions
- Software Engineer interview questions
- Cybersecurity interview questions
- IT Support and Help Desk interview questions
- Network Engineer interview questions
- AWS interview questions
- Azure interview questions
- Docker interview questions
- Kubernetes interview questions
- Terraform interview questions
- CI/CD interview questions
- Active Directory and Windows Server interview questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Linux interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
94 interviews, 67 candidates, Nov 2025 to Oct 2026. Updated every month with new interviews.
Or add the Chrome extension