Auto

Monday, 6 March 2017

Top 100 Most Used Linux Commands

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 ๐ŸŽ

© 2024 All Rights Reserved. Learn more about Linux with the most essential Linux commands!

1 comment:

  1. Anonymous07 February

    Keep this going please, great job!

    ReplyDelete