90daysofDevOps-Day 3

Renu KokateRenu Kokate
3 min read

We will be using Ubuntu Linux throughout this journey. As Ubuntu has a large and active community of users and developers. This community provides extensive support through forums, documentation, tutorials, and other resources. If you encounter any issues or have questions, you can often find assistance from the Ubuntu community.

Top 50 basic commands in Linux.

  1. ls: List files and directories in the current directory.

  2. cd: Change directory.

  3. pwd: Print the current working directory.

  4. mkdir: Create a new directory.

  5. rm: Remove files or directories.

  6. cp: Copy files and directories.

  7. mv: Move or rename files and directories.

  8. cat: Display the contents of a file.

  9. touch: Create an empty file or update the timestamp of an existing file.

  10. grep: Search for a specific pattern in files.

  11. chmod: Change the permissions of a file or directory.

  12. sudo: Execute a command with administrative privileges.

  13. man: Display the manual pages for a command.

  14. find: Search for files and directories based on various criteria.

  15. tar: Create or extract compressed archive files.

  16. gzip: Compress files using the gzip algorithm.

  17. gunzip: Decompress files compressed with gzip.

  18. ssh: Connect to a remote server using the SSH protocol.

  19. scp: Copy files between local and remote systems over SSH.

  20. wget: Download files from the internet.

  21. curl: Transfer data to or from a server using various protocols.

  22. df: Display disk usage information.

  23. du: Estimate file and directory sizes.

  24. top: Display system resource usage and running processes.

  25. ps: Display information about active processes.

  26. kill: Terminate processes by ID or name.

  27. ping: Send ICMP Echo Request packets to a host.

  28. ifconfig: Display or configure network interfaces.

  29. netstat: Display network connection information.

  30. history: Display previously executed commands.

  31. date: Display or set the system date and time.

  32. uptime: Display the system's uptime.

  33. whoami: Display the current username.

  34. file: Determine the file type.

  35. chown: Change the ownership of files or directories.

  36. chgrp: Change the group ownership of files or directories.

  37. ln: Create links between files.

  38. alias: Create a shortcut for a command.

  39. echo: Print text or variables to the terminal.

  40. sed: Stream editor for filtering and transforming text.

  41. awk: Text processing and pattern matching tool.

  42. sort: Sort lines of text files.

  43. cut: Extract sections from lines of files.

  44. head: Output the beginning of files.

  45. tail: Output the end of files.

  46. diff: Compare files line by line.

  47. patch: Apply changes to files using patch files.

  48. ssh-keygen: Generate SSH key pairs.

  49. ssh-add: Add private keys to the SSH agent.

  50. scp: Securely copy files between systems

These are just a few basic commands, but Linux provides a wide range of commands and functionalities. You can explore more commands and their options by referring to the manual pages using the man command. For example, man ls will display the manual for the ls command.

2
Subscribe to my newsletter

Read articles from Renu Kokate directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Renu Kokate
Renu Kokate