Shell Tricks to Save Time in Linux

preview_player
Показать описание
In this video I show you some command line tricks to save you time at your linux shell. Some of the tricks I used in this video are cd .. to go back to parent directory, sudo !! to run the last command as sudo

₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿

Monero
45F2bNHVcRzXVBsvZ5giyvKGAgm6LFhMsjUUVPTEtdgJJ5SNyxzSNUmFSBR5qCCWLpjiUjYMkmZoX9b3cChNjvxR7kvh436

Bitcoin
3MMKHXPQrGHEsmdHaAGD59FWhKFGeUsAxV

Ethereum
0xeA4DA3F9BAb091Eb86921CA6E41712438f4E5079

Litecoin
MBfrxLJMuw26hbVi2MjCVDFkkExz8rYvUF

Dash
Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz

Zcash
t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr

Chainlink
0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14

Bitcoin Cash
qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp

Etherum Classic
0xeA641e59913960f578ad39A6B4d02051A5556BfC

USD Coin
0x0B045f743A693b225630862a3464B52fefE79FdB

and be sure to click that notification bell so you know when new videos are released.
Рекомендации по теме
Комментарии
Автор

4 am and watching shell tricks to save time is literal mood

ladyViviaen
Автор

Another time saver: Ctrl+L instead of typing clear every time.

ifrit
Автор

"touch cat"
I would personally alias this to "pet cat"

markusTegelane
Автор

Ah yes, it's 3;20 AM and I'm listening to this to fall asleep.

nyx
Автор

>cd .. to go back a folder
I knew that
>sudo !! to do the last command as sudo
WAIT WHAT

someguy
Автор

It scares me that I knew all of these already.

bobbbay
Автор

this is a very cool Christmas gift
appreciated

cattharsis
Автор

Your videos are awesome Kenny, always quality videos. I wonder how you even manage to upload that good of videos in such a small time intervals. I just wanted to thank you for what you are doing and have been doing, and for being in YT like a crown jewel.

dorukhan
Автор

I've been trying to get as much info on linux as i can since I plan in getting a computer and installing Linux to it and your videos have been a godsend with how much I've learned

Fish_Sticks
Автор

Damn, the ^text^correction thing is great, I'm a Linux noob and been using Manjaro for 3 months now and was totally unaware of that. Also recently found the !! thingy but didn't know it can cycle through the history like that. Thanks!

m_hrstv
Автор

First actually helpful bash tricks video!

nitsi
Автор

7:18 This kind of cleverness can get dangerous, though. What if it substitutes the wrong thing? Beyond a certain point, you would really like the option of confirming what it is going to do, before doing it.

Found a fix: do “shopt -s histverify”, then instead of immediately executing the substitution, it presents it to you in the readline buffer, so you can edit it before pressing Enter to execute the result.

lawrencedoliveiro
Автор

cd - is a great trick. Thanks man!
.
Another time saver is to use reverse-i-search to cycle through commands' history. Ctrl + r, then type any keyword from your command. Ctrl + r to continue the cycle backward, and Ctrl + b to exit.

dannyzuckerberg
Автор

Another way to keep track of previous directories is to use "pushd" and "popd".

For example, if you're in directoryA and you want to go to directoryB, but you need to remember directoryA, use "pushd directoryB"

To go back to directoryA, simply use "popd"

Seselix
Автор

This video will save me literally hours. Thank you!

hyperpug
Автор

To see all your commands, don't need to open a file, just type 'history' and if you look for a command in particular: 'history | grep commmand'.
To navigate inside a long line of command, bash knows emacs' short cuts.

zolaarczakle
Автор

Thank you for the viable info on bash tricks that gets me more stuck to linux. I'm one year old xubuntu user on a daily basis. Merry Christmas.

noelj
Автор

I love these kind of videos.
I did not know the !! One but for the most part I just use the up arrow key to traverse the history and make edits as needed.
And I use ctrl+r even more

GearAddict
Автор

Great video. Another thing I hate is cd../../../ etc. I just put a bunch of aliases: .. to go up one dir, ... to go up two dirs, etc. So two dots to go up. And then just add more individual dots to go up one extra. This is ultra useful. Need to go up three folders? "...." done!

BenderdickCumbersnatch
Автор

9:24 _and look, we got a nice little Stallman there_ Xd

dorukhan