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 ?

КОМЕНТАРІ • 185

  • @Aaron-cr5rx
    @Aaron-cr5rx 6 років тому +20

    First video to nail everything I needed to know in order to use this at my job!! Thanks!

  • @x0rZ15t
    @x0rZ15t 3 роки тому +4

    Long tmux user here yet I've learned something new today thanks to you! Thank you for the sharing of knowledge!

  • @robinhood3841
    @robinhood3841 4 роки тому +96

    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

    • @kaushiksivashankar9621
      @kaushiksivashankar9621 3 роки тому +7

      And save to the nmap directory. But this takes time so I've aaalready ran it!

    • @InSight0r
      @InSight0r 2 роки тому +2

      That will take some time, so I already run it

  • @day1player
    @day1player 6 років тому +1

    YES I’ve been waiting for a video on this from someone!! Your channel is great man keep it up!

    • @michgingras
      @michgingras 4 роки тому

      all his friends are here !

  • @dimitriosgkizanis6997
    @dimitriosgkizanis6997 6 років тому +7

    The video everybody you inspired with your methodology needed!
    Good job!

  • @williamkopanchuk
    @williamkopanchuk 5 років тому +1

    Excellent introduction! Thank you for your post!.

  • @RileyCastine
    @RileyCastine 3 роки тому

    Thank you so much for making this. It's going to really help!

  • @thedawnofslayer
    @thedawnofslayer 5 років тому +3

    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.

  • @WayneOliver-The
    @WayneOliver-The 5 років тому

    appreciate your vids man! teaching an old dog new tricks daily!

  • @vonniehudson
    @vonniehudson 6 років тому +11

    Best tmux video I've ever seen - great work bro :). Learned a ton and subscribed

    • @michgingras
      @michgingras 4 роки тому

      you aint see nothing it seem

  • @paprika5487
    @paprika5487 4 роки тому +5

    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!

  • @timkatsapas
    @timkatsapas 3 роки тому

    Great video! Concise and to the point

  • @thebestviedoguy6465
    @thebestviedoguy6465 4 роки тому

    super simple tmux Guide. THanks Man..

  • @h4gg497
    @h4gg497 4 роки тому

    Excellent video! Got me to switch from screen to tmux.

  • @lesleybw
    @lesleybw 3 роки тому

    I always notice how you save so much time by using tmux,so I'll definitely be familiarizing myself with it from now on.

  • @shauncollins1280
    @shauncollins1280 3 роки тому

    I can't thank you enough for you videos 🙏

  • @vinitodeibiza
    @vinitodeibiza 5 років тому +34

    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

    • @heyserge
      @heyserge 3 роки тому +1

      And then just execute this to get the logging plugin in place: sudo git clone github.com/tmux-plugins/tmux-logging /opt/tmux-logging

  • @strmina100
    @strmina100 6 років тому +4

    Amazing tutorials ,best one on the internet .I am visiting UA-cam literally just to see did you upload new video . Thanks

  • @colinrogers9927
    @colinrogers9927 10 місяців тому

    This is a wealth of info. Thank you

  • @0xMarcio
    @0xMarcio 4 роки тому

    im so mad that i didnt know this before.... thanks for this tutorial!

  • @zac5636
    @zac5636 6 років тому +1

    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!

    • @guitartsword
      @guitartsword 4 роки тому

      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

  • @ragnarlothbrok367
    @ragnarlothbrok367 6 років тому +11

    Oh my god! I become an unstoppable force just by watching this vid :o

  • @olgertorres1712
    @olgertorres1712 4 роки тому +2

    Thank you Master!

  • @dibbyo456
    @dibbyo456 4 роки тому +6

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

  • @kaliuan7885
    @kaliuan7885 4 роки тому

    This just helped me not waste any more time on kali 😂

  • @EvoLzTV
    @EvoLzTV 6 років тому +16

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

  • @lloyd-wright
    @lloyd-wright 4 роки тому

    Thanks ippsec your the man. 🍻

  • @RowanSheridan
    @RowanSheridan 6 років тому +4

    • @kritagyagupta8619
      @kritagyagupta8619 3 роки тому

      Something*

    • @RowanSheridan
      @RowanSheridan 3 роки тому +1

      @@kritagyagupta8619 thanks for that correction, 3 years later.....

    • @kritagyagupta8619
      @kritagyagupta8619 3 роки тому

      @@RowanSheridan my pleasure

    • @RowanSheridan
      @RowanSheridan 3 роки тому

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

    • @kritagyagupta8619
      @kritagyagupta8619 3 роки тому

      @@RowanSheridan lmao

  • @smarlakunta
    @smarlakunta Рік тому

    Thanks Ippsec, that was very helpful

  • @sanjaybabusanjay
    @sanjaybabusanjay 4 роки тому

    This is friggin awesome!!

  • @sierikas
    @sierikas 4 роки тому

    awesome explanation! thanx ippsec

  • @tortotifa5287
    @tortotifa5287 4 роки тому +15

    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!

  • @Jan_Seidel
    @Jan_Seidel 4 роки тому

    Marvellous video!

  • @maciekstrzelecki8686
    @maciekstrzelecki8686 3 роки тому +1

    "Vee aye master race" - damn right you are! :D The ctrl-b to ctrl-a remount is such an elegent "hack", thanks!

  • @m1stax-pl01t7
    @m1stax-pl01t7 5 років тому

    This is great. Really increases focus and productivity. Looks sexy

  • @twistedbdo5755
    @twistedbdo5755 6 років тому

    Amazing thanks !

  • @badoudasaleh9545
    @badoudasaleh9545 4 роки тому

    thanks is really helpful appreciate it

  • @bigbooduh
    @bigbooduh Місяць тому

    Every person that i talk to about tmux always mentions they learned it from this video.

  • @HamishHaughey
    @HamishHaughey 6 років тому

    Thank you!

  • @greyskwerlie7116
    @greyskwerlie7116 5 років тому

    Thanks for this : )

  • @strannyisyn
    @strannyisyn 6 років тому

    Awesome video dude!

  • @km0x905
    @km0x905 6 років тому +1

    We love tmux also :D

  • @ajnikurtaj2782
    @ajnikurtaj2782 4 роки тому

    Awesome thanks

  • @j0hnphy09
    @j0hnphy09 6 років тому

    Thank bro

  • @ca7986
    @ca7986 3 роки тому

    Amazing video

  • @blevenzon
    @blevenzon 6 років тому

    Awesome

  • @TamerSAY
    @TamerSAY 5 років тому +77

    "CTRL+L" to clear the screen instead of "clear".

    • @pratyushkumar7019
      @pratyushkumar7019 5 років тому +1

      Thnx for these small tips

    • @auntyjamila8405
      @auntyjamila8405 3 роки тому +6

      that's not the same thing

    • @dxykhang
      @dxykhang 3 роки тому

      clear is faster for me idk

    • @generalkenobi7690
      @generalkenobi7690 2 роки тому

      @@dxykhang how ?

    • @mahmoudabuamarah6115
      @mahmoudabuamarah6115 Рік тому

      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.

  • @hadzah_fr
    @hadzah_fr 3 місяці тому

    still gold !

  • @professorenglish1145
    @professorenglish1145 5 років тому

    thanks alot

  • @annymous4515
    @annymous4515 6 років тому

    💖💖

  • @rob6220
    @rob6220 6 років тому

    ❤️

  • @neoXXquick
    @neoXXquick 6 років тому +1

    this is video i was w8 for..

  • @caseylgoodrich
    @caseylgoodrich 5 років тому +13

    You should do a video on your kracken machine hardware build etc.

    • @TheErixcode
      @TheErixcode 2 роки тому

      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

  • @klr607
    @klr607 Рік тому

    TY

  • @alterego5985
    @alterego5985 6 років тому +20

    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.

    • @Creased_
      @Creased_ 6 років тому

      cat

    • @joselima9398
      @joselima9398 5 років тому

      does not work right on some shells, fish. cat > file.txt does it for me running fish.

    • @m1stax-pl01t7
      @m1stax-pl01t7 5 років тому +2

      cat -n >> FILE.txt will append to a new line. Very useful

    • @iLiokardo
      @iLiokardo 4 роки тому

      Ctrl+d will exit on empty prompt.

  • @m3lk0r83
    @m3lk0r83 6 років тому

    this is great, thanks! can you do one for vi as well?

  • @talinross
    @talinross Рік тому

    Let's goo

  • @b1nslashsh-902
    @b1nslashsh-902 4 роки тому

    I have to turn to tmux now tnx..;

  • @thegripmaster666
    @thegripmaster666 3 роки тому +1

    Detach from a tmux session: ctrl-b d
    Show all windows in tmux session: ctrl-b s (then press right arrow key to expand)

  • @metalwellington
    @metalwellington 5 років тому

    I am at loss for words.

  • @aarav3890
    @aarav3890 6 років тому

    Great vid! Are you from Boston by any chance? I'm trying to place your accent haha

    • @ippsec
      @ippsec  6 років тому +5

      Nope. You'll never place where I'm from based on accent. It's a rabbit hole that isn't really solvable.

    • @AK.Adventures
      @AK.Adventures 4 роки тому

      @@ippsec So you basically took the RED pill

  • @anniiket
    @anniiket 4 роки тому +2

    (Prefix) + W shows you all the windows/sessions open. You can cycle through them.

    • @AK.Adventures
      @AK.Adventures 4 роки тому

      Good Job , Most underrated comment

  • @chefsputnik1
    @chefsputnik1 5 років тому +4

    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.

  • @thedawnofslayer
    @thedawnofslayer 5 років тому

    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.

  • @blackphox5219
    @blackphox5219 6 років тому

    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

  • @vincentv8991
    @vincentv8991 5 років тому

    Holy shit this is a game changer

  • @emmanuelkacou8099
    @emmanuelkacou8099 5 років тому +3

    hello IppSec , as do for tmux, can you do video about burpsuit.

  • @theboogymaster
    @theboogymaster 5 років тому

    Try also using $_ which is like ALT + dot

  • @Matt-ir1ky
    @Matt-ir1ky 6 років тому +5

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

    • @blaise-of-glory
      @blaise-of-glory 6 років тому +4

      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

  • @peterw6583
    @peterw6583 4 роки тому

    How to display two session info on the status bars as shown in the video, one for HTB, one for MINER?

  • @levonschaftin3676
    @levonschaftin3676 3 роки тому

    what keyboard are you using? switches?

  • @F1HunterJAN1
    @F1HunterJAN1 3 роки тому

    Thank you ippsec, you saved my *ss!

  • @misterbott2237
    @misterbott2237 5 років тому

    don't have a config file so created one but not loading by default ?? what to do ? any help here ??

  • @TeoZarkopafilis
    @TeoZarkopafilis 6 років тому +1

    Home & End

  • @bludgeroak
    @bludgeroak 2 роки тому

    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?

  • @Zmunk19
    @Zmunk19 2 роки тому

    instead of typing 'exit' in the terminal you can press ctrl+d

  • @nalindhingra1058
    @nalindhingra1058 4 роки тому

    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

    • @Joep.
      @Joep. 3 роки тому

      Did you ever find out how to make the clipboard work with tmux?

  • @RowanSheridan
    @RowanSheridan 6 років тому

    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 ?

  • @neurosync_research
    @neurosync_research 3 роки тому

    Why would cntrl+a not work for any of the commands you've showed with it?

  • @ShabazDraee
    @ShabazDraee 4 роки тому

    how do I get this plugin he uses to work ?

  • @MultiStraik
    @MultiStraik 6 років тому +2

    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.

    • @hypercoyote
      @hypercoyote 4 роки тому

      Thank you for this, I was having the same issue in Kali.

  • @tomasgorda
    @tomasgorda 4 роки тому +1

    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.

    • @lulmedia1601
      @lulmedia1601 4 роки тому

      I'm hitting this exact same problem. Lemme know if you find a solution

    • @tomasgorda
      @tomasgorda 4 роки тому

      @@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 :(

    • @lulmedia1601
      @lulmedia1601 4 роки тому

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

    • @tomasgorda
      @tomasgorda 4 роки тому

      @@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 :))))

    • @tomasgorda
      @tomasgorda 4 роки тому

      not done, but gone :)

  • @deepasharma130
    @deepasharma130 4 роки тому

    Why my tmux sessions get removed when SSH drops abruptly? Is this normal behavior of tmux?

  • @abdullhZZ
    @abdullhZZ 4 роки тому

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

  • @natking1u1z99
    @natking1u1z99 3 роки тому

    The tmux short cut commands do not work for and yes I have tried releasing the prefix key while pressing the last key

  • @svettnabb
    @svettnabb 4 роки тому

    Also, if you only have one session, just typing "tmux attach" is enough to attach to that session.

    • @randomness3235
      @randomness3235 4 роки тому

      Or just 'tmux a' for short.

    • @svettnabb
      @svettnabb 4 роки тому

      @@randomness3235 Even better! Thanks

  • @SouvikHaldarmustang
    @SouvikHaldarmustang 2 роки тому

    how do you copy text using mouse on tmux?

  • @F1HunterJAN1
    @F1HunterJAN1 3 роки тому

    Hey! Does anyone know how to spawn the new pane from the current directory?

    • @jamespaine9510
      @jamespaine9510 3 роки тому

      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/

  • @leon1985ist
    @leon1985ist Місяць тому

    When will update us with a vim set up and tmux ?

  • @PetritK10
    @PetritK10 3 роки тому

    what is difference tmux vs screen command

  • @lampmanjosh
    @lampmanjosh 4 роки тому

    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?

    • @lampmanjosh
      @lampmanjosh 4 роки тому

      nvm, I figured it out. I wasn't doing shift + % or " after the ctrl+b

  • @punitchoudhary1490
    @punitchoudhary1490 4 роки тому

    make a video for beginners for getting started in HTB

  • @Chran0
    @Chran0 Місяць тому

    Hmm cannot seem to find the tmux.conf file in my home directory?

  • @zahoorali1874
    @zahoorali1874 3 роки тому

    How do i move pane to other terminal

  • @hackaman9752
    @hackaman9752 5 років тому

    How much is ur ram

  • @declanmcardle
    @declanmcardle 2 роки тому

    Ctrl-b ! to send pane to new window

  • @viralpatel9653
    @viralpatel9653 6 років тому

    Please make video on VIM editor.i mess up with this editor.

  • @yasserd0153
    @yasserd0153 4 роки тому

    Try $ set -o vi, it is the handiest thing ever

  • @freeenergyeducationinterna1086
    @freeenergyeducationinterna1086 4 роки тому

    You sound like the hero from final space hahahahahha.

  • @Papercut625
    @Papercut625 3 роки тому

    I must be doing something wrong. I copied his config file from the git and I'm not getting these interactions.