Linuxopsys Profile picture
Aug 7 โ€ข 30 tweets โ€ข 5 min read
90+ Linux commands that Linux sysadmins and power Linux users regularly use. (with explanation) โ†“๐Ÿง
1. ip - used to show or manipulate routing, devices, and tunnels.
2. ls - list the contents of a directory.
3. df - Displays the amount of disk space used.
4. du - display a list of all the files along with their respective sizes.
5. free - use to get a detailed report on the system's memory usage.
6. scp - securely copy files or directories over ssh.
7. find - locates files using user-defined criteria.
8. ncdu - provides a useful and convenient way to view disk usage.
9. pstree - used to show running processes in a tree (data structure).
10. latest - displays a list of the most recently logged-in people.
11. w โ€“ display a list of the currently logged-in user sessions.
12. grep - searches a file for a pattern of characters and displays all lines that match.
13. awk - a scripting language used for text processing.
14. sed - stream editor used to perform lots of functions on files, like searching, find and replace, insertion, or deletion.
15. cut - allows you to cut out sections of a specified file or piped data and print the result to standard output.
16. sort - used to sort files
17. uniq - used to extract uniq occurences
18. tr - utility for translating or deleting characters.
19. diff - used to display differences in files by comparing line by line.
20. uptime โ€“ displays the system uptime as well as the load average.
21. top โ€“ shows a real-time view of running processes in Linux.
22. vmstat - used to obtain information about memory, system processes, paging, interrupts, block I/O, disk, and CPU scheduling.
23. htop - a process viewer and manager that is interactive.
24. dstat - allows you to view all of your system resources instantly. All-in-one vmstat, iostat, netstat, and ifstat utility.
25.. Iftop is a network traffic viewer.
26. nethogs - is a network traffic analyzer.
27. iotop - is an interactive I/O viewer. Get a snapshot of storage r/w activity.
28. iostat - provides statistics on storage I/O.
29. netstat -used to show network statistics.
30. ss - ss command is a simpler and faster version of the now obsolete netstat command.
31. atop โ€“ a tool for monitoring system resources in Linux.
32. ssh โ€“ secure protocol used as the primary means of connecting to Linux servers remotely.
33. sudo - run commands with administrative privileges.
34. cd โ€“ navigate between directories.
35. pwd โ€“ displays the current directory path.
36. cp - copy files and directories.
37. mv โ€“ move file or directories.
38. rm โ€“ deletes files and directories.
39. mkdir - create new directories.
40. touch โ€“ used to create, update a computer file or directory's access and modification dates.
41. man โ€“ used to read system reference manuals.
42. apropos โ€“ searches manual page names and descriptions for a user-supplied keyword.
43. rsync - remote file transfer and synchronization.
44. tar - is an archive utility.
45. gzip - use for compression and decompression of files.
46. b2zip - a compression utility comparable to gzip. It employs a distinct compression algorithm.
43. rsync - remote file transfer and synchronization.
44. tar - is an archive utility.
45. gzip - use for compression and decompression of files.
46. b2zip - a compression utility comparable to gzip. It employs a distinct compression algorithm.
47. zip โ€“ used for file packaging and compression (archiving).
48. locate โ€“ in Linux, search for files.
49. ps โ€“ allows you to list the status of processes running on your system easily.
50. cron - execute scheduled tasks.
51. nmcli - sused to display network device status, create, edit, activate/deactivate, and delete network connections.
52. ping - sends an ICMP ECHO REQUEST to network hosts.
53. traceroute - examine the path packets follow to reach a specific host.
54. mtr - is a network diagnostic tool, a combination of ping and traceroute commands.
55. nslookup - interactively query Internet name servers (NS).
56. host โ€“used for DNS (Domain Name System) lookup operations.
57. dig โ€“ DNS lookup tool.
58. wget - download files through HTTP, HTTPS, FTP, and FTPS.
59. curl โ€“ data transport via several network protocols. (Can handle more protocols than wget)
60. dd - used to convert and copy files.
61. fdisk - Modify the disk partition table.
62. parted โ€“ used to create and manipulate partition tables.
63. blkid - a command-line utility for finding and printing block device attributes.
64. mkfs - create a Linux file system.
65. fsck - an utility for determining the consistency of a file system.
66. nc - used for just about anything under the sun involving TCP or UDP.
67. umask - returns, or sets, the value of the system's file mode creation mask.
68. chmod โ€“ alters the access rights of file system objects.
69. chown โ€“ alter the owner and group of a file.
70. chroot - used to change the root directory.
71. useradd - create a new user or alter the default information for a new user.
72. userdel - used to delete a user account and all associated files.
73. usermod โ€“ used to edit or change any existing user account's properties.
74. vi is a text editor.
75. cat โ€“ displays the contents of a file.
76. tac โ€“ reverse output file contents.
77. more - show file contents one screen/page at a time.
78. less โ€“ identical to more, but with more features
79. tail โ€“ used to show the last few lines of a text file or piped data.
80. head - used to show the first few lines of a text file or piped data.
81. dmesg โ€“ displays the kernel ring's message buffer.
82. journalctl - Tused to view systemd, kernel and journal logs.
83. kill - terminates a process.
84. killall - sends a kill signal to all instances of a specific process.
85. sleep โ€“ pauses program execution for a given amount of time.
86. wait โ€“ suspend script execution until all background jobs have been completed.
87. nohup - short for no hang up is a command in Linux systems that keep processes running even after exiting the shell or terminal.
88. screen โ€“ keep a remote server session open. (It also functions as a full-screen window manager.)
89. tmux is a terminal multiplexer.
90. passwd โ€” Change the password of a user.
91. clear โ€“ clears the terminal's screen.
92. env - run a command in an altered environment.
88. screen โ€“ keep a remote server session open. (It also functions as a full-screen window manager.)
89. tmux is a terminal multiplexer.
90. passwd โ€” Change the password of a user.
91. clear โ€“ clears the terminal's screen.
92. env - run a command in an altered environment.
93. systemctl - used to control and manage systemd and services.
That's a wrap!

