I’m a Windows user of all life. But I love Linux. And these last two years after so many time I started learning it in deep . But one thing is bugging me is that I am those persons that has bad times remembering names, words… imagine commands… Even after using it so much I remember some basics but I’m struggling a lot and I have to go back to notes constantly to do some basic operations. Even worst after trying multiple distro from from different upstreams that commands are … Different. What would be your recommendations to help me. Are there tools to help this issue ? My guess is that A LOT of people happens the same. And it’s one of the reasons Linux has such a slow adption . Because is excellent and full of capabilities.

  • blue_potato@lemm.ee
    link
    fedilink
    English
    arrow-up
    8
    ·
    11 hours ago

    It happens to you, to me and to every UNIX user since the 70s. Your system is (or should be) full of docs and tools to get help. One thing that I noted over the years, when we have new people at work, is that they don’t known how to get help from programs or they don’t known how to get help from their systems and when they struggle with anything, doesn’t matter how basic, they go to the web for help. I always show them this: apropos man help

    What was that command to compress files? apropos compress Oh! it was gzip

    What was that command to do whatever with the GRUB? apropos grub Oh yeah! update-grub

    What about that command to download files? apropos download Oh! it’s wget

    The next tip should be learn how to use and navigate in the man pages, man have it’s own man page; man man

    There are different sections, section 1 is the default, you don’t need to specify, so you can just; man bash

    But if you want to get help from configuration files you should type; man 5 sysctl.conf

    Also, almost every program have a built in help compiled with the program code, you usually call it with --help or -h, sometimes just help and other times just call the program without parameters and it should print it.

    Other people already suggest the cheat sheets, very useful especially for programas like vim or emacs, some of them come like a template to create a cube, so you print it and then craft it (like an origami) and you can have it in your physical desktop.

    Last thing; be patience, your are in the rigth path, there’s always more than one way to do things, you just need to find your own way.

    • LovableSidekick@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 hours ago

      I made a comment about how easy it was to learn VMS was (an 80s/90s OS). How do I print a file? I’ll try PRINT. Okay, that works. How do I make 6 copies? PRINT /COPIES=6. Great! But how do I print to a file? I’ll try PRINT /OUTPUT=filename. Well whaddya know!

      I loved that OS like a brother. Sadly it eventually went the way of every proprietary system.

      • blue_potato@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 hours ago

        This reply made me smile. You are not going to believe me but I’m a millenian… and I worked with OpenVMS (yes, you guess rigth, in a bank). May I tell you? Yes, sorry;

        2012, first week as a SysAdmin in that hell bank, I made the mistake of saying “My fetish are old OS and computers” (this is true), “Well, we have this four VMS baremetal machines that nobody wants to touch and if they fail we fuck up all”. After learning to be quiet and don’t speak too much I found a VMS manual in TPB or some other site (I remebered downloading it as a torrent) and started using the pre ones (two of this machines where pre and two prod). I found that AWK was installed and a POSIX Korn Shell was sleeping there and nobody knew it, with only that I did a lot of stuff like Nagios custom monitoring (yes, this machines wasn’t in the monitoring system, if there is not a red dot isn’t broken) and automated things like the IPLs. I’m not going to say that VMS is a brother, but I feel comfortable with it even for a UNIX admin. The best part of this boring story is that, some months ago I was chatting with one old coworker that is stills in that bank, they still have this machines and they still use my shitty scripts for monitoring and getting data and statistics, can’t believe (and a little proud of) that a OS that was developed before I was born is still up and running my programs.

        • LovableSidekick@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 hours ago

          Not a boring story at all, in fact it’s Awesome! It’s been so long since I touched VMS I would probably be lost now, but I wrote tons of apps and was a sysadmin for a couple years - which I really enjoyed, as 90% of that job was running backups and installing updates, leaving plenty of time to just play around. I missed writing apps, so I made a visual status monitor that let me look at running processes and pause, restart or kill them. My last exposure to VMS was when I worked at Fred Hutchinson Cancer Research Center in 2007 or 8 - a group there still had a VaxCluster running, but I never worked on it. Today there is still OpenVMS, mostly run on emulators by retro computing hobbyists I think.

  • verdigris@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    12 hours ago

    Find a cheat sheet. There are hundreds out there – you probably want one for basic terminal commands, and one for whatever package manager you’re currently using.

    The history command is also great if it’s something you do fairly often, but not often enough to remember clearly.

  • serenissi@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    12 hours ago

    Unless you want to increase productivity in specific field (say some kinds of software development) you won’t even need to remember anything more than cat, ls etc. In those specific usecases you’ll become habituated to the command you use frequently, nobody becomes a grep ninja on day 0.

    Whenever I need something mildly complex with ffmpeg or imagemagick, the right command is just a web search away, I rarely remember syntax of these anyway. I find commands less obvious and harder to find for windows shell (technically powershell is cross platform btw), but maybe that’s because I’m not much familiar with windows-ism’

    Tip: whenever you encounter a useful command syntax/one liner, save it with brief description. I find konsole’s built in quick commands quite handy, some other terminals probably have such features too. Otherwise a simple markdown list is enough.

  • LovableSidekick@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 hours ago

    Back in the ancient pre-Internet days I worked for many years with a system called VMS made by Digital Equipment Corp (aka DEC), now long gone. VMS was a dream to use - every command and option was an actual word, and you could abbreviate commands and options any way you wanted, As long as you were unambiguous, it would figure out what you meant. So easy to learn, and felt so natural. Based on that alone I thought VMS would become more popular than Unix, with its cryptic commands, and those single-letter options that are sometimes the first letter of something obvious and other times seem totally random. But internally VMS wasn’t structured as well - for example, piping output from one command to another was possible, but it wasn’t geared for that like Unix is. There was also no free version of VMS, and it only ran on DEC hardware, so not that many people even knew about it. The dawn of Linux for PCs was essentially the nail in the coffin for VMS. But I do miss that CLI.

  • x00z@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    15 hours ago

    I have around 10 “linux extract tar archive” online searches last year alone.

    • Pika@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      13 hours ago

      I default to tar -xvf and if that fails I google

      I remember it due to the trinity on the keyboard, x skip a letter v then force the tip with f

      eXtract Verbosely File just never really caught on for me

  • SayCyberOnceMore@feddit.uk
    link
    fedilink
    English
    arrow-up
    4
    ·
    16 hours ago

    I think 90% of the comments here are “write your own notes“ - which is possibly over simplistic.

    Everyone’s different but IMHO:

    The brain is better for imagination than long term storage. So if you’re stuck trying to remember some obscure command(s), it’s just better to use something else to store that on.

    But when the brain understands the core concepts well enough, the details come together as habits (where repetition comes in).

    So, if you’re unable to recall something, take some time to think / remind yourself about the underlying concepts and why that’s the command - next time it’ll be easier, eventually it’ll be effortless.

    I had to learn some strange concepts for work during a deep technical troubleshooting session on a client’s system and the commands were like just facemashing the keyboard… I’ve no idea what those commands are now (written down), but I can recall what / why I was doing them and that was the key… for me.

    (Using computers since '80s)

    • geography082@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      6 hours ago

      But when the brain understands the core concepts well enough, the details come together as habits (where repetition comes in). This is the way. Understanding core subjects then is easier to connect and recall stuff.

  • jjffnn@feddit.dk
    link
    fedilink
    arrow-up
    10
    ·
    20 hours ago

    I use a snippet manager called keep.
    It runs in the terminal, and helps remember commands. I use it for remembering commands with lots of flags and parameters that i don’t use often. But it can be used to remember any command you need.
    You can also add comments to each command to remind you what it does.
    I add the command i need to remember with
    keep new
    And when i forget it i can run
    keep list
    To get a list of commands.
    It can do more, but i’ve only ever used those two functions.

  • Pika@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    13 hours ago

    Practice.

    Practice.

    Practice.

    That’s really the best I can give you. The more you use the commands the easier they come to you.

    Even novices can struggle with the command line. Don’t be afraid to search online for answers. I still need to look up arguments for things that I don’t use daily and I’ve been using Linux for almost 20 years now. Duck duck go and man are your friends.

    One thing that I have found nice is using a shell that remembers what you have typed in the past because sometimes I will remember part of a command but not the whole thing, for example fish shell remembers commands and will start to auto fill commands that are typed as long as I have the beginning of the command correct and as long as I have typed the command in the past, which works wonders when you’re doing similar commands but with different file names or you are trying to remember the more advanced portions of git

    A side note that I want to add regarding alternative shells be aware that every shell has its own strengths and weaknesses, for example fish shell is amazing for auto completion and plug in support, but it’s downside is it’s not compatible with standard bash Scripts and scripting as a whole on it is pretty mediocre

  • Alphonse@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    ·
    23 hours ago

    I suggest having a GNU command cheatsheet set as your wallpaper or getting a Linux cheatsheet deskmat.

    Repetition is key and eventually you will get the hang of it.

    • shai_hulud@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      15 hours ago

      This. If you do a search for Linux command wallpaper, you’ll find a version I used to get myself going.

      My old team was a small windows team and a large *nix team. I was always scrounging for work, and I had been playing with Linux and bsd/Mac for a awhile. My manager added me to the patching team with a shadow. I was good within a few months for most things.

      It’s best if you have a goal in mind, like with programming.

  • Integrate777@discuss.online
    link
    fedilink
    arrow-up
    3
    ·
    21 hours ago

    I remember the basic filesystem commands like ls, cp, mv, rm, cat etc, but I generally don’t remember much more than that. Even so, I still use the GUI file manager/software center pretty often, there’s no reason why I have to force myself to use the terminal all the time.

    I have an app on my phone to search for commands that I barely use and don’t remember. Don’t worry that much about it if you aren’t a professional system administrator or other such jobs.

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

    First of all, we are ALL in the same boat. Newcomers from whatever OS to professionals alike, we all struggle to remember commands and their idiosyncratic syntax.

    Now that this is out of the way, namely that you are not “special” in having difficulties there, a little challenge. How do YOU normally do when you are learning something new? Typically when people do that, e.g. at school or while doing a professional training, they take notes. Are you doing that? I know it might sound “strange” but learning Linux is… well fundamentally learning so yes you can use whatever tools and techniques for that too. So… here are MY notes https://fabien.benetou.fr/Tools/Shell which will probably be rather pointless to you but at least prove that I’m not suggesting something I didn’t try first.

    TL;DR: yes, use all the tools & tricks recommended here (IMHO with reverse-i-search first) but don’t forget to actually take notes!

    • geography082@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      Thank you! i will check them. Yep im a long time user of Obsidian and i have notes everywhere. But going to them , when i dont have much free time to spend, it also feels like a tool would be amazing to simplify the get into complex command.

      • utopiah@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        37 minutes ago

        It’s a balance, namely you are probably wasting time if you jolt down literally everything… but also what you don’t write down and forget, have no way to backtrack, will also waste time.

        IMHO it’s the process itself that matters, namely that by taking the time to write down, organize, lookup, you gradually have to do it less and less because you are more conscious about what you know, what you don’t, and adapt accordingly.

        If you do find a better way, based on a tool or not, please do share back!

  • ouch@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    20 hours ago

    Stick to one distribution. Using notes is fine. Make aliases if necessary. You will learn with repetition.