Top 100 Linux Commands you Must know in 2024 | Akash
Summary
Hi Everyone, My name is Akash in this article I you will learn top 100 linux commands. By mastering these essential Linux commands, you'll become more efficient and confident in your ability to work with Linux systems. Happy learning!Linux is a powerful and versatile operating system that has become a staple in the world of computing. Whether you're a seasoned system administrator or a beginner, mastering Linux commands is essential to unlocking its full potential. In this article, we'll cover the top 100 Linux commands that you must know in 2024.
Navigation and File Management
cd - Change directorypwd - Print working directoryls - List files and directoriesmkdir - Make a directoryrm - Remove a file or directorycp - Copy a filemv - Move or rename a filetouch - Create a new empty filefind - Search for fileslocate - Find files by nameFile Permissions and Ownership
chmod - Change file permissionschown - Change file ownershipchgrp - Change file groupls -l - List file permissionsText Editing and Viewing
nano - Simple text editorvim - Advanced text editorcat - View file contentsless - View file contents with paginationhead - View first few lines of a filetail - View last few lines of a fileSystem Information and Monitoring
uname -a - View system informationhostname - View system hostnameuptime - View system uptimetop - View system processeshtop - Interactive process viewerdf - View disk usagedu - Estimate disk usagefree - View memory usageps - View process informationkill - Kill a processNetwork and Connectivity
ping - Test network connectivityssh - Secure shell remote loginscp - Secure copy files over networkwget - Download files from the internetcurl - Transfer data to/from a web servernslookup - Perform DNS lookupsdig - Perform DNS lookupsnetstat - View network connectionsSecurity and Access Control
sudo - Run commands with superuser privilegessu - Switch userpasswd - Change passwordgroupadd - Add a new groupuseradd - Add a new useruserdel - Delete a usergroupdel - Delete a groupPackage Management
apt-get - Manage packages (Debian-based)yum - Manage packages (RPM-based)pip - Manage Python packagesrpm - Manage RPM packagesdpkg - Manage Debian packagesProcess Management
bg - Run a process in the backgroundfg - Bring a process to the foregroundjobs - View running jobskillall - Kill processes by namepkill - Kill processes by name or patternDisk and Filesystem Management
fdisk - Manage disk partitionsmkfs - Create a filesystemmount - Mount a filesystemumount - Unmount a filesystemfsck - Check and repair filesystemsUser and Group Management
id - View user informationgroups - View group informationwhoami - View current usernameusers - View logged-in userslast - View login historySystem Configuration
sysctl - Configure system kernel parametersmodprobe - Manage kernel moduleslsmod - List loaded kernel modulesdepmod - Manage kernel module dependenciesupdate-rc.d - Manage system startup scriptsTroubleshooting
dmesg - View system logssyslog-ng - Configure system logginglogrotate - Rotate system logsstrace - Debug system callslsof - List open filesMiscellaneous
man - View manual pages for commandsinfo - View detailed information about commandswhatis - Briefly describe a commandwhereis - Locate binary, source, and manual pageswhich - Locate executable filesRegular Expressions and Text Processing
grep - Search for patterns in filesegrep - Search for extended patterns in filesfgrep - Search for fixed strings in filessed - Stream editor for filtering and transforming textawk - Pattern scanning and processing languageCompression and Archiving
tar - Create and extract archivesgzip - Compress filesgunzip - Uncompress fileszip - Create and extract zip archivesunzip - Extract zip archivesSystem Boot and Shutdown
reboot - Reboot the systemshutdown - Shut down the systeminit - Change system runleveltelinit - Change system runlevelhalt - Shut down the systemNetworking Tools
ssh-keygen - Generate SSH keysssh-agent - Manage SSH keysnc - Network utility for debugging and testingnmap - Network scanning and exploration tooltcpdump - Network traffic capture and analysis toolConclusion
Mastering these 100 Linux commands will help you navigate, manage, and troubleshoot Linux systems efficiently. Whether you're a beginner or an experienced user, this list will serve as a valuable reference guide. Practice these commands to become proficient in Linux and unlock its full potential.
Additional Tips
Use
man and info to learn more about each command.Practice commands in a virtual machine or sandbox environment.
Use online resources, such as Linux documentation and forums, for further learning.
Create a cheat sheet or notes to help you remember commands.
Recommended Resources
Linux Documentation Project (LDP)
Linux Command Line Interface (CLI) Guide
Unix/Linux Command Reference
Linux Tutorial by FreeCodeCamp
By mastering these essential Linux commands, you'll become more efficient and confident in your ability to work with Linux systems. Happy learning!