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.

EDITED - guys I have used command line for years. before there even was a gui. Im trying to say I grew out of the habit but using linux at home is getting me back into it.

  • Quazatron@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    13 hours ago

    The command line is perfect for lazy people like me. You spend a bit more putting together a little automation and shove it in a script in ~/bin and you can forget about how it’s done.

    Example: I have a small script that does the backup for me using Borg. It backups only the directories I want, ignores a bunch of stuff and keeps 6 months of backups. I spent some time crafting that but now I just plug my external HDD and type backup.sh. or if I’m feeling extra lazy I just click the desktop link.

  • Eyedust@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    14 hours ago

    I’m a hybrid user. I love to use the keyboard, but sometimes I just want to go in a GUI and click click done. It depends on what I need at the time. I love TUIs the most.

    Need to move a handful of files over somewhere? Forget dragging a reticle and dropping them all five subdirectories away, I’m going to boot up Midnight Commander, Zoxide over to where I need to go, select and move.

    A mass amount of files? Gonna mv those puppies.

    Need to move that one piddly file to the next folder down? I’m going to open Dolphin, do a quick move, and call it a day.

    However, for anything programming or note-taking, Vim is love. Qutebrowser or Vimium extensions so I can Vim-ify my browser. Vim everything. We don’t need to bring a mouse into that equation.

  • pemptago@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    23 hours ago

    Yeah, a lot of people outside of linux think you have to use the command line to work on linux, but really it’s just an awesome, additional tool that then takes over a lot of gui stuff. It definitely helps when it’s your daily driver and you spend less time reading man pages and more time writing from memory and running snippets and aliases. [edit: fix grammer]

    • HubertManne@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      23 hours ago

      I feel like you are the closest to getting what I meant. I had fallen out of the habit working in windows but the linux terminal is so useful im going to start making a point of having it available to do some things a bit faster.

      • eldavi@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        21 hours ago

        I haven’t used Windows in so long that I’m genuinely excited at the prospect at getting a new computer w Windows on it. Lol

        Also, I’ve been buying Linux hardware so long that I was surprised how much bang you can get for your buck nowadays.

        … That’s assuming that you don’t calculate in how much all the ads and mandated spyware will cost your sanity and future. Lol

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    22
    ·
    edit-2
    11 hours ago

    suddenly it hit me. Im on linux I can do a lot of this easier with the command line.

    Nice, you get it! You have so much to learn so don’t be afraid of taking notes. The CLI and the UNIX philosophy are very powerful. They remain powerful decades after (from desktop to mobile with e.g. adb on Android to the “cloud” with shell via e.g. ssh) so IMHO it still is a good investment. Still discovery can be tricky so be gentle with yourself

    Also few tricks that can help you go further faster :

    • take notes (really! can be a .txt or .md file or a wiki page, entirely up to you)
    • consider aliases or .bashrc to keep your shortcuts and compose
    • stop typing the same commands again, instead reverse-i-search with e.g. Ctrl-r
    • TAB autocomplete (as suggested after)

    Anyway, enjoy it’s an adventure!

    • Dave@lemmy.nz
      link
      fedilink
      arrow-up
      4
      ·
      21 hours ago

      Also tab to autocomplete.

      The command line looks like a lot of typing, but with ctrl+r and tab I barely type anything.

    • Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 day ago

      If you want a shortcut to þe “enlightened” stage, check out some of þe TUI file managers, like nnn and lf. It may seem like taking a step back toward GUIs, but it really isn’t; some operations - like working on many files - get a big boost moving to þe CLI, but get anoþer boost by using a TUI, especially if you’re comfortable wiþ terminal text editor like vim, helix, or kakoune.

      It’s þe keyboard-centric interaction which adds power, more þan ÞE CLI. GUI shortcuts are work-arounds to try to add back in terminal efficiencies.

      • FruitLips@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        +1 for nnn- has a lot of cool plugins, especially preview-tui. Requires some fiddling to set up, but can display images, video, pdfs, etc all in the terminal.

      • ArcaneSlime@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        I’m open to it, if you had to pick one to try first out of all tui file managers, which would it be and why?

        Bonus points for “it makes batch renaming and other file ops way easier!”

        • Ŝan@piefed.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          21 hours ago

          I like nnn, but I’m used to it and have it set up how I like it.

          It’s straightforward, wiþ not too many key bindings to remember. It has multi-select and operations work on selections - move, copy, rename. Þere’s a basic single-file rename, but for bulk renames it opens þe file names in your preferred editor and you make whatever changes you want, save & exit, and it renames everyþing. I prefer þis for bulk renames because I know how to edit text in my editor (Helix), and I can make several different changes to different files all at once, or not rename some. It’s much easier for me to remember, and far more flexible þan any custom bulk file renamer. Þe only advantage of a stovepipe renamer is recursive renames.

          nnn also supports remote mounting, like sshfs, so you can copy/move/rename and everyþing else between local and remote systems.

          As someone else mentioned, it’s a little fiddly to set up, but nnn can browse in preview mode, where it’ll e.g. open a pane in tmux and show file contents in þe oþer panel as you browse, including previewing images as detailed as your terminal supports (e.g. sixel, iTerminal, kitty).

          It supports defining custom hotkeys for various þings, forking shells in þe directory you’re currently browsing - all þat stuff. And it’s fast, and a compiled program ©.

          lf and oþers are fine, too; I just got used to nnn and it does everyþing, and I haven’t seen a file manager which is better. Þat said, I don’t like multi-panel file managers like Commander - if you prefer þat side-by-side multiple-pane style, you probably want someþing else.

          Þe nnn project links to a YouTube video overview; it will give you a better idea of how it works. Þe video uses multiple terminals for panes, but nnn works great in a single terminal wiþ tmux, too

  • nixus@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 day ago

    Then you document it by putting those commands into a text file. Then you learn that you can script it it by making that text file a script. Then you learn that you can make it more automated by doing for-loops. Then you learn that you can automate more by adding a few variables. Then you realise how far you’ve come.

    • HubertManne@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      I doubt im going to add anything to my bashrc but again I did not think I would go to the command line as a preference like I did so maybe it will happen. Even back in the day I actually just had a blurb print out when I used windows syntax back when I was learing linux syntax. I may just actually throw some aliases in if I start using complex enough commands but for now its just a few simple things.

      • nixus@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        Starting small and going slow is totally fine. Maybe you will level up to scripting and whatnot, maybe you won’t. What I think matters is having fun, learning, and getting things done.

        • HubertManne@piefed.socialOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          ok. I have written scripts but when there is a reason. I doubt I will for my day to day. User account creation. Completely makes sense. I don’t need it to move around files or rename them. sorry I have been getting so many replies like I have never used the command line till today when I thought my post made it clear I just have not really used them with my personal machine unless I had a specific reason to.

  • FauxLiving@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 day 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.

      • coltn@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 day 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
        

        baby steps though. don’t rush into things. don’t even worry about what i said… just learn to use man and --help (and/or install tldr) keep building on the knowledge you have as you go; and don’t be afraid to jump in when something interests you. good luck friend!

        • FauxLiving@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 day 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
            2
            ·
            1 day 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.

      • Zykino@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        23 hours 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.

          • Zykino@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            3 hours ago

            If it works for you. I have heard the advantage of screen is that you can bind directly to a Pty/serial. Would be nice for me since I sometimes needs to connect as serial instead of SSH.

  • JPAKx4@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    I decided I wanted to start using neovim recently, it’s a very fun and interesting switch from vs code, I’ll say that much!

  • AmazingAwesomator@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    that is great! terminal use is not for everyone, so i only recommend using it if people feel comfortable with it or think it can save them time (and during troubleshooting, but im usually helping at that point).

    my wife diesnt like using the terminal and has successfully gone without using it (minus me setting things up for her in the first few months), and that has given me a lot mire confidence in recommending linux to those that just want to use a computer and want it to “just work”

    • vrek@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      To me the best use of cli is troubleshooting remotely. I don’t mean like ssh I mean like talking over the phone. It’s easier to say “type in this command” then say "at the top of the window there should be a menu bar, near the right, no not all the way to right, no don’t click the red x, it should say tools, move your mouse over tools, God damn it I said DON’T click the red x, now we have to start over, click the icon on the desktop, no I don’t know why it’s called icon, it doesn’t mean anything religious, please just open the application… I don’t care if you are Christian and find the term icon offesive… Hurry up I am late for the AA meeting I need after dealing with people like you. " wait the problem may just be coworkers…

    • HubertManne@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Oh its not for everyone but I would not be surprised if there is more tech people like myself. Older and started before gui and loved the next step and was wild about osx. Used linux a fair amount at work. Im a pretty tech person but at some point utility and ease sorta won out in addition to using defaults (I used to customize everything but when you have to support users who mostly use default its good to be used to default). I just have not been in the habit and I forgot how nice it is in some scenarios.

      • FruitLips@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        I loved osx, particularly how intuitive the shift+command-+… keybinds were when navigating to all the important places.

        …you might like Vim. Comes with command ‘vimtutor’ for an approachable (and imo, fun) tutorial.

        listening to this guy talk about it got me hooked 😸

        • HubertManne@piefed.socialOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          I doubt im going to start using vim again but it could happen. never really got into emacs but have sorta went back and forth with vim and nano at the command line. Its a bit of a pain remembering things but ill admit when you do you can do things quickly. I sorta felt the same about command line. Previous to this I was only dropping down when I had to but this was the first in awhile were I used it preferentially over the gui alternative so who knows.

          • Zykino@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            23 hours ago

            I find kakoune scheme better than vim, and helix got a better default package of it. (Basically it reverse Vim’s action noun, into selection action. So that you may have multi-cursors, and see your selection before deleting it).

            The downside is that GUI program may propose a VIM mode, but not (yet?) an kak/hx mode. Sad because to me it looks much more like a GUI does things.

  • berty@feddit.org
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    I’d like to use the terminal more often. What’s faster or better using the terminal?

    • ArcaneSlime@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 day ago

      Moving files, deleting files, text editing, converting files, stuff like btop, a lot really.

      When I started I watched a few “linux cli tutorial” and “bash basics” or “bash for beginners” type videos on youtube and followed along in my terminal like a class, pausing when needed. That’s all it took for me to be off to the races learning more because of just how easy it is to do a lot of stuff, and I still learn more all the time.

      Couple tips (really some of this applies regardless of cli or gui):

      • Keep offsite back-ups, just in case. Worst case scenario you reinstall and replace your files.

      • Be careful with sudo but otherwise you’ll be fine. That’s not to say don’t use sudo just be mindful.

      • Learn just the basics at first and then learn more as you go and get more comfortable, I kinda use the unix philosophy for it here and only learn it if I need it, most often.

      • You can save semi-commonly used commands to a txt file and reference it later, really helps for stuff you only use every now and again. There’s also the history command and ctrl+r but I still find the file useful.

      It really isn’t as hard as it had looked before I started, and I use it constantly now.

      • berty@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        Thanks! I’ll get into that. But how is moving/deleting files faster or better in the terminal? Isn’t it easier to just right click and move/delete?

        • ArcaneSlime@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 day ago

          I find sometimes the gui takes a while to manipulate say 300 folders. Like if I want to move all the mp4 files from a folder structure into another directory but leave everything else you can use something like

          find /path/to/piracy/directory/ -name '*.mp4' -exec cp -r {} /path/to/piracy/storage/ \;
          

          And it’ll send em on over.

          And I didn’t remember that command, I had it in a script, so to find it to post here I just typed:

          cat ~/Documents/scripts/scriptname/
          

          And hit enter, and it gave me the info in the file. Tbh it was even easier than that, with tab completion I just had to type:

          cat Doc[tab]/sc[tab]/sc[tab]

          But back to the piracy, then to delete everything left over from that first script (like .nfo files) just

          cd ~/piracy/directory/
          rm -r *
          exit
          

          And will remove everything instantly.

          To make it easier you can make a script with the first command, even chain it with the same for avi etc, and you could probably have it auto clean the source directory afterwards, but I like to do that manually. You can also (in most piracy programs) tell it to run a script on complete, so you could have that all automated by that process (if you don’t store them in an external drive like me.) And you can get way fancier with it too, I’m very much still learning, there’s way more that can be done pretty easily. I do still use the GUI sometimes too though and for some stuff it is easier, it’s definitely not an all or nothing thing, both is better!

          Also I’m totally not a pirate that was just an example…cough cough.

        • FauxLiving@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 day ago

          Oh, right now I’m sure that it is way easier to use the mouse, because most people have been practicing using the mouse and a GUI for years and years. Once you’ve had practice with the terminal and autocomplete you can do most tasks fast far quicker.

          Staring at this browser, see how long it would take you to grab your mouse, click the file explorer, navigate to /etc/, and then locate and open the fstab file (there are over 100 files and directories in this directory). 10 seconds? 15?

          I’m using a terminal called yakuake and it’s bound to F12. So if I press F12, a terminal window slides down in the top middle of my screen. It’s always on top as long as it is visible so nothing can take focus away. To do the same task I press: F12, type “cat /et” <tab key>“fs”<tab key> <enter key>. If I wanted to edit it, I’d type nvim instead of cat. If I wanted to copy it somewhere I’d type cp instead of cat and then press, at the end of the previous command: “./pro”<tab key>.

          If it’s a command that I’ve typed before, I can press CTRL+R in the terminal and it will open a search of my terminal command history. I can start typing part of the command and the search results will show me the top 25 commands that (fuzzy) matches what I’ve typed, I can press up and down to select the command I’m after, enter to put it into the command line.

          Once you’re in the mindset of thinking about problems from a terminal point of view there are a lot of useful applications. If you’d rather move files in a GUI-like experience (a TUI) you can use nnn, a TUI file manager. Still have to use a mouse to change music? Run mpd and ncmpcpp. nvim gives you a text editor, tmux the ability to open multiple terminal sessions inside of the terminal.

          Much like switching to Linux from Windows, it takes a bit of learning initially but that little bit of learning will pay dividends.

  • marighost@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    Good stuff, glad it’s working out for you! I use CachyOS with KDE and I can get by pretty easy using Dolphin for most of my file needs. I do use the terminal quite a bit managing the Debian server running our friend group’s Minecraft server though!

    • HubertManne@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      yeah and gui sometimes is the easier route like when moving over large parts of the file structure and your not repeating the action. I was just making a few folders and cleaning out a folder with to many disparate things when I realized its just much easier to make directories and move files over one or two folders especially when the names are similar.