Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.75 KB

INTERVIEW.md

File metadata and controls

35 lines (24 loc) · 1.75 KB

Linux Commands Interview Questions: A Comprehensive Guide

This list of Linux commands interview questions covers a wide range of topics, from basic concepts to advanced features and best practices. It is organized by category and ordered by difficulty, making it easy to focus on the topics that are most important for your interview. Whether you are a beginner or an experienced user, this guide will help you review and deepen your understanding of Linux commands.

File and directory management

  • What is the difference between a file and a directory?
  • How do you create a new directory?
  • How do you list the contents of a directory, including hidden files?
  • How do you create a new file and edit its contents?
  • How do you copy and move files and directories?
  • How do you delete a file or directory?

Text processing and manipulation

  • How do you search for a specific string in a file or a group of files?
  • How do you find and replace a string in a file or a group of files?
  • How do you concatenate the contents of multiple files into a single file?
  • How do you sort the lines of a file? How do you remove duplicate lines?
  • How do you find the difference between two files?

Networking and remote access

  • How do you connect to a remote host using SSH? How do you copy a file to a remote host using SCP?

System administration and maintenance

  • How do you create a tar archive and compress it with gzip, bzip2, or xz?
  • How do you extract the files from a tar archive?

Shell scripting

  • How do you create a script that loops through a list of items and executes a command for each item?
  • How do you create a script that executes a command if a condition is true?
  • How do you schedule a task to be executed at a later time using at or crontab?