Monday, 27 May 2024

Some Linux Commands should know all Cloud/Devops engineers

 Linux commands are essential for navigating and managing files, processes, permissions, and more in a Linux-based operating system. Here are some important commands categorized by their functions:


### File System Navigation and Management:

1. **ls**: List directory contents.

2. **cd**: Change directory.

3. **pwd**: Print working directory.

4. **mkdir**: Make directories.

5. **rmdir**: Remove empty directories.

6. **cp**: Copy files and directories.

7. **mv**: Move or rename files and directories.

8. **rm**: Remove files or directories (use with caution).

9. **touch**: Create an empty file or update the access and modification times of a file.


### File Viewing and Editing:

10. **cat**: Concatenate and display files.

11. **less**: View file contents interactively.

12. **head**: Output the first part of files.

13. **tail**: Output the last part of files.

14. **nano**: A simple text editor for editing files.


### File Permissions:

15. **chmod**: Change file mode (permissions).

16. **chown**: Change file owner and group.


### System Information and Monitoring:

17. **top**: Display Linux tasks.

18. **htop**: Interactive process viewer.

19. **df**: Report file system disk space usage.

20. **du**: Estimate file space usage.

21. **free**: Display amount of free and used memory in the system.

22. **uname**: Print system information.


### Package Management:

23. **apt-get** (Debian-based systems) / **yum** (Red Hat-based systems): Package management commands for installing, updating, and removing software packages.


### Network Management:

24. **ifconfig**: Configure a network interface.

25. **ping**: Send ICMP ECHO_REQUEST to network hosts.

26. **ssh**: OpenSSH SSH client (remote login program).


### User and Group Management:

27. **useradd**: Create a new user or update default new user information.

28. **usermod**: Modify a user account.

29. **userdel**: Delete a user account.

30. **groupadd**: Create a new group.

31. **groupmod**: Modify a group.

32. **groupdel**: Delete a group.


### System Administration:

33. **sudo**: Execute a command as another user (typically the superuser).

34. **shutdown**: Shutdown or restart the system.

35. **reboot**: Reboot the system.

36. **cron**: Schedule commands to be executed periodically.


### Miscellaneous:

37. **history**: Display command history.

38. **grep**: Print lines matching a pattern.

39. **find**: Search for files in a directory hierarchy.

40. **wget**: Non-interactive network downloader.


These commands cover a broad range of functionalities essential for both basic and advanced Linux users. Each command typically has numerous options and flags to customize its behavior further.



Note : I will explain in detail in next post if possible.

No comments:

Post a Comment

Introduction to k8s

 Hello friends, Good Day! Hope you guys are doing well, I am writing here some basic terminology n introduction to kube8.. please do read n ...