Top 100 Most Used Linux Commands ๐ฅ️๐ป
Learn the essential Linux commands to help you navigate the terminal like a pro! Here are the most useful commands for both beginners and advanced Linux users. ๐
1. Basic Linux Commands ⚙️
Here are some basic commands to get you started with the Linux terminal:
- ls - List directory contents ๐
- cd - Change directory ๐
- pwd - Print working directory ๐ฃ️
- mkdir - Make a new directory ๐️
- rmdir - Remove empty directory ๐ฎ
- touch - Create an empty file ๐
- cat - Concatenate and display files ๐
- echo - Display a line of text ๐ฌ
- cp - Copy files and directories ๐
- mv - Move/rename files and directories ๐
- rm - Remove files or directories ❌
2. File Permissions and Ownership ๐
Managing file permissions and ownership is a crucial part of working with Linux:
- chmod - Change file permissions ๐
- chown - Change file owner and group ๐ค
- chgrp - Change group ownership ๐ฅ
- umask - Set default file permissions ๐️
- stat - Display file or file system status ๐
3. File Searching and Viewing ๐
Here are the most common commands used for searching and viewing files:
- find - Search for files in a directory ๐ต️♂️
- grep - Search text in files ๐
- locate - Find files by name ๐
- head - View the start of a file ๐
- tail - View the end of a file ๐
- more - View file contents (scrollable) ๐
- less - View file contents (scrollable) with reverse navigation ๐
- wc - Count words, lines, and characters ๐
4. System Information ๐ฅ️
These commands provide detailed information about the system:
- uname - Print system information ๐
- top - Display running processes and system resource usage ⏳
- ps - Report a snapshot of current processes ๐ฅ️
- uptime - Show system uptime ⏱️
- df - Display disk space usage ๐พ
- du - Estimate file space usage ๐️♂️
- free - Display memory usage ๐ง
- whoami - Show the current logged-in user ๐ค
5. Network Commands ๐
These commands are used for networking tasks and troubleshooting:
- ping - Check network connectivity ๐
- ifconfig - Configure network interfaces ๐ถ
- ip - Display or manipulate routing and devices ๐
- netstat - Network statistics ๐ก
- traceroute - Trace the route packets take to a network host ๐
- curl - Transfer data from or to a server ๐
- scp - Secure copy between hosts ๐
- sftp - Secure File Transfer Protocol ๐ป
6. Package Management ๐ง
Install, update, and manage packages on Linux with these commands:
- apt-get - Package management for Debian-based distributions ๐ฆ
- yum - Package management for Red Hat-based distributions ๐ฅ
- dpkg - Debian package manager ๐️
- rpm - RPM package manager ๐ ️
- snap - Manage snap packages ๐ฆ
- zypper - Package manager for SUSE Linux ๐️
7. Disk Management ⚙️
Disk management commands to check and maintain disks and partitions:
- fdisk - Partition table manipulator ๐งญ
- mount - Mount a file system ๐
- umount - Unmount file systems ๐
- fsck - File system consistency check ๐งน
- parted - Command-line partitioning tool ๐ ️
8. User Management ๐ฅ
These commands allow you to manage user accounts:
- useradd - Add a new user account ๐ค
- usermod - Modify a user account ๐ง
- userdel - Delete a user account ๐️
- passwd - Change a user's password ๐
- groupadd - Add a new group ๐ข
- groupdel - Delete a group ❌
9. System Monitoring and Troubleshooting ๐ ️
Use these commands to troubleshoot and monitor system health:
- dmesg - Print kernel ring buffer messages ๐
- strace - Trace system calls and signals ๐
- lsof - List open files ๐
- htop - Interactive process viewer ⏳
10. Compression and Archiving ๐ฆ
Compress and archive files with these commands:
- tar - Archive files ๐ฆ
- gzip - Compress files ๐️
- bzip2 - Compress files with higher compression ๐️♀️
- zip - Create compressed zip files ๐
- unzip - Extract zip files ๐
Keep this going please, great job!
ReplyDelete