How to move FAST in the Linux Terminal
Вставка
- Опубліковано 25 чер 2024
- To help support me, check out Kite! Kite is a coding assistant that helps you faster, on any IDE offer smart completions and documentation. www.kite.com/get-kite/?... (disclaimer, affiliate link)
For more content, subscribe on Twitch! / johnhammond010
If you would like to support me, please like, comment & subscribe, and check me out on Patreon: / johnhammond010
PayPal: paypal.me/johnhammond010
E-mail: johnhammond010@gmail.com
Discord: johnhammond.org/discord
Twitter: / _johnhammond
GitHub: github.com/JohnHammond
Linux User: types `ls` out of nowhere just to feel relaxed
... Oh shit, that's me
Are you spying on me?
First thing I do after opening a terminal
@@jb_lofi same
@@hydropage2855 I do this all the time ong
John:Delete a line with ctrl + u
Me: oh wow that is amaz^c
clear
instead of writing "clear" just hit ctrl + L
HI EVERYBODY IF YOUR WATCHING JOHN HAMMOND I APPLAUD YOU. GEIST453 VERIFIES THAT JOHN IS CERTIFIED LEGIT CYBER SECURITY PROFESSIONAL.
Just press ctrl+L
You the real mvp
@@lucEast this is also how you fix a terminal that goes screwy and clear doesnt fix it
OMG!!! I just realised I have been watching your videos for Months and I only decided to Subscribe today. Thank you for the awesome videos and lessons you continue to provide. It's amazing how much you provide. Thank you John Hammond and continue the Awesome work.
This is awesome! Thank you so much! I have used terminator at some basic level before (didn't really put the time and customisation into it). I'm now a tmux user, but I already have a feeling that you have just converted me with this video lol. You're the man, John!
This tutorial is so helpful and kind. Thanks for making those
Simple things making life easier. Thanks John! Always appreciate the content.
I really like recent videos that you have been uploading. Super useful and interesting to watch.
Ctrl+R allows you to search history, Ctrl+S lets you go in the opposite direction
Me (an idiot): wait I can search through my future commands??
no. ctrl+s freezes the terminal ( turns on scroll lock ) hit ctrl+q to unfreeze.
@@90hijacked It's an stty thing, try running stty -ixon to disable terminal output freeze.
You can hack time? Share code plz.
@@jamesoneill2606 rm / -rf to go back to before you installed linux
@@WhateverNullPointer You scared the crap out of me there, that comment so old, I thought someone had hacked my fb 😳
This guy made my day with only one video. I learned many things. I am a tmux user, but terminator has his own strength. I think knowing both will be a big profit. Thanks for sharing your knowledge!
This channel is an absolute goldmine, thanks !
i really like this video style! plz bring more of it!
ctrl+a to go to the beginning of a line
ctrl+e to go to the end
ctrl+w to delete a word to the left of the cursor
ctrl+z to background a process
fg-enter to bring it back to the foreground
🤘🤠
edit: oh and !! to rerun the last entered command
so if you needed to sudo a command but forgot to, instead of retyping it, or pressing up then ctrl+a and typing sudo, you can just sudo !!
Only recently found out that you can also use !:3 for example to insert the last $3 (third argument) somewhere.
Like
ls -la foo/bar/blah/somethingsomething
rm -rf !:2
ctrl+arrow (left/right) to jump a word instead of a char
oh he just said it in the video lol
regarding your edit: rather than pressing up and editing your command you could simply type "sudo !!" which inserts the word sudo in front of you last command and runs it
This is awesome take! I can feel validated with all my choices that I've made durin these years sitting in front of the computer.
I was very happy you mentioned home and end. Thanks.
Liked this m8. I'm sure I won't use terminator but I love when someone shows that things can be done in a different way than you're accustomed. It's all about options and you're a great content creator, thank you!
Thanks man, big fan here. Advent of Cyber was awesome btw, love your content!
Love this John! Super helpful tips
I really loved your video!!! It blew my mind and I loved it because terminator is a such amazing tool!!! Thank you for share it!
Great and useful video, thanks! I am curious if you could do a similar one to show what tools you use daily and where do you place them. John you do amazing job! Cheers!
Thanks! some handy tips there, had no idea all that stuff was there to be found
okay, i buy it! 😀😀 Thanks for all your good Stuff! ❤❤
Thanks for this great video John🥳
Cool workflow! Areas for improvement: tiling wm, vim keybindings for navigation, vimium in browser for keyboard driven browser navigation (especially for navigating to previous page), and auto-completing shell (i.e. zsh or fish) :)
My thought as well! Seems like he trying to make a tiling window
Manager inside the terminal, why just not go all the way. Oh, and alacrity.
i need this in my life
who doesn't
@@b0t_val me
@@b0t_val me
@@b0t_val me
Thanks for the video!
Nice Video, your videos are so helpful and amazing !!!
Left CTRL+A Left CTRL+E are much better than Home and End keys because you can always use just your left hand on all keyboards. Great video! Just something cool to know.
its also used in networking OSes, such as ciscos, juniper, etc
@@rohanofelvenpower5566 Because it works in all terminals and is a relic from before home and end keys existed.
Omgggggg dude you are f..kng awesome....... love your videos
Terminator is the best thing I have never head of. Thank you!
I didn't know about Ctrl+R and Ctrl+U, those are couple of real time savers there, thanks!
I genuinely need this
Thanks John!
Very informative video, thank you!
The mentioned muscle memory is my main storage for shortcuts.
"You can hit CTRL- ..." - °oO(What?!?) - "... to " - °oO(Ah, THAT one.)
And then it took me five more seconds to imagine the keyboard and what I use to press ... it's been exactly that.
Another great video dude!
This is THE video, I was looking for. 😅
sir you are incredible thank you so much sir for make our work easier
Man, I've been using tmux for a while now because that's what THM pushes on a couple tutorial rooms and I am SO glad your video made it to me. Been using Terminator only a day and I just can't understand why anyone would prefer tmux but maybe I'm missing something :/
Great video! Thank you sir!
Are you spying on my mind?
This video is all abt wat I was thinking since few days after regularly watching ur videos and walkthroughs.
great video! worthy of saving as a cheetsheet. Have just downloaded the terminator and played around. It's powerful and highly customizable tool. Also i'd like to recommend to you guys the guake, which i'm currently sticking with, and, which summons the terminal on the top of every window with only one key stroke, without blocking your current work. It's also a highly customizable shell application (am i right with the concept?) written in python.
And i've just learnt not only that alt + backspace deletes one word before the cursor, the ctrl + del actually deletes one word after the cursor. So i don't need to remember the emacs-style short cuts which (to me) sometimes makes completley nonsense 🤣
I've been looking for something like this for ages cause tmux simply wasn't for me and i "was forced" to use simple terminal and things sometimes can be pretty messy but dude
This is a game changer 😂
Hope every video will bring so much information and usefull things🤩
Btw the "long" format where there's the uncutted version of john thinking and going through all the mental process would be awesome for having a better understanding on how to approach a problem and how to understand the right path
Love the content, keep it up MATE!
(OK THIS JOKE WASN'T FUNNY BUT COME ON)
Great video, thanks John. I am curious how you move in and out of your various VM's (e.g. linux and windows)? Seen you do this a number of times in your other videos and was curious how you are doing that.
Ctrl + U is so helpful!!
Whenever you're typing your password, say when using sudo apt update and you mistype a character, instead of holding backspace to delete the entire password, just hit Ctrl + U.
Love your videos, man!
Unsolicited comments on video composition -- lower ISO/white balance slightly so that your Nano Leaves aren't over-exposed, then reduce light on background. Having darker background will provide better contrast and allow you to stand out from your background more in the video. Also (extra nitpick-y), please center the leaves and or use a different pattern to give the background more flavor.
Also, I loved your outro!
Keep up the good work, man. Best wishes.
Thanks
I'm running tmux on my Android 11. With Kali and still learning. It helps
One thing that about ctrl-s key combination is, that under some emulation mode (actually it might apply to most out-of-the-box configurations)
ctrl-s is captured by the emulation, before the shell (or readline), and work as shortcut to completely freeze the buffer.
If that happens don't panic and just press ctrl-q and you should be good to go.
`stty -ixon` will disable it.
Thank you. This tutorial is beneficial !!!!!!
This is gold!! 🙏
Your head absolutely looked Photoshopped into the thumbnail, and it's cracking me up.
Great video more like this!! can you put a couple of the resources on your video description next time?
you're videos are really practical
John you are a hero!
Just started using terminator recently and I love it
My favorite terminal emulator (it can do more than that too!) is MobaXterm. You can save multiple sessions for the different connections you use often, and I find the sftp sidebar very helpful when working on different projects.
I do love MobaXterm 😊 too.
can it do what terminator can though?
The one thing I'd add to make this a perfect video, is aliases, which dramatically lower a user's keystrokes..
in the "~/" directory, type "sudo nano .bashrc"
In this file the syntax is quite simplistic, "alias=command", here's how to make a permanent alias:
test="sudo apt-cache show apache2"
(CTRL+X, Y, save file)
If the alias doesn't work immediately, then do the "source ~/.bashrc" command.
Example:
command: "apt-cache show apache2"
alias: "test"
Both give out the same result with fewer keystrokes.
What a great video!
Nice one cheers dude
Super Good Video
Best Man! Searched for a way to delete a whole word and remembered ur video. Rewatched it and **boom** there is the solution
For anyone not using Linux but got here by chance, some of these are usable in Windows too (and text editing in general)
Home: Jump to first character (might be weird sometimes as it jumps to top of page instead)
End: Jump to last character (similar problem)
Ctrl + Backspace: Delete one word (from current location to symbol/space before that word)
Ctrl + Delete: Delete one word to right (similar to top)
Ctrl + A: Select all characters
Cmd/Window + Direction key: Snap window/ resize window (works differently but function exist)
Personally I never knew Terminator exist, definitely need to try it out
(Vimium exists for firefox for less mouse usage btw if anyone interested)
Great information. I've been using Linux for sometime but I don't no everything but love learn how get VPN connection to work in Linux .
gr8 content, as always.
that joke at the start :) - you almost had me
oow i like the ctrl+shift+z i never thought to use that. NICE!!
Another shortcut is using "alt + ." for previous arguments. IMO terminator is better for the splitting and various actions John showed but tmux shines where you may need to keep alive ssh connections and other sorts of things.
Exactli I'm using both + sometimes clusterssh, terminator and clusterssh on local machine, and tmux on remote, it helps with unstable connections or tasks which are processed significant amount of time.
tanks for terminator, love ability to type in multiple term in same time like when I want to ssh to one server multiple times
also I'll start using profiles, cuz when I'm high I don't see difference between home pc and remote server, so it happens to me that I run wrong stuff on wrong machine haha
Legend!
If you want to move fast through the filesystem, I recommend FZF. You can move directly to a folder just by typing its name (from anywhere) and do stuff like type "rockyou" and have FZF automatically insert the full path to it.
Thanks for this suggestion Peng! This is exactly something that I've needed.
Some keycombo's that I use all the time:
* CTRL-A to go to the start of the line, instead of pressing the Home key.
* CTRL-E to go to the end of the line, instead of the End key.
* Use CTRL-P to go to your previous used command, Ctrl-N to go to the next one. The up and down arrow-keys are great when you only have single-line commands, but it gets finicky when you have multi-line commands.
* CTRL-L clears the screen.
* CTRL-W deletes the word before the cursor (alternative to ALT-Backspace).
* CTRL-Y to paste back words or a line that you just removed.
* CTRL-U to delete everything before the cursor (as mentioned in the video)
* Alt-. (ALT-dot) inserts previous arguments/commands behind the cursor. This is great for example when you want to quickly run two commands on the same files. One of my favorites!
* Typing a double exclamation-mark like this !! will stand for the last run command. I use this a lot when I forgot to run a command with root privileges. I.e. Let's say I run "pacman -Syu" first, which updates your packages on Arch-based systems. It will nag me that I don't have permission to do that. After that, I simply run "sudo !!", which will be interpreted as "sudo pacman -Syu".
You should do a vid on your setup. Very curious to see how all of that runs just off your laptop
John, thanks for the vid, still waiting for the sublime text cheat sheet video.
Man for this I love my Konsole terminal
Thanks very for your vidz and work... i ask myself this too... also... double thanks
Great video my man. What do you think of zsh btw? I switched to zsh 2 days ago. Was using bash since I switched to Pop. Take a look at zsh.
Put "set -o vi" in your .bashrc if you're already comfortable with Vim navigation. Much more intuitive when navigating the command line.
Good video, but I still think TMUX is better 😛
@@geist453 That comment right there made me stop watching immediately. I don't need your affirmation or verification. And all caps? What are you, 13?
I don't care whether he is legit or criminal or outlaw, as long as he shares knowledge and knows what he is talking about.
@Rai Son 😆😂
@@raison7478 dude...
Absolutely
thanks no one asked fir your opinion
Cool quick video.
The KDE default terminal "Konsole" has the same capabilities as shown.
It goes very well together with "yakuake"!
Konsole just means Terminal in German
He spared no expense!
John Hammon The Legend
There is something that I found out by accident:
I am using zsh and kitty.
Type a command and maybe you remember that you need to run a command before that but you don't want to remove the already typed out command. press [ctrl] + [q] Then it will clear the command and retain it in the background, Run the command that you need, then the previous command that you deleted will be there for you to run.
Nice video. Does Terminator support resuming sessions after disconnect?
I used terminator to get my OSCP. It's nice when enumerating to have multiple tools running at once
Excelet video.Tillix do the same of Terminator(
I used to use it some time ago), but its just a matter of personal choice. Now I using tmux with any terminal, but I have some drawbacks , specially when I debugging some program in gdb. By the way I found this CheetSheet a long time . My adivice is print and paste in front of you. I pasted mine in my laptop, below the keyboard.
Okay so you convinced me to use terminator xD
How you edit your videos john? do you use window or something?
Yip, been using Terminator since last summer. ❤️
John, you said that there is scripting to open up terminator panes through a script. Say I wanted an automated script that opens one pane and runs a nmap scan, one opens a nikto scan, and one doing dirbuster. All launching from a ./myscript... I really think making a tutorial on that would be SUPER useful to automate things. :D
P.S. Love the new outro. :P Can't wait until you get your own intro like Network Chuck. :P
U had me at ‘keyboard junkie’ :)
Nice video! But you should be using KeyCastr to show us which keys you're hitting and when. Keep it up!
fell in love with terminator too
Good video
While using arrow key combos is great for ease of memorization, they force you to take your hands off home row, then feel your way back, which is inefficient. Conversely, Tmux’s equivalents, are two-key combos and non-intuitive (Ctrl-B%, Ctrl-B”). But once muscle memory has set in, keeping your hands on home row is great for efficiency. Ditto Home, End, etc. - anything that pulls your hands off home row is inefficient. If you’re a BASH user, learning BASH keyboard shortcuts is also worthwhile to avoid having to reach for Home, End, etc.
I’ve also swapped my Ctrl and CapsLock, and changed the Tmux cmd prefix to Ctrl-A. Both increase efficiency.
ctrl-a and ctrl-e instead of home/end. ctrl-k to cut to buffer, ctrl-y to paste. Also works in basically every single text box in macOS that is native.
love the thumbnail
And here I am waiting for Step 2.
On tmux, you can use mouse mode and won't have to worry about text from the right/left vertical window being accidentally copied
john i am learning memory forensic is there any labs to practice other then memlabs
Heh. I remember back in the seventies, how confused I was when someone referred to the exclamation as bang. I love how that vernacular hasn't changed over the decades, and probably won't for the foreseeable future.
A great video. You can do Vim tricks too.