$ fortune | rev
!ti deteled dna ,ti daer resu-repus eht tub ,liam dah uoY
The shuf command means that you can randomize the traces in a file. Right here’s a pattern file and the outcomes of shuffling its contents.
$ cat names
Invoice
Danny
Dorothy
Jim
Joanne
John
Marty
Nancy
Sandra
Stewart$ shuf names
Jim
Nancy
Joanne
Marty
Sandra
Dorothy
Stewart
Invoice
Danny
John
Every time you run shuf, the output ought to be completely different.
Whenever you simply want some random textual content for testing a script, these instructions might help you out.
6. Utilizing the watch command to observe adjustments
The watch command means that you can run a command repeatedly and look ahead to the output adjustments you may be anticipating to see. By default, it runs each 2 seconds, however you possibly can change the interval by utilizing the -n possibility. The command under makes use of the -d possibility to focus on adjustments within the command output.
$ watch -d free -m
Each 2.0s: free -m fedora: Fri Feb 14 15:52:23 2025whole used free shared buff/cache accessible
Mem: 3784 1121 819 135 1844 2190
Swap: 3783 77 3706
7. Utilizing the tree command to view listing contents in an user-friendly method
The tree command offers a file itemizing that shows directories and information in a tree-like show, providing you with a fast however helpful view of what’s inside some specific listing. Discover how the indentation makes the construction of the listing straightforward to grasp.
$ tree bin
|----- backup
|----- FindFiles
|----- NOTES
| |----- report_formats
| |----- assembly notes
|----- scripts
Wrap-up
Some instructions could make seeing what you’re in search of on the command line so much simpler. Simply don’t neglect to show the extra advanced instructions into aliases to make them simpler to make use of.
