Basic Linux commands- part1

Here are the list of basic Linux commands which every linux user should know

  1. ls //Listing folder contents

  2. ls -a // Listing folder contents along with hidden files

  3. pwd //Path working directory -- provides you current working directory

  4. cd //Navigate through directories

  5. mkdir //Create directories

  6. mkdir A B C D //Create multiple directories

  7. mkdir -p A/B/C // Making nested dir

  8. mv //Move or rename files in

  9. cp //Copying files

  10. rm //Delete files

  11. rm -r // Deleting folders

  12. rm -rf //Deleting folders along with files

  13. touch //Create blank/empty files

  14. cat //Display file contents on the terminal

  15. clear //Clear the terminal display

  16. echo //Print any text that follows the command

  17. uname //get basic information about the OS

  18. whoami //Get the active username

  19. tar //Command to extract and compress files

  20. grep //Search for a string within an output

  21. head //Return the specified number of lines from the top

  22. tail //Return the specified number of lines from the bottom

  23. diff // Find the difference between two files

  24. sort //Sort the content of a file while outputting

  25. export //Export environment variables

  26. zip //Compress files using zip

  27. unzip //Uncompress files using zip

  28. ssh //Secure Shell

  29. service //start and stop services

  30. ps //Display active processes

  31. kill and killall //Kill active processes by process ID or name

  32. df //Display disk filesystem information

  33. mount //Mount file systems

  34. chmod //Change file permissions

  35. chown //Granting ownership of files or folders

  36. ifconfig //Display network interfaces and IP addresses

  37. wget //Direct download files from the internet

  38. iptables //Base firewall for all other firewall utilities to interface with

  39. apt, pacman, yum, rpm //Package managers depending on the distro

  40. sudo //Command to escalate privileges in Linux

  41. su //switch user

  42. alias //Create custom shortcuts for your regularly used commands

  43. whoami // to know current user

  44. whereis //Locate the binary, source, and manual pages for a command

  45. whatis //Find what a command is used for

  46. useradd and usermod //Add new user or change existing users data

  47. passwd //Create or update passwords for existing users