Neofetch
Get on with the times, install fastfetch ;)
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.
I use
atuin
(link) all the timedeleted by creator
Saving this thread for later, but I use rsync -a a lot.
Have you heard of our lord and saviour rclone?
I haven’t gone back to rsync in a long time.
I use it to mount cloud storage as network drives… I’ll have to look into your implication though!
sudo
Make me a sandwich.
LambdaRX is not in the sudoers file. This incident will be reported
Eh, guess I won’t get anything for christmas.
I went a little overboard and wrote a one-liner to accurately answer this question
history|cut -d " " -f 5|sort|uniq -c|sort -nr|head -5
Note:
history
displays like this for me20622 2023-02-18 16:41:23 ls
I don’t know if that’s because I setHISTTIMEFORMAT='%F %T '
in .bashrc, or if it’s like that for everyone. If it’s different for you change-f 5
to target the command. Use-f 5-7
to include flags and arguments.My top 5 (since last install)
2002 ls 1296 cd 455 hx 427 g 316 find
g
is an alias for gitui. When I include flags and arguments most of the top commands are aliases, often shortcuts to a project directory.Not to ramble, but after doing this I figured I should alias the longest, most-used commands (even aliasing
ls
tol
could have saved 2002 keystrokes :P) So I wrote another one-liner to check for available single characters to alias with:for c in a b c d e f g h i j k l m n o p q r s t u v w x y z; do [[ ! $(command -v $c) ]] && echo $c; done
In .bash_aliases I’ve added
alias b='hx ${HOME}/.bash_aliases'
to quickly edit aliases andalias r='source ${HOME}/.bashrc'
to reload them.deleted by creator
Helix?
Yup! Migrated from VSCodium; wanted to learn a modal editor but didn’t have the time or confidence to configure vim or neovim. It’s been my go-to editor for 2+ years now.
I’ve been using vi (just the basics) for ~4 years, I don’t think I could be arsed to pick up the keybindings the other way around lol. I’ve heard very good things about Helix, of course
As another longtime Vi user - I had a hell of a time & wound up switching back lol
I think for a lot of folks Helix would be intuitive. Vi has her hooks in me, though.
history -i
Holy shit, you’re a madman
deleted by creator
deleted by creator
sudo udevadm monitor
Figuring out which usb device went on holiday.
Wow, super useful command. Starring this comment
Seems like an appropriate place to share https://github.com/agarrharr/awesome-cli-apps
I’m a fan of ripgrep and lsd in particular.
Removed by mod
ll
df -h
du -sch
Ctrl+r
ll
Is an alias for
ls -al
yea?
I set mine to
ls -lAh
I have it as
ls -alFh
rsync
I use it to backup important work to an external drive.
ls
ls -ltrc
Show most recently modified files.
pushd and popd to change directory and go back when done there.
Even better when
cd
automatically invokespushd
.what’s your alias?
cd -
undoes the last cd. Not quite push/popd but still useful. Pro tip, works also: git checkout -Hell yeah. Every one of these threads makes me more inclined to read man pages
You should. These are the actually sources to learn.
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
And then ctrl+y to paste it back and recover that text.
Related: Alt +
.
, to cycle through arguments used in previous commandsThis is great for when you type in your root password incorrectly!
I just use control C, is there a difference other than whether the line shows up or not?
How 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.