Skip to content
InterviewEra
Loading account navigation
InterviewEra

InterviewEra is an AI-powered mock interview platform with adaptive follow-ups, resume-aware scoring, and structured interview preparation for campus placements and early-career hiring.

Start Mock Interview

Product

  • How It Works
  • For Teams
  • Start Mock Interview
  • Campus Placements
  • Campus Workspace
  • Help Center

Tools

  • Interview Question Generator
  • ATS Resume Checker
  • STAR Answer Builder

Resources

  • Interview Questions
  • All Resources
  • Blog
  • Community Hub
  • DSA Topic Map
  • Placement Guide
  • STAR Guide

Company

  • What is InterviewEra
  • About Us
  • Pricing
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy

© 2026 InterviewEra. All rights reserved.

Privacy Policy|Terms & Conditions|Refund Policy
|Ranchi, Jharkhand, India
Interview Questions›Topics›Linux

DevOps · Fresher-relevant

Linux Interview Questions 2026

Linux interview questions on shell commands, file permissions, process management, cron jobs, and networking tools.

DevOpsFresher-relevant

Linux Interview Questions

Placement-oriented · Updated 2026
  1. 01

    How do Linux file permissions work?

    TechnicalEasy

    Tip: Each file has read/write/execute bits for owner, group, and others — shown by ls -l (e.g. rwxr-xr--). chmod sets them numerically (755 = rwxr-xr-x) or symbolically; chown changes ownership. For directories, execute means "can enter". Mention setuid/setgid/sticky bits for depth.

  2. 02

    How do you find what is consuming CPU or memory on a Linux server?

    TechnicalMedium

    Tip: Use top/htop for live CPU and memory per process, free -h for memory overview, vmstat/iostat for system-wide stats, and ps aux --sort=-%cpu to rank processes. For a runaway process, identify the PID then investigate logs or strace it.

  3. 03

    How do you find and kill a process using a specific port?

    TechnicalMedium

    Tip: Find it with lsof -i :8080 or ss -ltnp | grep :8080 to get the PID, then kill <pid> (graceful, SIGTERM) or kill -9 <pid> (force, SIGKILL) as a last resort. Prefer SIGTERM so the process can clean up.

  4. 04

    What is the difference between a hard link and a soft (symbolic) link?

    TechnicalMedium

    Tip: A hard link is another name pointing to the same inode — the data persists until all hard links are removed, and it cannot cross filesystems. A soft link is a separate file pointing to a path; it can cross filesystems and link directories but breaks if the target is moved/deleted.

  5. 05

    How do pipes and redirection work in the shell?

    TechnicalMedium

    Tip: A pipe | feeds one command's stdout into the next's stdin (e.g. cat log | grep error | wc -l). Redirection sends streams to files: > overwrites stdout, >> appends, 2> redirects stderr, &> both. This composability is the core Unix philosophy.

  6. 06

    What are some essential commands for searching files and text?

    TechnicalEasy

    Tip: find searches the filesystem by name/size/time (find . -name "*.log"). grep searches text within files (grep -r "pattern" .). Combine with xargs, and use awk/sed for field extraction and stream editing. These are daily-driver skills for log analysis.

  7. 07

    What is a cron job and how do you schedule one?

    TechnicalEasy

    Tip: cron schedules recurring tasks. Edit with crontab -e; the five fields are minute, hour, day-of-month, month, day-of-week, then the command (e.g. 0 2 * * * /backup.sh runs daily at 2 AM). Redirect output and check logs since cron runs without your interactive shell environment.

  8. 08

    How do you check disk usage and free space?

    TechnicalEasy

    Tip: df -h shows free space per mounted filesystem; du -sh * shows the size of files/directories in the current path. To hunt a full disk, du -h --max-depth=1 / | sort -rh narrows down the big directories. Also check for deleted-but-open files holding space (lsof | grep deleted).

Practice Linux questions with your own resume

InterviewEra generates role-specific questions using your actual projects and skills. Get scored feedback on technical depth, clarity, and structure — free to start.

Start free mock interviewFree question generator

Roles that need Linux

  • Backend Developer questions
  • DevOps Engineer questions
  • Cloud Engineer questions
  • Cybersecurity Analyst questions

Related devops topics

  • Docker questions
  • Git questions
  • Kubernetes questions

Practice tools

  • Interview question generator
  • ATS resume checker
  • STAR answer builder

Guides and resources

  • All interview questions
  • HR interview answer tips
  • STAR method with examples