Knowledgebase

100 Essential Linux Commands with Brief Descriptions Print

  • 1

100 Essential Linux Commands with Brief Descriptions

File and Directory Management

  1. ls - List files and directories.
  2. cd - Change the current directory.
  3. pwd - Display the current working directory.
  4. mkdir - Create a new directory.
  5. rmdir - Remove an empty directory.
  6. rm - Delete files or directories.
  7. cp - Copy files or directories.
  8. mv - Move or rename files or directories.
  9. touch - Create an empty file.
  10. find - Search for files or directories.
  11. locate - Quickly find files by name.
  12. stat - Display detailed information about a file or directory.
  13. tree - Show a hierarchical structure of directories.
  14. du - Show the disk usage of files or directories.
  15. df - Display available disk space.

File Handling

  1. cat - View the contents of a file.
  2. less - View file content page by page.
  3. more - Gradually display file content.
  4. head - Display the first few lines of a file.
  5. tail - Display the last few lines of a file.
  6. nano - Open a simple text editor.
  7. vim - Open an advanced text editor.
  8. cut - Extract specific parts of file content.
  9. sort - Sort data.
  10. uniq - Filter out repeated lines.
  11. wc - Count words, lines, and characters in a file.
  12. grep - Search for a pattern in a file.
  13. awk - Process and analyze text and data.
  14. sed - Modify file content on the fly.
  15. diff - Compare two files line by line.
  16. cmp - Compare two files byte by byte.
  17. tr - Translate or delete characters.
  18. cut - Extract specific columns or fields.

Permissions and Ownership

  1. chmod - Change file permissions.
  2. chown - Change file ownership.
  3. chgrp - Change file group ownership.
  4. umask - Set default file permissions.
  5. lsattr - List file attributes.
  6. chattr - Change file attributes.

System and Process Management

  1. top - Display real-time system performance and processes.
  2. htop - A more user-friendly process viewer.
  3. ps - Show running processes.
  4. kill - Terminate processes by PID.
  5. killall - Terminate all processes by name.
  6. bg - Resume a process in the background.
  7. fg - Bring a background process to the foreground.
  8. jobs - List background processes.
  9. nice - Start a process with a specified priority.
  10. renice - Change the priority of a running process.
  11. uptime - Show how long the system has been running.
  12. shutdown - Shut down the system.
  13. reboot - Restart the system.
  14. systemctl - Start, stop, or manage system services.
  15. service - Control system services.
  16. cron - Schedule recurring tasks.
  17. at - Run a command at a specified time.

Networking

  1. ping - Test connectivity to a host.
  2. traceroute - Show the route packets take to a host.
  3. curl - Transfer data from a URL.
  4. wget - Download files from the web.
  5. scp - Copy files over SSH.
  6. rsync - Synchronize data between locations.
  7. ftp - Start an FTP client.
  8. ifconfig - Configure network interfaces.
  9. ip - Manage network settings.
  10. netstat - Display network connections.
  11. ss - A faster alternative to netstat.
  12. nslookup - Query DNS servers.
  13. dig - Perform DNS lookups.
  14. iptables - Configure firewall rules.
  15. nmap - Scan networks.

Package Management

  1. apt-get - Manage packages on Debian-based systems.
  2. yum - Manage packages on Red Hat-based systems.
  3. dnf - Modern package manager for Red Hat systems.
  4. zypper - Package manager for openSUSE.
  5. pacman - Package manager for Arch Linux.
  6. snap - Universal package manager for Linux.
  7. flatpak - Manage modern app distributions.

Disk Management

  1. mount - Mount file systems.
  2. umount - Unmount file systems.
  3. fsck - Check and repair file systems.
  4. mkfs - Create a new file system.
  5. blkid - Display block device information.
  6. df - Check disk space usage.
  7. fdisk - Manage disk partitions.
  8. parted - Configure disk partitions.
  9. lsblk - List block devices.
  10. tune2fs - Adjust file system parameters.

User Management

  1. whoami - Show the current user's name.
  2. who - Display logged-in users.
  3. id - Show user ID and group information.
  4. adduser - Add a new user.
  5. usermod - Modify a user account.
  6. passwd - Change a user's password.
  7. groupadd - Add a new group.
  8. groups - Show groups a user belongs to.
  9. last - Display recent login history.

Miscellaneous Commands

  1. alias - Create command shortcuts.
  2. history - View previously executed commands.
  3. clear - Clear the terminal screen.

This list covers essential and advanced commands for effective Linux system usage. For detailed usage, refer to the manual pages with man <command>.


Was this answer helpful?
Back