
Saving Time At The Command Line DistroTube
video description
Date: 2022-03-30
Related videos
Comments and reviews: 6
dfnkt
I dig the -!!- thing but if I needed to repeat a long command prefixed with sudo I would hit the up arrow to restore the last command entered, hit CTRL + A to put the cursor at the beginning and type sudo . Your solution is a keystroke less (7 keys versus 8), you win the keyboard golf this time :) I use the aforementioned enough that I have insert mode bindings in vim for CTRL + A and CTRL+E to go to beginning / end of line
reply
I dig the -!!- thing but if I needed to repeat a long command prefixed with sudo I would hit the up arrow to restore the last command entered, hit CTRL + A to put the cursor at the beginning and type sudo . Your solution is a keystroke less (7 keys versus 8), you win the keyboard golf this time :) I use the aforementioned enough that I have insert mode bindings in vim for CTRL + A and CTRL+E to go to beginning / end of line
reply
Gianluca
I don't know if something's changed lately (since I've had my Arch install for over 2 years now), but Arch Linux does not use Zsh by default. It only uses Zsh in the live ISO. Once you reboot into your newly-installed system, it uses Bash by default :)
reply
I don't know if something's changed lately (since I've had my Arch install for over 2 years now), but Arch Linux does not use Zsh by default. It only uses Zsh in the live ISO. Once you reboot into your newly-installed system, it uses Bash by default :)
reply
Wietrzypach
When it comes to grep I like to use -grep -A3 -B3- so it will return the line containing the phrase and also three lines before and after that phrase, so I have a context in which given phrase is placed in the file
reply
When it comes to grep I like to use -grep -A3 -B3- so it will return the line containing the phrase and also three lines before and after that phrase, so I have a context in which given phrase is placed in the file
reply
Joseph
4:00 I usually press UP and then HOME and then type sudo. Just as fast IMO, but not every keyboard has a HOME key (for example, Raspberry Pi 400, any tenkeyless or mini keyboard)
reply
4:00 I usually press UP and then HOME and then type sudo. Just as fast IMO, but not every keyboard has a HOME key (for example, Raspberry Pi 400, any tenkeyless or mini keyboard)
reply
Ian
When you were doing vim and cat on the same file you can use:
!$
to get the argument from the previous command. eg.
cat my/file.txt
less !$
=> less my/file.txt
reply
When you were doing vim and cat on the same file you can use:
!$
to get the argument from the previous command. eg.
cat my/file.txt
less !$
=> less my/file.txt
reply
Dave
I still use DOS windows when working on Windows machines. On Linux, I do updates and installs with command line/ssh. Thanks for the video!
reply
I still use DOS windows when working on Windows machines. On Linux, I do updates and installs with command line/ssh. Thanks for the video!
reply
Add a review, comment
Other channel videos















