Sysadmin Linux Commands from ChatGPT
I asked ChatGPT to give me a list of the most used sysadmin Linux commands
Question:
Give me a list of the linux commands most used by system administrators
Answer:
Here is a list of some commonly used Linux commands by system administrators:
1. ls: lists the files and directories in a directory.
2. cd: changes the current directory.
3. pwd: shows the current working directory.
4. mkdir: creates a new directory.
5. rmdir: removes an empty directory.
6. touch: creates a new empty file.
7. rm: removes a file or directory.
8. cp: copies a file or directory.
9. mv: moves or renames a file or directory.
10. chmod: changes the permissions of a file or directory.
11. chown: changes the owner and group of a file or directory.
12. find: searches for files in a directory hierarchy.
13. grep: searches for a string in a file or a stream of text.
14. cat: displays the contents of a file.
15. less : displays the contents of a file one page at a time.
16. tail: displays the last part of a file.
17. head: displays the first part of a file.
18. top: shows the processes running on the system, along with their resource usage.
19. ps: shows the processes running on the system.
20. kill: sends a signal to a process to terminate it.
21. netstat: shows information about the network connections and routing tables.
22. ping: tests the reachability of a host on an Internet Protocol (IP) network.
23. traceroute: traces the path of packets to a host.
24. ssh: secure shell, allows to remotely connect to a system.
25. scp: secure copy, allows to copy files between systems securely.
These are some of the most commonly used commands by system administrators, but there are many more depending on the task.
You can keep asking ChatGPT for more advanced commands and it will give you a different list:
Question:
Now give me a list of more advanced commands
Answer:
Here is a list of some more advanced Linux commands that are commonly used by system administrators:
1. sed: stream editor, allows to edit files or streams of text in a non-interactive way.
2. awk: pattern scanning and processing language, allows to perform complex operations on data.
3. perl: high-level dynamic programming language, allows to perform complex operations on data and automate tasks
4. cut: remove sections from each line of files
5. sort: sort lines of text files
6. uniq: report or filter out repeated lines in a file
7. diff: compare files line by line
8. patch: apply a diff file to an original
9. gzip: Compress or decompress named files
10. tar: Store and extract files from a tarfile (.tar) archive
11. findmnt: Find a filesystem
12. lsof: List open files
13. systemctl: Control the systemd system and service manager
14. journalctl: Query the systemd journal
15. systemd-analyze: Analyze system boot-up performance
16. iptables: administration tool for IPv4/IPv6 packet filtering and NAT
17. tcpdump: dump traffic on a network
18. htop: interactive process viewer
19. nmap: Network exploration tool and security/port scanner
20. iptraf: IP LAN monitor
These commands allow you to perform more advanced system administration tasks such as text processing, network troubleshooting, service management and performance analysis.
I asked for more advanced commands two more times, and the results were interesting. Now go to ChatGPT and try it by yourself! :)