Thank you for taking your time to read our thread.

If you know of any other commands that I have missed, please leave them in the comments.

And be sure to rt, like and follow us (@linuxopsys) for more future Linux content.

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Linuxopsys

Linuxopsys Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @linuxopsys

Aug 5
11 dangerous Linux terminal commands every Linux user must be aware of (don't run).
1. Recursive deletion ๐Ÿ”๐Ÿ—‘๏ธ

This is one of the scariest commands. When you run this command, it deletes everything in the root directory forcibly and recursively. As a result, all of your directories and subdirectories will be deleted, and all of your data will be lost.
2. Implode hard drive ๐Ÿ•ณ๏ธ

This command will move all data to a special location in Linux known as the black hole, which is located in your system at /dev/null.
Read 20 tweets
Jul 31
Wildcards and character classes in Linux explained โ†“๐Ÿง
๐Ÿง What are wildcards?

Wildcards are characters or groups of characters that enable you to create a pattern for searching or matching text on strings, filenames, or directories. Wildcards are a cool shell feature that makes most Linux commands extremely powerful.
Using wildcards (also known as globbing) allows you to select filenames or directory names based on character patterns.
Read 16 tweets
Jul 29
Linux shell scripting basic - changing directory in shell scripts ๐Ÿงโ†“
You may want to run a shell script that changes your current working directory to another directory for convenience.
For instance, if you frequently visit your documents directory (~/Documents) and want to navigate there quickly, you can write a Bash script to do so.
Read 24 tweets
Jul 27
Linux absolute path and relative path names explained. A small and easy to follow thread ๐Ÿงโ†“
๐Ÿง Absolute Path

An absolute path name is one that starts at the root directory and works its way up the tree, branch by branch, until it reaches the desired directory or file.
Assume there is a directory on your system where you save personal files, install programs, and save documents.
The path name for the directory is /home/linuxopsys.
Read 17 tweets
Jul 26
70+ Linux networking commands with explanation ๐Ÿงโ†“
1. arp - manipulate the system ARP cache
2. aria2 โ€“ downloading just about everything. Torrents included.
3. arpwatch โ€“ Ethernet Activity Monitor.
5. bmon โ€“ bandwidth monitor and rate estimator.
6. bwm-ng โ€“ live network bandwidth monitor.
7. curl โ€“ transferring data from or to a server.
8. darkstat โ€“ captures network traffic, usage statistics.
9. dhclient โ€“ Dynamic Host Configuration Protocol Client.
10. dig โ€“ a flexible tool for interrogating DNS name servers.
Read 50 tweets
Jul 16
The Linux filesystem and directory structure explained ๐Ÿงโ†“
The Linux Directory Structure is a hierarchical organization system for Linux directories and files. This structure is defined by the Filesystem Hierarchy Standard (FHS)

However, the standard does not yet define some directories in Linux file systems.
If you're new to Linux or switching from Windows, the file system structure of the Linux operating system may appear strange and confusing. C: and other drive letters have been replaced by /.
Read 35 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(