What are some useful commands that you discovered or learnt on the terminal?
as for me, it has been,
history | grep searchTerm
ctrl+a and ctrl+e move to the beginning or end of the line.
also, installing fzf was a massive productivity booster while doing things like ctrl+r (https://www.youtube.com/watch?v=qgG5Jhi_Els)
Update:
I 'll use the comments below to write a summary article here, these might be more useful than random commands on the web as these are likely heavily used by the community here.
search through history:
history | grep searchTerm
Install fzf to introduce partial/fuzzy search for history, files etc.
ctrl+a and ctrl+e move to the beginning or end of the line.
ctrl+LEFT|RIGHT arrow to jump words
CTRL+L clear screen
TAB for autocomplete
fdupes -Sr . FDUPES is a program for identifying duplicate files residing
within specified directories.
jdupes a faster fdupes
ncdu to work out where all the storage space went
tldr <command> an easy to read manpage
last reboot Shows reboot history
findmnt -l list all mounts
iftop realtime bandwidth monitoring
iostat -m 10 report to better balance the input/output load between physical disks
ss -tupan socket statistics.
scp localFilePath user@remote:/remote/file/path remote file transfer.
nload - shows per interface network usage live on a graph on your terminal.
Cool Stuff:
telnet 2001:7b8:666:ffff::1:42
Won't tell you what it is, but it is safe.
ani-cli animename episode
watch anime on the terminal
apt-get install sl sl
cures bad habit of mistyping ls
Combinations:
zfs send -w tank/dana@snap1 | ssh host2 zfs recv newtank/dana
ZFS send and recv.
du -k ./* | sort -nr | cut -f2 | xargs -d '\n' du -sh | less
useful for debugging diskspace
ls -a; uptime; exit
ps -C sshd o user,pid,comm,lstart as alternative to who
On a tmux session, open multiple panes, then do this:
Ctrl+B, Shift+;
Then type: setw sync on All panes will now type the same thing
type setw sync off to turn it off again.
*sh aliases: https://tldp.org/LDP/abs/html/aliases.html
external Tools:
https://doublecmd.sourceforge.io/
https://github.com/junegunn/fzf
https://github.com/nvbn/thefuck - auto corrects last command
https://github.com/kellyjonbrazil/jc - terminal output as json
http://www.figlet.org/ - text to ascii
https://books.goalkicker.com/BashBook/ - there are other good books there
Contributors: @jperkins @typicalGta @xleet @ralf @CamoYoshi @Neoon @ehab @legendary @hornet @shallow @Ympker @Encoders @iansss @Mumbly @msatt @cold @Calin @g4m3r @havoc @vyas @TheDP
Thanks for all the contributions ![]()
My Personal Blog | Currently Building LoadMyCode

Comments
CTRL+L
"The imitator dooms himself to hopeless mediocrity." — Ralph Waldo Emerson
i never knew about fzf only from you. Thanks for that.
massive productivity booster : doublecmd https://doublecmd.sourceforge.io/
rm -rf
I learned it the hard way.
UpCloud free $25 through this aff link - Akamai, DigitalOcean and Vultr alternative, multiple location, IPv6.
Cut down requirement for storage for my “Educational Videos” nearly by a third.
blog archives
ncdu to work out where all the storage space went
rm -rf /*
Makes all of your problems go away!
Synteq Technical Support, Technical Writer.
Contact me at: +1 (307) 428 8111 or [email protected]
tldr <command>like an easy to read manpage
SEO Software
Cheap SSD Hosting
Web Scraping API
https://ecosia.org Plant trees from your keyboard.
"If you are not paying for a product then you are the product."
apt-get install sl
sl
damn! did not expect that 🤣🤣
My Personal Blog | Currently Building LoadMyCode
ls -a; uptime; exit
Shows reboot history
Get your FREE VPS if you develop Open Source software
https://github.com/nvbn/thefuck
Ympker's VPN LTD Comparison, Uptime.is, Ympker's GitHub.
ps -C sshd o user,pid,comm,lstartas alternative towhoYou may also want to try jdupes, it's an order of magnitude faster
too many to list, get'em here https://books.goalkicker.com/BashBook/
Fuck this 24/7 internet spew of trivia and celebrity bullshit.
Don't forget the magic word sudo
Action and Reaction in history
Running on root already
Synteq Technical Support, Technical Writer.
Contact me at: +1 (307) 428 8111 or [email protected]
Like a real man should.
If you watch anime, there's
ani-cli animename episode@Nekki next time you rewatch JoJo's
Ympker's VPN LTD Comparison, Uptime.is, Ympker's GitHub.
I will not be tempted 🤣🤣
My Personal Blog | Currently Building LoadMyCode
The website has some really good books there
My Personal Blog | Currently Building LoadMyCode
Is this how this meme was born?
Contribute your idling VPS/dedi (link), Android (link) or iOS (link) devices to medical research
When I saw this thread, I was sure rm -rf is the first answer. Not this time.
Zmw nb hlfo uiln lfg gszg hszwld gszg orvh uolzgrmt lm gsv uolli
Hszoo yv orugvw—mvevinliv!
*sh aliases
ls -1 | sed -e 's/.flac$//'
findmnt -l
ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA-ORA!
WWWWWWWWWWWRRRRRREEEEEEEEEEEEEEEEEEEEEEEEEEE!
This beauty made my life a lot easier when it comes to disk space debug:
du -k ./* | sort -nr | cut -f2 | xargs -d '\n' du -sh | lessif you want json output of commands then this is sooo useful
https://github.com/kellyjonbrazil/jc
tab for autocomplete.
Free NAT KVM | Free NAT LXC
First time I knew I could do this , most useful techniques I ever see.
Action and Reaction in history