20 Lesser known useful Linux commands (with explanation + examples):
1. nl command
The nl command in linux stands for number lines. If you ever had a large text document and needed to add lines to it, the nl command is your best friend.
The nl command in linux stands for number lines. If you ever had a large text document and needed to add lines to it, the nl command is your best friend.
4. stat
In Linux, the stat command displays file or filesystem status information. The stat displays a wealth of information about the file passed as an argument.
In Linux, the stat command displays file or filesystem status information. The stat displays a wealth of information about the file passed as an argument.
7. last
When managing a multiuser system, you'll frequently need to know who, when, and from where people are logging in.
last is a command-line utility that displays information about system users' most recent login sessions.
When managing a multiuser system, you'll frequently need to know who, when, and from where people are logging in.
last is a command-line utility that displays information about system users' most recent login sessions.
8. exa
exa is another cool replacement for the venerable file-listing command-line program ls that comes with Unix and Linux operating systems, adding features and improving defaults. It uses colors to differentiate between file types and metadata.
exa is another cool replacement for the venerable file-listing command-line program ls that comes with Unix and Linux operating systems, adding features and improving defaults. It uses colors to differentiate between file types and metadata.
It is familiar with symlinks, extended attributes, and Git. It's also small, fast, and only has one binary.
Exa attempts to be a more feature-rich, user-friendly version of ls by deliberately making some decisions differently.
Exa attempts to be a more feature-rich, user-friendly version of ls by deliberately making some decisions differently.
<space> command
Every command you type in the terminal is saved in the history and can be retrieved using the history command.
Every command you type in the terminal is saved in the history and can be retrieved using the history command.
15. ^foor^bar
You can use the ^foor^bar command to edit the command you ran previously and execute it again. This is very useful if want to correcting typos or mistakes on previous commands:
You can use the ^foor^bar command to edit the command you ran previously and execute it again. This is very useful if want to correcting typos or mistakes on previous commands:
$ sodu mkdir demo
$ ^sodu^sudo
This will replace "sodu" with "sudo" and re-rerun the command.
$ ^sodu^sudo
This will replace "sodu" with "sudo" and re-rerun the command.
16. nohup
If you run the program in a terminal, it will be terminated as soon as your terminal session ends. To avoid this and keep the program running, use the nohup command, which stands for "no hangup."
If you run the program in a terminal, it will be terminated as soon as your terminal session ends. To avoid this and keep the program running, use the nohup command, which stands for "no hangup."
The nohup command also creates a file named nohup.out to store the command's output.
17. tldr
The TLDR (Too Long; Didn't Read) pages provides a summarized practical usage of Linux commands. They simplify man pages by providing practical examples.
The TLDR (Too Long; Didn't Read) pages provides a summarized practical usage of Linux commands. They simplify man pages by providing practical examples.
That's all! Thank you for getting this far. I hope you find this thread useful.
If you found this thread helpful
1. Toss us a follow for more daily threads on Linux, sysadmin, and DevOpsβ@linuxopsys
2. Like and RT the first tweet so that other Linux users can find it as well.
If you found this thread helpful
1. Toss us a follow for more daily threads on Linux, sysadmin, and DevOpsβ@linuxopsys
2. Like and RT the first tweet so that other Linux users can find it as well.
Loading suggestions...