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
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 | exploring visually |
ncdu to work out where all the storage space went
rm -rf /*
Makes all of your problems go away!
Crunchbits Technical Support, Technical Writer, and Sales
Contact me at: +1 (509) 606-3569 or [email protected]
tldr <command>
like an easy to read manpage
https://duck.com (aff)
https://ecosia.org (aff) Plant trees from home.
"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
https://github.com/nvbn/thefuck
Ympker's VPN LTD Comparison, Uptime.is, Ympker's GitHub.
ps -C sshd o user,pid,comm,lstart
as alternative towho
You 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
Crunchbits Technical Support, Technical Writer, and Sales
Contact me at: +1 (509) 606-3569 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.
Filen.io - use this link to signup and we both get extra 10GB free.
https://filen.io/r/4d472d5cdb57f6663621a251065e0b51
*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 | less
if 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 | Bobr
First time I knew I could do this , most useful techniques I ever see.
Action and Reaction in history