Skip to content

Latest commit

 

History

History
59 lines (56 loc) · 2.84 KB

50 commonly used commands for linux.md

File metadata and controls

59 lines (56 loc) · 2.84 KB

50 Essential Linux Commands for Efficient Command-Line Usage

  1. ls - List files and directories.
  2. cd - Change directory.
  3. pwd - Print working directory.
  4. mkdir - Create a new directory.
  5. rm - Remove files and directories.
  6. cp - Copy files and directories.
  7. mv - Move or rename files and directories.
  8. cat - Concatenate and display file content.
  9. grep - Search for patterns in files.
  10. chmod - Change file permissions.
  11. chown - Change file ownership.
  12. chgrp - Change group ownership of files.
  13. sudo - Execute a command with superuser privileges.
  14. apt - Package manager for Debian-based distributions.
  15. yum - Package manager for RPM-based distributions.
  16. ps - Display running processes.
  17. kill - Terminate processes.
  18. top - Display system resource usage and running processes.
  19. df - Display disk space usage.
  20. du - Estimate file and directory space usage.
  21. man - Display the manual for a command.
  22. ssh - Securely connect to a remote system.
  23. scp - Securely copy files between systems.
  24. tar - Archive files and directories.
  25. gzip - Compress files using gzip compression.
  26. gunzip - Decompress files compressed with gzip.
  27. ping - Send ICMP echo requests to a target host.
  28. ifconfig - Display network interfaces and configurations.
  29. netstat - Display network statistics and connections.
  30. wget - Download files from the web.
  31. curl - Transfer data from or to a server.
  32. history - Display command history.
  33. find - Search for files and directories.
  34. locate - Find files by name.
  35. tar - Archive files and directories.
  36. tail - Display the last part of a file.
  37. head - Display the beginning of a file.
  38. sort - Sort lines of text files.
  39. ssh-keygen - Generate SSH key pairs.
  40. sed - Stream editor for text manipulation.
  41. awk - Text processing language.
  42. cut - Extract sections from lines of files.
  43. wc - Count lines, words, and characters in files.
  44. diff - Compare files line by line.
  45. scp - Securely copy files between systems.
  46. ln - Create links between files.
  47. alias - Create custom command aliases.
  48. echo - Display a line of text or variables.
  49. date - Display or set the system date and time.
  50. clear - Clear the terminal screen.

These are just a few examples of commonly used Linux commands. There are many more commands available, each with its own specific functionality. Exploring and mastering these commands will help you navigate and work effectively in a Linux environment.


Support

You can Follow me on LinkedIn or

Buy Me a Coffee