VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Saving Time At The Command Line DistroTube

Saving Time At The Command Line DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Saving Time At The Command Line DistroTube Today I am going to share a few basic command line tips for increasing your speed in the terminal. - history - !command - sudo !! - CTRL+R (for searching) - command one; command two - command one && command two - less /path/to/filename - cat filename - grep search_string - grep search_string filename
Date: 2022-03-30

Comments and reviews: 6


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 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

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

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

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

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