Shell Tricks to Save Time in Linux

  Рет қаралды 43,954

Mental Outlaw

Mental Outlaw

Күн бұрын

Пікірлер: 268
@ladyViviaen
@ladyViviaen 3 жыл бұрын
4 am and watching shell tricks to save time is literal mood
@KingJellyfishII
@KingJellyfishII 3 жыл бұрын
0:30 here and I definitely need this
@ahmedanwar976
@ahmedanwar976 3 жыл бұрын
3am here :(
@richmen2206
@richmen2206 3 жыл бұрын
3am for me...
@newolku
@newolku 3 жыл бұрын
4 am 😎
@eyachakroun8266
@eyachakroun8266 3 жыл бұрын
It's 3:44 😢
@ifrit05
@ifrit05 3 жыл бұрын
Another time saver: Ctrl+L instead of typing clear every time.
@geronimo19611
@geronimo19611 3 жыл бұрын
and Ctrl+d instead ot "exit"
@l3g4cy88
@l3g4cy88 3 жыл бұрын
that only scrools down up to the point you dont see last commands
@N0zer0
@N0zer0 3 жыл бұрын
@@fred-2.7182 it is possible to use Ctrl+L in Bash vi-mode by pressing Esc first
@anneonyme6819
@anneonyme6819 3 жыл бұрын
Too late, it is now faster to type clear rather than Ctrl+L in my case
@gurdeepgss
@gurdeepgss 3 жыл бұрын
@@anneonyme6819 I have noticed something with Tmux, if you use clear : you cannot scroll back when in copy mode of tmux, But if you use Ctrl + L: you can scroll back. both 'clear' and 'Ctrl + L' clear the screen, but there is difference in scrolling behaviour.
@markusTegelane
@markusTegelane 3 жыл бұрын
"touch cat" I would personally alias this to "pet cat"
@johnnycochicken
@johnnycochicken 3 жыл бұрын
aww
@mythicalprayer1316
@mythicalprayer1316 3 жыл бұрын
man touch > balls
@nyx6614
@nyx6614 3 жыл бұрын
Ah yes, it's 3;20 AM and I'm listening to this to fall asleep.
@boytherius
@boytherius 3 жыл бұрын
glad im not the only one
@chiragshroff610
@chiragshroff610 3 жыл бұрын
@@boytherius lol same here
@PascalxSome
@PascalxSome 3 жыл бұрын
07;06AM no sleep, only the cli and me
@pear7828
@pear7828 3 жыл бұрын
..lol ..Learning ..On the toilet..,. . 🤔 but maybe that's too much sharing...🙄.... Oh well...
@Arctic740
@Arctic740 3 жыл бұрын
@@pear7828 why are you this way
@someguy5766
@someguy5766 3 жыл бұрын
>cd .. to go back a folder I knew that >sudo !! to do the last command as sudo WAIT WHAT
@luimu
@luimu 3 жыл бұрын
I just ctrl+a
@alkaupadhyay7650
@alkaupadhyay7650 3 жыл бұрын
I just use arrows
@w1keee
@w1keee 3 жыл бұрын
Or when you forget -rf on the rm command you just !! -rf
@FloFaber
@FloFaber 3 жыл бұрын
cd without anything will take you to your home folder.
@alemannicmark2986
@alemannicmark2986 3 жыл бұрын
Is !! zsh specific or something? Bash can't do anything with it. Or is there a alias to set?
@bobbbay9867
@bobbbay9867 3 жыл бұрын
It scares me that I knew all of these already.
@dannyzuckerberg8700
@dannyzuckerberg8700 3 жыл бұрын
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.
@Seselix
@Seselix 2 жыл бұрын
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"
@RedSntDK
@RedSntDK 3 ай бұрын
That's pretty clever. Apparently, and I've only just found out by searching around for this, but you can use "dirs -l to show the directories you've added to your pushd stack. And that's a clever way to mark directories you're in like ```pushd .``` then move to your new directory, and say you want to copy something to the old directory, you can do it like this: ```cp ./ded.jpg "$(dirs -l +0)"``` (assuming the directory you had put into the pushd stack was the only one and therefore entry/index 0). Definitely doing to take me some time to get used to, but might be very powerful indeed. EDIT: Instead of something as bulky as "$(dirs -l +0)" one can just use the simple ~0 in the given example, as that refers to index 0 of the directory stack. Much easier to do ```cp ./file ~0```.
@GearAddict90210
@GearAddict90210 10 ай бұрын
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
@m_hrstv
@m_hrstv 3 жыл бұрын
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!
@cattharsis
@cattharsis 3 жыл бұрын
this is a very cool Christmas gift appreciated
@tacokoneko
@tacokoneko 3 жыл бұрын
hijacking ur comment to say he should do video of reasonable depth/thoroughness on reverse shells ("accessing remote devices through NAT or other obstacle") using the applications nc, socat, stty, python/ruby/perl/php/bash, openssh or dropbear, and payload tools or execution methods like buffer overflow or library injection in programs that already happen to be running that can sometime s streamline this when you don't have time to install a bunch of extra crap just to manage remotely
@zolaarczakle
@zolaarczakle 3 жыл бұрын
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.
@Zack_MD
@Zack_MD 3 жыл бұрын
And Ctrl+r to search the history
@peterarbeitsloser7819
@peterarbeitsloser7819 3 жыл бұрын
Or vi mode
@9SMTM6
@9SMTM6 2 жыл бұрын
As I still didn't get around to focusing enough on vi(m) or emacs to memorize their commands, that's not super helpful. But MOST terminals allow me to navigate between words by just pressing shift while using the arrow keys, which gets me most of the way there.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 3 жыл бұрын
5:53 There is also a generalization of this. Whereas !«str» selects the last command beginning with «str», you can use !?«str»? to match the last command containing «str» somewhere in it. You can put spaces in «str», too.
@MA-748
@MA-748 3 жыл бұрын
You can also use Ctrl + l to clear the terminal instead of the clear command
@MrBananaBunches
@MrBananaBunches 3 жыл бұрын
Just found out that typing out "clear" actually clears the screen, while doing Ctrl+L just moves the prompt down and you can still scroll up to see what happened last. Could be useful, but I usually hate doing keyboard shortcuts with both of my hands (idk why lol), so I prefer to actually type out "clear" instead.
@DannyMexen9
@DannyMexen9 3 жыл бұрын
KZbinrs type clear so viewers know what's happening. Others display the keyboard shortcuts.
@jmchichstudio9145
@jmchichstudio9145 3 жыл бұрын
I've been using this ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4 for cutting downloaded videos. It saved me literal hours, rendering would take a lot of time Also you can use ` (not ') in order to run a command on the result of `command`. For example, ls `pwd` will be executed as ls /home/user CTRL+R is sometimes useful, too - it brings up the search in previous executed commands
@jmchichstudio9145
@jmchichstudio9145 3 жыл бұрын
Okay, there was a response about using $(...) instead of `...`, but I can't see it now. Thank you, stranger. You live, you learn
@lawrencedoliveiro9104
@lawrencedoliveiro9104 3 жыл бұрын
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.
@_thresh_
@_thresh_ 7 ай бұрын
It would really suck if some hacker guy modified you history to have sudo rm -rf /* exactly where the command you need is, so that would be helpful in that case
@dorukhan8707
@dorukhan8707 3 жыл бұрын
9:24 _and look, we got a nice little Stallman there_ Xd
@Fish_Sticks
@Fish_Sticks 2 жыл бұрын
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
@marcosmoreira4277
@marcosmoreira4277 3 жыл бұрын
About the history I prefer to use arrow keys and then CTRL+A to prepend sudo, if I need to change an old command I search it with CTRL+R, and that is it. I use almost everything on this video and a little more
@cristopherandes4084
@cristopherandes4084 3 жыл бұрын
a great trick that i love also is to use !$ for the last string of the last command, you can either recicle arguments from the last command with !:2 example: $ touch meme mental outlaw youtube $ vim !:3 vim !:3 = vim outlaw (and is also a kawaii face)
@mbehboodian
@mbehboodian 3 жыл бұрын
i think chaining and automation is more like a reason to use cli, instead of gui, rather than stability and consistency across distros.
@gp-qc8oo
@gp-qc8oo 3 жыл бұрын
Another tip: To exit vim: instead of :wq, use Shift+ZZ
@RedSntDK
@RedSntDK 3 ай бұрын
I did learn some of those tricks not too long ago. like ```history | grep -i vim``` for example, and if the command you were looking for had the number 504 then do like ```!504:p``` (or run it without the :p) to print it, and using Kenny's trick there you could do ```^updoot^date``` to correct a command so it fit with what you need. It has become a handy tool. A function I personally like, growing up with DOS is ```list(){ ls -hAvog --color --group-directories-first $*|less -FRi;}``` (not able to make it an alias because of the $*) - less of a cool trick, just felt like sharing since I'm discovering how powerful the CLI is.
@Delzak1
@Delzak1 3 жыл бұрын
I watched this in MPV originally, but that ! trick has already come in useful so commenting for the algorithm.
@kartikeykushwah3926
@kartikeykushwah3926 3 жыл бұрын
Learned lots of things. I used to do Ctrl+a for adding sudo before.
@dorukhan8707
@dorukhan8707 3 жыл бұрын
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.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 3 жыл бұрын
6:29 The default in readline is to use Emacs key bindings. So rather than switching to Vim key bindings, you can use Alt-B to move back a word, or Alt-F to move forward a word. Unfortunately this doesn’t work so well with GNOME terminal, because Alt-F there brings up the File menu. Other terminal apps don’t seem to have this problem.
@DandiYuan
@DandiYuan 9 ай бұрын
same with vim, alt key is basically escape key combine with motion you want to perform
@W1ldTangent
@W1ldTangent 3 жыл бұрын
Ctrl+A: Move cursor to beginning of line. Ctrl+U: Delete all text to left of cursor. Even my boss didn't know that one haha. Particularly useful when entering a password in terminal and you know you fudged a character, just ctrl+u and start over.
@atimholt
@atimholt 3 жыл бұрын
Apparently, the default mappings are emacs-style. I'm a Vim user though, so I use the Vim mappings (set -o vi). The (exact) equivalents (composed from how Vi's composable commands work) are `I` and `c0`, respectively.
@censoredterminalautism4073
@censoredterminalautism4073 3 жыл бұрын
It's pretty amazing how painful it is to go back to GUIs sometimes. Having to figure out a complicated user interface to do something that you could easily do in the shell is infuriating. Very common with installers. Installing a lot of distributions just made me wish I could use the shell like in Arch or Gentoo or anything else like that.
@noelj62
@noelj62 3 жыл бұрын
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.
@oalfodr
@oalfodr 3 жыл бұрын
Oh yeah. It's Christmas today. I was wandering why youtube is lacking new content today.
@alkeryn1700
@alkeryn1700 3 жыл бұрын
one of my favorite is "fc" allows you to edit last command in editor and then run it.
@TaiGroot
@TaiGroot 3 жыл бұрын
Ctrl+x, ctrl+e
@atimholt
@atimholt 3 жыл бұрын
With vim mappings in your command line (`set -o vi`), you can hit ‘v’ in “normal” mode to edit what you've typed so far in actual Vim. Saving and quitting from Vim (`ZZ`) executes.
@Grapeshot78
@Grapeshot78 2 ай бұрын
This video is pure gold
@ichikoarchives7713
@ichikoarchives7713 3 жыл бұрын
Also, !$ is a godsend. Ex. > chmod +x file.sh > sh $! (runs "sh file.sh) It takes the last word of the previous command. > touch file1 file2 > rm !$ (file2 removed)
@RedSntDK
@RedSntDK 3 ай бұрын
This is why I do a regex tutorial weekly, just so I don't forget for powerful it is
@nitsi9333
@nitsi9333 3 жыл бұрын
First actually helpful bash tricks video!
@Daniel-yp6mm
@Daniel-yp6mm 3 жыл бұрын
arrows are also useful for scrolling up and down previous commands
@keshavvinayakjha2070
@keshavvinayakjha2070 3 жыл бұрын
Another common but useful tip : making aliases
@hyperpug2898
@hyperpug2898 3 жыл бұрын
This video will save me literally hours. Thank you!
@arvininer
@arvininer 2 жыл бұрын
why do i love this thumbnail
@ercole1488
@ercole1488 3 жыл бұрын
10:10 you can also use `popd` and `pushd`!
@atimholt
@atimholt 3 жыл бұрын
I found out that `pushd` with no argument cycles through your built-up stack. Powershell actually has named stacks.
@teflonradiator7005
@teflonradiator7005 2 жыл бұрын
Ctrl+r opens reverse search is better than !! actually shows you want commands you're running. I see problems with using !word because if you had a more recent one which you don't want. That is why I prefer ctrl+r
@ropersonline
@ropersonline 3 жыл бұрын
2:20: Don't use ^Z to abort, use ^C. Or if you must use ^Z (to suspend), run fg (to resume) when you're done.
@valrina
@valrina 2 жыл бұрын
"Let's take a look at my bash history" words never to be heard spoken by anyone.
@prcr
@prcr 3 жыл бұрын
I leaned a couple of tricks (the caret and thr last visited dir). Great content, thanks!
@PCNERD19
@PCNERD19 3 жыл бұрын
*neofetch shows pacman packages on gentoo* me: wait
@airdog46x
@airdog46x 3 жыл бұрын
He made a vid abt installing pacman on gentoo
@monsieur_ballerine
@monsieur_ballerine 3 жыл бұрын
Whoa, I had no idea about these. ! is amazing , as well as ^^. Thanks! Greetings from Serbia. :)
@BurgerKingNationalist
@BurgerKingNationalist 3 жыл бұрын
This is pretty dope. Marry Christmas brother.
@elEd0
@elEd0 3 жыл бұрын
I had no idea about "cd -", pretty cool stuff
@bpaultas3167
@bpaultas3167 3 жыл бұрын
ctrl+l (thats lowercase L) clears the screen like the clear command instead of !v you can do ctrl+r then v instead of cd ~ you can just do cd
@ChrisCox-wv7oo
@ChrisCox-wv7oo 7 ай бұрын
Some really nice tips, thanks!
@atimholt
@atimholt 3 жыл бұрын
I've customized my prompt to show the current command's (future) history number, e.g. `[!23] >`. I've done the same thing in powershell, which uses the alias ‘r’ instead of a bang, e.g. `[r 23] >`.
@jarilo8639
@jarilo8639 3 жыл бұрын
Ctrl-L is a shortcut to clear the terminal. No need to type clear every time
@mrfluffy9273
@mrfluffy9273 3 жыл бұрын
Depends on the terminal but yes by default URXVT that will work.
@ChannelOfElveman
@ChannelOfElveman 3 жыл бұрын
Really useful video, thanks! I really enjoy using the utility called The Fuck to fix misspelled commands, but now I know the straightforward way of doing this
@simponic
@simponic 3 жыл бұрын
Merry christmas Kenny!
@iProgramInCpp
@iProgramInCpp 3 жыл бұрын
!! is slower than which does the same thing, but it's useful if you dont have the Up-Enter combo available
@calleha01
@calleha01 3 жыл бұрын
or ctrl-p ctrl+j if you don't wanna move your right hand
@012345678952752
@012345678952752 2 жыл бұрын
Ctrl+a Ctrl+k if you want to delete the command in terminal. Saves me lots of time.
@developerpranav
@developerpranav 3 жыл бұрын
Thanks those were some helpful tips. Merry Christmas btw :D
@starspritechippy
@starspritechippy 3 жыл бұрын
The whole ^ thing is new to me, good thing to know. Now I'll just have to remember to actually make use of these time savers :p
@Keyshooter
@Keyshooter 3 жыл бұрын
sure i will, this tricks actually are heavy useful
@joeyreinhart8820
@joeyreinhart8820 3 жыл бұрын
Please do a full pacman guide. I've only used Debian and Ubuntu based distros and only know apt-get, but I'm switching to Manjaro.
@tsukiiiiiii
@tsukiiiiiii 3 жыл бұрын
Luckily, ArchWiki already have a page for the pacman, so maybe he won't need to make a video about it!
@DemonDescent666
@DemonDescent666 3 жыл бұрын
$_ will give you whatever the last argument of the previous command was, i find it really useful for going into a directory i just moved or copied to or going back and forth mv some/file other/dir cd $_ puts you at dir
@DemonDescent666
@DemonDescent666 3 жыл бұрын
​@ali b Ah, that sounds pretty handy actually but it unfortunately doesn't seem to work with zsh's vi mode enabled since alt plus any key runs that key in vi's normal mode
@tacokoneko
@tacokoneko 3 жыл бұрын
u should do video of reasonable depth/thoroughness on reverse shells ("accessing remote devices through NAT or other obstacle") using the applications nc, socat, stty, python/ruby/perl/php/bash, openssh or dropbear, and payload tools or execution methods like buffer overflow or library injection in programs that already happen to be running that can sometime s streamline this when you don't have time to install a bunch of extra crap just to manage remotely
@michaelpoliakov6040
@michaelpoliakov6040 3 жыл бұрын
Merry Christmas man
@conguchu8275
@conguchu8275 3 жыл бұрын
another trick: if you want to put the last argument of you last command, use !$. Example: mkdir test cd !$
@antoninjacob2232
@antoninjacob2232 3 жыл бұрын
Also ALT + . types for you the last argument of previous command! (Do it n times to go back n times)
@tuskiomisham
@tuskiomisham 3 жыл бұрын
Hey! I posted a suggestion on how to become a bash wizard! This is it! Thank you!
@sharkie115
@sharkie115 3 жыл бұрын
You forgot Ctrl-R. It's even bigger superpower ;)
@ognotapussyslayer5917
@ognotapussyslayer5917 3 жыл бұрын
One of the biggest things that I dislike about the command line is that when selecting all text with CTRL+A and then hitting the left arrow key, it doesn't actually bring you to the beginning, just one letter to the left of the end of whatever you typed in there. I have a muscle memory built up for this for other things, but unfortunately it doesn't transfer over to the terminal, otherwise I'd be able to add in sudo to an already typed command pretty fast without having to learn anything new. Oh well.
@gordonmaxwell3998
@gordonmaxwell3998 3 жыл бұрын
I miss linux so fucking much but I need windows for university! I honestly think Gentoo is the best operating system ever made.
@eqanio
@eqanio 3 жыл бұрын
Same here dual booted windows, using windows majorly for the Adobe Suite, MASM(Its the part of our assembley course) rest everything can be done smoothly and efficiently on linux
@DefinitelyNotAMachineCultist
@DefinitelyNotAMachineCultist 3 жыл бұрын
WSl2 (Windows Subsystem for Linux) might help you cope on Windows. You can get lesser known distros running without issues in addition to the popular ones, and systemd support can be enabled with a few tweaks. GPU support still needs an 'insider'/preview build IIRC. VcXsrv and PulseAudio server on Windows can route GUI apps, desktop environments and audio if needed. Also, what exactly is so appealing about Gentoo specifically? What makes it 'more' configurable/extensible than other minimalist distros like say... Arch, Void, etc. I was planning to install NixOS on my next machine since it handles package & dependency management in a better way than most distros for me. Not being rhetorical since I'm only vaguely familiar with Gentoo. I got put off by the idea of having to wait for compilation as part of the default package installation method. Would build times be an issue on a modern 32 GB/hexa-core machine?
@gordonmaxwell3998
@gordonmaxwell3998 3 жыл бұрын
@@DefinitelyNotAMachineCultist no they probably wouldnt
@justanotheryoutuber739
@justanotheryoutuber739 3 жыл бұрын
using ssh configs in ~/.ssh/config is one of the best timesavers
@slonkazoid
@slonkazoid 3 жыл бұрын
I k n o w. Not using ssh config + publickey authenication is just dumb
@LedoCool1
@LedoCool1 2 жыл бұрын
--updoot I never knew I need this flag. Now I know.
@pazg1234
@pazg1234 3 жыл бұрын
Thanks, Useful video!
@tonnylins
@tonnylins 3 жыл бұрын
Thank you man, very cool!
@tonnylins
@tonnylins 3 жыл бұрын
In vim, we use the . (dot) to run the last command, I was looking for a bash equivalent. Where have you found these gems?
@rmfsho
@rmfsho 3 жыл бұрын
alias goodbye="sudo rm -rf /*" is my favourite
@Jupiter__001_
@Jupiter__001_ 3 жыл бұрын
You forgot the "--no-preserve-root"
@rmfsho
@rmfsho 3 жыл бұрын
@@Jupiter__001_ yeah i know
@ianmcgaunn7505
@ianmcgaunn7505 3 жыл бұрын
liked for stallman meme
@archie9500
@archie9500 3 жыл бұрын
Damn, that's awesome, didn't know these. Thanks!
@yowut8075
@yowut8075 3 жыл бұрын
Here's a time saving command. poweroff
@oliverbell5632
@oliverbell5632 3 жыл бұрын
Thanks man, Great Stuff
@Diamondketo
@Diamondketo 3 жыл бұрын
Ctrl+R can basically replace all those ! bash history tricks. I'd avoid any ! tricks because the command is not printed out in front of you. Imagine rm -rf . was one of them and you just forgot.
@Mantas002lt
@Mantas002lt 3 жыл бұрын
Watching this at 1 AM, what can you do with linux on? Do you just rice and install packages all day?
@forloop7713
@forloop7713 3 жыл бұрын
More channels like this
@gachikuku
@gachikuku 2 жыл бұрын
Enable vim keys in terminal: add *set -o vi* to .bashrc
@r4spb3rryAmy
@r4spb3rryAmy 3 жыл бұрын
sudo !! = 7keypresses [up][pos1]sudo = 7 keypresses (which is what i do usually)
@qlum
@qlum 3 жыл бұрын
acutally it's more on US because ! is typed Shift+1
@r4spb3rryAmy
@r4spb3rryAmy 3 жыл бұрын
@@qlum same on eu(de/German) so it's actually 9 keypresses #unexpected and didn't calculate that in; ngl
@LinuxPlayer9
@LinuxPlayer9 3 жыл бұрын
Merry Christmas 🎄
@marcovirtual
@marcovirtual 3 жыл бұрын
Sometimes I sleep to mental outlaw asmr like videos
@TheJobCompany
@TheJobCompany 3 жыл бұрын
Instead of doing: touch somefile ^touch^file You can just as well: touch somefile file !$ Because !$ expands to the arguments of the last command
@prateekkarn9277
@prateekkarn9277 3 жыл бұрын
From your thumbnail I first read, how to save lime while using linux
@jcwdenton
@jcwdenton 3 жыл бұрын
Sweet mother of God. Thats nice
@SpartanG007
@SpartanG007 3 жыл бұрын
thanks for the tips
@eldarlrd
@eldarlrd 3 жыл бұрын
Thank you
@jjj8227
@jjj8227 3 жыл бұрын
Merry Christmas fren
@nyume815
@nyume815 3 жыл бұрын
finally good shit
@craterface12
@craterface12 3 жыл бұрын
Amazing video
@johnlark4700
@johnlark4700 3 жыл бұрын
thanks a lot kenny!!! :)
@gurdeepgss
@gurdeepgss 3 жыл бұрын
did you miss 'Ctrl + R' : history search
@qlum
@qlum 3 жыл бұрын
Interestingly I never used any of these. To be fair as far as time saves go, instead of typing "sudo !!" you can just arrow up > home and type "sudo " which on US keyboard layout requires less keystrokes. As for moving between words, you can also use ctrl+arrow left /right, this works pretty much everywhere outside of vim. I use it a lot in general from typing youtube comments to shell.
@mr.atomictitan9938
@mr.atomictitan9938 4 ай бұрын
What the command to open a pdf? Is it the same with jpg using the sxiv command?
@gabrielcoronelcascante9111
@gabrielcoronelcascante9111 3 жыл бұрын
How do I install 'clear'?
@tsukiiiiiii
@tsukiiiiiii 3 жыл бұрын
The 'clear' command is from ncurses. So you will need to install it.
@joshpetit8298
@joshpetit8298 3 жыл бұрын
Is there a way to expand a command when referencing it with `!` ?
@gurdeepgss
@gurdeepgss 3 жыл бұрын
'!'
@joshpetit8298
@joshpetit8298 3 жыл бұрын
@@gurdeepgss literally amazing, thanks
@Calajese
@Calajese 3 жыл бұрын
Best thing is 'ctrl d' to close the terminal session, I have wasted so much time typing 'exit' all the time
@diracspace5842
@diracspace5842 3 жыл бұрын
Or 'ctrl l' to clear screen
@Calajese
@Calajese 3 жыл бұрын
'ctrl u' for just the line aswell
@diracspace5842
@diracspace5842 3 жыл бұрын
@@Calajese Ooohh shit, didn't know that one
@SimGunther
@SimGunther 3 жыл бұрын
@@Calajese ctrl + k cuts everything ahead of the cursor, ctrl + u cuts everything before the cursor, and ctrl + y pastes that cut content to the current line from the cursor position
@tsukiiiiiii
@tsukiiiiiii 3 жыл бұрын
Well, I found that `Ctrl+D` means EOF. So not just the shell, you can quit every CLI applications using that key shortcut, except the crashed.
Command Line Tricks That Make Me the Coolest Guy in the Office
11:36
Mental Outlaw
Рет қаралды 104 М.
Linux is Too Hard - A Solution!
13:05
Mental Outlaw
Рет қаралды 307 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 76 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,9 МЛН
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 259 М.
Xargs Explained
8:53
TomNomNom
Рет қаралды 46 М.
Why Linux is better for (most) developers!
14:59
The Linux Experiment
Рет қаралды 480 М.
Save Time on the Command Line With Aliases
18:43
Mental Outlaw
Рет қаралды 18 М.
zoxide has forever improved the way I navigate in the terminal.
9:53
Dreams of Autonomy
Рет қаралды 475 М.
Demystifying "find" and "find -exec" ...Lil' Linux Lesson!
8:12
Veronica Explains
Рет қаралды 52 М.
The Unreasonable Effectiveness of Linux Workstations
12:47
No Boilerplate
Рет қаралды 646 М.
Do This Before Putting Your Files in the Cloud
12:56
Mental Outlaw
Рет қаралды 169 М.
Stop using APT
9:56
Chris Titus Tech
Рет қаралды 539 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 76 МЛН