So just to be clear I went with a very lazy move to linux from windows. I was not looking to use my day to day in a unixy type way and wanted something that I can install and go without much muss or fuss. So I went with zorin and yeah I have dropped to the command line for some apt installs or such but bascially it was only as needed. Very minimal. Anyway today Im messing with folders and files and suddenly it hit me. Im on linux I can do a lot of this easier with the command line. I know its stupid but my day to day sorta has a mouse brain guie mode and I sorta forget how much easier it is to do some stuff using syntax. So going forward im going to be bringing up the command line to do the things that are quicker.

  • FauxLiving@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 days ago

    Welcome back to terminal land. Pick up basic tmux (attach, detach, change session, open/change panes, scroll/copy/paste), it really helps when you need to type a command and also read the output of another command or config file.

    For example, pressing ctrl-b % splits the window into two panes. So you can read the man page for a command and then use ctrl-b and left/right arrow to swap between panes. Now you’re back to 'alt-tab’ing between windows without the need for a mouse.

      • Zykino@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        5 days ago

        I would recommand zellij instead of tmux or screen. For the simple fact that by default, shortcuts are sensible and the most important ones are always on screen.

        It is not as venerable as the other 2, but much more easy to get into.

      • coltn@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        5 days ago

        some benefits to using tmux,

        • When you switch terminal emulators your workflow and keybinds come with you.
        • If you need to operate within a tty, you can still use tmux and it feels almost like using a wm but without a gui.
          • useful if you need to drop out of your desktop environment or maybe your DE/WM/compositor fails to load.
          • also if you DE/WM/compositor crashes, your terminal doesn’t go with it.
        • If you ever end up working on servers it’s so nice to be able to have the same workflow that you already use on desktop.
        • tmux in my experience is much more scriptable.
        • running system updates in tmux scares me less–if i accidently close the running terminal window i won’t end up with a partial update.

        One pro tip: on your local machine, set the tmux prefix to <C-n> (instead of <C-b>), that way when you’re using tmux on a remote server you can run tmux on the remote as well as on your local and the binds don’t conflict.

        unbind C-b
        set-option -g prefix C-n
        
        • FauxLiving@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          5 days ago

          By default ctrl-b ctrl b is how you access the remote tmux. It can be more comfortable to use a custom bind though.

          • coltn@lemmy.ml
            link
            fedilink
            English
            arrow-up
            0
            ·
            5 days ago

            ya but for me it was easier to mentally map ctrl-b + key for remote, ctrl-n + key for local. also sometimes i’ll use the prefix, then change my mind and esc out, and with the whole double prefix thing it broke my brain. everyone is different though lol maybe that was a bad protip.