Day-2 of DevOps Challenge: Mastering Basic Linux Commands for Efficient System Management
Hello dosto, welcome to Day-2 of my 90-day DevOps challenge! 🚀 Today, I'll share some basic Linux commands that are essential for managing and navigating your system 🖥️.
ls
📁 - Lists a directory’s contentpwd
📍 - Shows the current working directory’s pathcd
🔄 - Changes the working directorymkdir
🗂️ - Creates a new directoryrm
🗑️ - Deletes a filecp
📋 - Copies files and directories, including their contentmv
🚚 - Moves or renames files and directoriestouch
✨ - Creates a new empty filefile
🗃️ - Checks a file’s typezip
andunzip
🗜️ - Creates and extracts a ZIP archivetar
📦 - Archives files without compression in a TAR formatnano
,vi
, andjed
✏️ - Edits a file with a text editorcat
📜 - Lists, combines, and writes a file’s content as a standard outputgrep
🔍 - Searches a string within a filesed
✂️ - Finds, replaces, or deletes patterns in a filehead
📰 - Displays a file’s first ten linestail
📄 - Prints a file’s last ten linesawk
🧩 - Finds and manipulates patterns in a filesort
🔀 - Reorders a file’s contentcut
✂️ - Sections and prints lines from a filediff
🔎 - Compares two files’ content and their differencestee
📥📤 - Prints command outputs in Terminal and a filelocate
🔎 - Finds files in a system’s databasefind
🔍 - Outputs a file or folder’s locationsudo
👑 - Runs a command as a superusersu
👤 - Runs programs in the current shell as another userchmod
🔧 - Modifies a file’s read, write, and execute permissionschown
🏷️ - Changes a file, directory, or symbolic link’s ownershipuseradd
anduserdel
👥 - Creates and removes a user accountdf
💾 - Displays the system’s overall disk space usagedu
📊 - Checks a file or directory’s storage consumptiontop
📈 - Displays running processes and the system’s resource usagehtop
🖥️ - Works like top but with an interactive user interfaceps
📸 - Creates a snapshot of all running processesuname
🔍 - Prints information about your machine’s kernel, name, and hardwarehostname
🏠 - Shows your system’s hostnametime
⏱️ - Calculates commands’ execution timesystemctl
🔧 - Manages system serviceswatch
👀 - Runs another command continuouslyjobs
📋 - Displays a shell’s running processes with their statuseskill
💣 - Terminates a running processshutdown
📴 - Turns off or restarts the systemping
🌐 - Checks the system’s network connectivitywget
📥 - Downloads files from a URLcurl
🌐 - Transmits data between servers using URLsscp
🔒📂 - Securely copies files or directories to another systemrsync
🔄 - Synchronizes content between directories or machinesifconfig
🌐 - Displays the system’s network interfaces and their configurationsnetstat
📡 - Shows the system’s network information, like routing and socketstraceroute
🛤️ - Tracks a packet’s hops to its destinationnslookup
🔍 - Queries a domain’s IP address and vice versadig
🗃️ - Displays DNS information, including record typeshistory
🕒 - Lists previously run commandsman
📖 - Shows a command’s manualecho
🗣️ - Prints a message as a standard outputln
🔗 - Links files or directoriesalias
andunalias
📝 - Sets and removes an alias for a file or commandcal
📅 - Displays a calendar in Terminalapt-get
📦 - Manages Debian-based distros package libraries
Subscribe to my newsletter
Read articles from Akash Rastogi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by