Tmux Tutorial for Beginners

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • Tmux Cheat Sheet:
    www.linuxtrain...

КОМЕНТАРІ • 33

  • @LinuxTrainingAcademy
    @LinuxTrainingAcademy  Рік тому +3

    For a tmux cheat with even more commands, visit: www.linuxtrainingacademy.com/tmux-tutorial/

  • @Marcus001
    @Marcus001 9 місяців тому +12

    This will make it easier to remove GUI from my life

  • @PCMrTrickster
    @PCMrTrickster Рік тому +3

    Thanks for your video. I think you could mention also about [Ctrl-b w] which is probably more convenient than [Ctrl-b s] as it shows list of all sessions and windows currently available.
    But anyway thanks for your job - not only this video but also all Linux lessons and courses you create. You have a very good approach and your presentations are always very clear and useful.

    • @LinuxTrainingAcademy
      @LinuxTrainingAcademy  Рік тому +2

      Agreed... Ctrl-b w is very handy! (I have that on the tmux cheat sheet...) Thanks!

  • @abhishekshah11
    @abhishekshah11 20 днів тому +1

    Very helpful to get started with tmux! Thank you

  • @kushalpsv
    @kushalpsv Рік тому +3

    Thank you your video was very helpful, thanks for teaching the basics

  • @informatik01
    @informatik01 6 місяців тому +4

    Agree with others: this is probably the best introductory video tutorial on tmux.
    Thank you!

  • @developer_cha1nsaw
    @developer_cha1nsaw 7 місяців тому +5

    best beginner video on tmux ever

  • @MichaelCampbell01
    @MichaelCampbell01 6 місяців тому +4

    Been using tmux for years, but learned a few shortcuts here. Thanks.

  • @TonyGonzales
    @TonyGonzales Рік тому +3

    Excellent teaching style, learning through doing is key for me. Just the right amount of review smuggled in also, thanks for this launchpad.

  • @chrisoreta
    @chrisoreta Рік тому +2

    Very informative...thnx

  • @uajoku
    @uajoku Рік тому +2

    Very invaluable. I just learnt something so useful from this video.

  • @linuks87
    @linuks87 Рік тому +2

    I questioned myself, how don't know this yet? Thank you so muck

  • @acuffaro
    @acuffaro Рік тому +1

    Very informative, clear explanations and straight to the point. Thanks a lot!

  • @temirbek
    @temirbek 12 годин тому

    how to stop that running seconds? )

  • @michaelharmon5502
    @michaelharmon5502 20 днів тому

    If using it on a mac, it it command-b instead of control-b for all these commands? Control-b doesn't do anything, neither does command-b. This is a new tmux install via homebrew. Any help would be appreciated.
    EDIT: The problem was the terminal emulator program I was using. When using Konsole by KDE, the control-b key doesn't work. I switched to the default macOS terminal and it works. Yay!

    • @LinuxTrainingAcademy
      @LinuxTrainingAcademy  19 днів тому

      No. (However.... in the future I would encourage you to run mini experiments; in this case type command-b and see what, if anything, happens.)

    • @michaelharmon5502
      @michaelharmon5502 19 днів тому

      @@LinuxTrainingAcademy Thanks for the tip. And thanks for making the video too!! I learned a lot.

  • @2u841r
    @2u841r 4 місяці тому

    very good

  • @ramirroxd6986
    @ramirroxd6986 6 місяців тому

    i cannot get ctr+b to ever work, i have tried everything

    • @LinuxTrainingAcademy
      @LinuxTrainingAcademy  6 місяців тому +1

      1. Check Tmux Installation
      First, ensure that Tmux is correctly installed and running by opening a terminal and typing tmux. If Tmux starts successfully, you should see a new session with a green status bar at the bottom.
      2. Verify the Prefix Key
      You must press and hold the Ctrl key and then press the B key. After releasing both keys, you should immediately press the desired command key (e.g., D to detach, C to create a new window).
      3. Keyboard Layout and Language Settings
      If the keyboard layout or language setting is different from English (US), the placement of the keys might vary, making the Ctrl+B combination not work as expected. Check your keyboard settings and ensure you're pressing the correct keys.
      4. Custom Key Bindings
      It's possible that the Ctrl+B binding has been overridden by a custom configuration in the ~/.tmux.conf file. You can check this file for any line that starts with set -g prefix and see if the prefix key has been changed. If you want to revert to the default, you can either remove this line or set it to set -g prefix C-b.
      5. Conflicting Applications
      Another application running in the background may intercept Ctrl+B before it reaches Tmux. This can include terminal emulators with their own shortcuts, screen readers, or other accessibility tools. You should try closing other applications or changing the conflicting shortcut in those applications.
      6. Test with a Different Terminal Emulator
      Sometimes, the issue might be with the terminal emulator itself. Try a different terminal emulator to see if the problem persists.
      7. Reset Tmux Configuration
      If you have made changes to the Tmux configuration and suspect that might be the cause, you can try moving or renaming your ~/.tmux.conf file and restarting Tmux to see if the issue resolves. This can be done with the command: mv ~/.tmux.conf ~/.tmux.conf.backup.
      8. Ensure Tmux is Responding
      Finally, make sure that Tmux is responsive. Open Tmux and try pressing Ctrl+B, followed by : to bring up the command prompt at the bottom of the window. If this works, Tmux is responsive, and the issue is likely related to how you are pressing the keys or a specific command you are trying to use.

    • @ramirroxd6986
      @ramirroxd6986 5 місяців тому +1

      @@LinuxTrainingAcademy whoa thanks , it works now actually , i figured it out , and not to my surprise it was such a silly little workaround. im become quite a pro with tmux now XD

  • @JibranAnjumChughtai
    @JibranAnjumChughtai 8 місяців тому

    Great man...

  • @eldiablo3794
    @eldiablo3794 Рік тому +1

    Whats the difference between Terminator and tmux? Im newer to Linux but I use Parrot OS. It comes with Terminator, and that's what I use to run multiple terminals.. is tmux better?

    • @the0val
      @the0val Рік тому +3

      The main difference for me is that tmux is portable (in two ways). You can use tmux any time you enter a terminal, including over SSH. You can even start tmux on one SSH session, detach, and resume from either SSH or locally. Your tmux config is just a simple dotfile that you can copy to all your machines. Terminator is basically the same as opening another window or tab, just with neat tiling.

    • @LinuxTrainingAcademy
      @LinuxTrainingAcademy  Рік тому +4

      Tmux isn't "better", nor is it "worse" than Terminator. Each tool serves a different purpose.
      The primary purpose of tmux is to allow you to create multiple terminal sessions and control them from a single screen within a text-based environment, often leveraging this feature to maintain sessions over remote connections, even when disconnected. (If you work on remote systems, you'll want to use tmux, and run tmux on the remote systems.)
      The primary purpose of Terminator is to provide you with a graphical tool to manage multiple terminal windows and sessions in a graphical (GUI) environment. (If you only want to work on your local system, you'll probably want to use Terminator.... That said, you can start Terminator as your GUI terminal application and use tmux within it. IE, start Terminator, ssh into your remote system and then start tmux.)