control+R
in bash, it lets you quickly search for previously executed commands.
its very useful and makes things much quicker, i recommend you give it a try.
I use this constantly
i rely on this in my job. if i really need it, i’ll be using it often enough that it’ll always be in ^R distance :)
CTR + u will delete the whole command. I use that a lot so I don’t have to backspace. It’s saved me a ton of time
I just use control C, is there a difference other than whether the line shows up or not?
And then ctrl+y to paste it back and recover that text.
This is great for when you type in your root password incorrectly!
Related: Alt +
.
, to cycle through arguments used in previous commandsHow about ctrl+c to cancel and clear the command you are typing? It’s much easier because you only need 1 hand, and does not impact your shell’s history.
rsync
I use it to backup important work to an external drive.
qalc
I’ve recently started using
tmux
when starting a new SSH session to try to build the habit.deleted by creator
Neofetch
I just think it’s neat.
It’s been abandoned btw. People recommend to switch to alternatives. Fastfetch and hyfetch seem to be the best ones rn.
Though I can’t confirm as I wrote my own minimal fetch
ncdu
pv (Pipe Viewer) is a command line tool to view verbose information about data streamed/piped through it. The data can be of any source like files, block devices, network streams etc. It shows the amount of data passed through, time running, progress bar, percentage and the estimated completion time.
Getting cheatsheets via
curl cheat.sh/INSERT_COMMAND_HERE
No install necessary, Also, you can quickly search within the cheatsheets via
~
. For example if you copycurl cheat.sh/ls~find
will show all the examples ofls
that usefind
. If you remove~find
, then it shows all examples ofls
.I have a function in my bash alias for it (also piped into
more
for readability):function cht() { curl cheat.sh/"$1"?style=igor|more }
Not a command but bang expansions. For example
!?
is the args of last command useful for stuff likemkdir foo ; cd !?
https://www.redhat.com/sysadmin/bash-bang-commands learn these. you suck at using your computer if you don’t know them.
deleted by creator
atools
, which includesals
,aunpack
,apack
. so you can stop caring about the kind of archive and just unpack it. it also saves you from shit archives that have multiple files/dirs in their root.perl -e
/perl -lne
/ …units
bc
- a calculator that’s actually goodpass
- the only non-shit password store tool i’ve found so far. no gui, uses gpg and git to do the encrypting and storage/sharingalias lr='ls -lrth'
- so you can easily find the newest file, cos that’s frequently what you wantunip
- my script to look up things in the unicode dbfind -type f -exec xzgrep 're' {} +
- because xzgrep cant do -r
oh yeah, and for the shell readline, alt-b, alt-f, ctrl-w, ctrl-u, ctrl-k, ctrl-a, ctrl-e
Zoxide, dust, fd, rg, btm, tokei. So many newer Rust tools that are way better than the old stuff.
touch
😏I remember
touch