Introduction to tmux
Вставка
- Опубліковано 18 чер 2024
- 00:17 - Why I like Tmux
01:20 - Creating Tmux Session
01:45 - Bash: Ctrl + R - Recursive Search
02:02 - Tmux: Prefix Key (default Ctrl+B)
02:05 - Tmux: New Window - Prefix c
02:07 - Tmux: Switch Window - Prefix #
02:36 - My Tmux Config
02:50 - Demo of "nested tmux"
04:00 - Tmux: Rename Window - Prefix ,
04:20 - Tmux: Send/Join Pane Prefix [s|j]
05:08 - Tmux: Setting Search to Vi mode
05:30 - Tmux: Enter edit mode Ctrl+[
05:45 - Tmux: Showing off tmux Searching
06:03 - Tmux: Copy and pasting lots of text
06:27 - Tmux: Logging Plugin
github.com/tmux-plugins/tmux-...
07:30 - Tmux: Splitting
08:20 - Tmux: Zooming - Prefix z
09:00 - Tmux: Moving Panes
09:20 - Bash: Cycle through past arguments Alt+.
09:50 - Bash: Moving cursor to begin, end or skipping words
10:45 - Tmux: Help Page Prefix ?
First video to nail everything I needed to know in order to use this at my job!! Thanks!
Long tmux user here yet I've learned something new today thanks to you! Thank you for the sharing of knowledge!
after you said lets jump in 0:16 i expected you to say as always we begin with nmap -sC for default script sV enumerate versions oA output all format hahahaha
And save to the nmap directory. But this takes time so I've aaalready ran it!
That will take some time, so I already run it
YES I’ve been waiting for a video on this from someone!! Your channel is great man keep it up!
all his friends are here !
The video everybody you inspired with your methodology needed!
Good job!
Excellent introduction! Thank you for your post!.
Thank you so much for making this. It's going to really help!
I always back here to learn more Tmux feature quickly. Now I came back here to remember on Tmux Splitting.
I utterly forgot about this (9:20) fashion, and it works with Esc-Dot on macOS.
appreciate your vids man! teaching an old dog new tricks daily!
Best tmux video I've ever seen - great work bro :). Learned a ton and subscribed
you aint see nothing it seem
Realized I really needed to switch after doing a couple HTB challenges and I had like 3-4 different terminals to pull up. Thanks so much!
Great video! Concise and to the point
super simple tmux Guide. THanks Man..
Excellent video! Got me to switch from screen to tmux.
I always notice how you save so much time by using tmux,so I'll definitely be familiarizing myself with it from now on.
I can't thank you enough for you videos 🙏
If looking for config file content:
# Remap prefix to screens
set -g prefix C-a
bind C-a send-prefix
unbind C-b
# Quality of line stuff
set -g history-limit 10000
set -g allow-rename off
## Join Windows
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# Search Mode VI (default is emac)
set-window-option -g mode-keys vi
run-shell /opt/tmux-logging/logging.tmux
And then just execute this to get the logging plugin in place: sudo git clone github.com/tmux-plugins/tmux-logging /opt/tmux-logging
Amazing tutorials ,best one on the internet .I am visiting UA-cam literally just to see did you upload new video . Thanks
Aaa1aaaaaa
A2q0a qq
Qqa
Wa
Q
This is a wealth of info. Thank you
im so mad that i didnt know this before.... thanks for this tutorial!
Great video! I think i need to watch it again on slow-mo to absorb it all, but looks like a great tool to master!
Normally I make the video go faster (x1.25 or x1.5) with tutorials, but this video is perfect and no need to fast forward, maybe some slow-mo or play-pause to take notes
Oh my god! I become an unstoppable force just by watching this vid :o
Thank you Master!
Dude, it's like you build the whole damn tmux. Too much knowledge in a very short time. I need to watch this video at least 10 times. haha..
This just helped me not waste any more time on kali 😂
You can use tmux shortcuts in recursive tmux sessions (even when you are bind to ctrl+b prefix). You only need to press b twice (ctrl+b+b+[key])
ty
Thanks ippsec your the man. 🍻
Something*
@@kritagyagupta8619 thanks for that correction, 3 years later.....
@@RowanSheridan my pleasure
@@kritagyagupta8619 you need to search the rest of my comments to ensure my grammar is spot on. I look forward to replying to those comments in 3 years.
@@RowanSheridan lmao
Thanks Ippsec, that was very helpful
This is friggin awesome!!
awesome explanation! thanx ippsec
Hey ippSec it's been a long time since I watch your HTB videos. I really appreciate the effort you are sharing this with the community. I just wanted to ask you a pleasure, I think it will be really appreciative if you could make a video on how you have your Kali Linux VM set up. Thank you and keep up!
Marvellous video!
"Vee aye master race" - damn right you are! :D The ctrl-b to ctrl-a remount is such an elegent "hack", thanks!
Vi*
This is great. Really increases focus and productivity. Looks sexy
Amazing thanks !
thanks is really helpful appreciate it
Every person that i talk to about tmux always mentions they learned it from this video.
Thank you!
Thanks for this : )
Awesome video dude!
We love tmux also :D
Awesome thanks
Thank bro
Amazing video
Awesome
"CTRL+L" to clear the screen instead of "clear".
Thnx for these small tips
that's not the same thing
clear is faster for me idk
@@dxykhang how ?
CTRL+L doesn't clear terminal, instead it gives you big white space so you don't see old commands but if you go up using mouse you see them.
still gold !
thanks alot
💖💖
❤️
this is video i was w8 for..
You should do a video on your kracken machine hardware build etc.
its 4 Geforce 1080 as I noticed from this video, also he is mining while he don't use to crack a hash which is smart, for build like this normally they use very low end CPU, small cheap ram, SSD hard drive for power consumption, and 4-8 or more (depends on motherboard) GPUs with one/two big Power Supply
TY
I wanted to give you a tip. When you have to paste text into a file, you can do cat > file.txt and then paste the content. You can exit with Ctrl+D.
cat
does not work right on some shells, fish. cat > file.txt does it for me running fish.
cat -n >> FILE.txt will append to a new line. Very useful
Ctrl+d will exit on empty prompt.
this is great, thanks! can you do one for vi as well?
Let's goo
I have to turn to tmux now tnx..;
Detach from a tmux session: ctrl-b d
Show all windows in tmux session: ctrl-b s (then press right arrow key to expand)
I am at loss for words.
Great vid! Are you from Boston by any chance? I'm trying to place your accent haha
Nope. You'll never place where I'm from based on accent. It's a rabbit hole that isn't really solvable.
@@ippsec So you basically took the RED pill
(Prefix) + W shows you all the windows/sessions open. You can cycle through them.
Good Job , Most underrated comment
I always admired tmux, however default shortcuts are terrible. You need 3-4 fingers at odd big shapes (actually 2 hands...) to do basic things. Generally the bind key (2 fingers) + something else gives me a tendinitis.
4:43 I just can't understand why error occurs when I try to join windows from window0 to window1 when I'm in the window1, but works whether I'm in the window 0 and try to send from window1 to window0.
Everyone prob already knows that you can auto complete files programs and folders with tab key ls /o tab will ls /opt
If it is the only word in / starting with o
Can also start to type a name or folder and tab tab to list all starting with entered characters
Holy shit this is a game changer
hello IppSec , as do for tmux, can you do video about burpsuit.
Try also using $_ which is like ALT + dot
# switch panes using Alt-arrow without prefix
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
you at least need this brother! (I do, at least)
You're off a bit, that will let you change panes using JKHL, to use he arrow keys you need:
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
How to display two session info on the status bars as shown in the video, one for HTB, one for MINER?
what keyboard are you using? switches?
Thank you ippsec, you saved my *ss!
don't have a config file so created one but not loading by default ?? what to do ? any help here ??
Home & End
may I ask how do we copy from tmux terminal (from VMware) into the system clipboard so that I can paste the text into another application on my host?
instead of typing 'exit' in the terminal you can press ctrl+d
how do you copy text from tmux onto the system clipboard? Was playing around with it and noticed that everything you copy on tmux is saving in a tmux buffer
Did you ever find out how to make the clipboard work with tmux?
Can you reorder the tmux sessions? Ie created 1-5 then killed created 6 and killed 2 and 3. Can you move 6 to 2 ?
Why would cntrl+a not work for any of the commands you've showed with it?
how do I get this plugin he uses to work ?
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" does not work for me. Tmux complains about using the same window. Adding a colon (':%%') makes it work like expected.
Thank you for this, I was having the same issue in Kali.
Hi m8. Please could you help me with tmux colorizing in Kali ? I still have all white (i mean all texts). I already inserted line: set -g default-terminal "screen-256color" into tmux config file, but it is still the same.Any idea how to fix that ? Thanx a lot.
I'm hitting this exact same problem. Lemme know if you find a solution
@@lulmedia1601 Strange is, that this problem i have only in virtualbox. In Hyper-V or normal PC i have coloring OK. I tried also purge tmux, but without success :(
@@tomasgorda I'm running in a VM so that makes sense, guess I'll just have to get a dedicated machine. Anyways, I found that for some reason by running this in the tmux terminal: PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
source: askubuntu.com/questions/925881/tmux-colors-not-working
@@lulmedia1601 i also tried that but after restart tmux it was done. Another strange thing - when i connect via ssh to another machine, colors are working. It is somehow switched functionality, but don't know where i can fix it :(. I hate my obscession, but im so nervous that it is not working :))))
not done, but gone :)
Why my tmux sessions get removed when SSH drops abruptly? Is this normal behavior of tmux?
first thank you for the video however, I've tied to hit the prefix key (CTRL+B) "in clean config" and arrows left & right in order to navigate between panes but this didn't work !! instead it increases the size of the pane. Also, i didn't find the .tmux.conf file in /root or / directories so I created one in /root (none of the configs worked !)
The tmux short cut commands do not work for and yes I have tried releasing the prefix key while pressing the last key
Also, if you only have one session, just typing "tmux attach" is enough to attach to that session.
Or just 'tmux a' for short.
@@randomness3235 Even better! Thanks
how do you copy text using mouse on tmux?
Hey! Does anyone know how to spawn the new pane from the current directory?
bind + split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
found here with some other good tips: www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
When will update us with a vim set up and tmux ?
what is difference tmux vs screen command
When I hit Ctrl+B a new window doesn't open. I'm connecting to Kali using RDP, so not sure if that is causing an issue. Has anyone else had this problem?
nvm, I figured it out. I wasn't doing shift + % or " after the ctrl+b
make a video for beginners for getting started in HTB
Hmm cannot seem to find the tmux.conf file in my home directory?
How do i move pane to other terminal
How much is ur ram
Ctrl-b ! to send pane to new window
Please make video on VIM editor.i mess up with this editor.
Try $ set -o vi, it is the handiest thing ever
You sound like the hero from final space hahahahahha.
I must be doing something wrong. I copied his config file from the git and I'm not getting these interactions.