this post was submitted on 27 Oct 2024
1302 points (99.2% liked)

linuxmemes

21603 readers
721 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 2 years ago
    MODERATORS
    you are viewing a single comment's thread
    view the rest of the comments
    [–] FreshLight 244 points 1 month ago (4 children)

    Oh fuck. I'll use this from now on. Except for if I won't use it next week. Then I'll forget about it because my memory is a damn sieve.

    [–] [email protected] 124 points 1 month ago (2 children)

    Just take the next step and make a text file you dump all these commands into and then forget about in a week. When you randomly stumble across it years from now you’ll be able to say “wow, I could have used this 10 months ago if I remembered it existed!”

    [–] [email protected] 55 points 1 month ago (2 children)

    I make a separate text file per command so I can search them!

    Which I dont.

    [–] [email protected] 33 points 1 month ago

    I usually print these out and put them in a safe deposit box at a bank so I never lose them

    [–] [email protected] 12 points 1 month ago

    We can store those text files in a terminal and search for them from the command line with man command!

    [–] [email protected] 5 points 1 month ago

    I keep a persistent "sticky note" (in KDE) drop down on my top bar where I copy/paste important commands, scripts, etc.

    I actually remember to use it sometimes.

    [–] [email protected] 12 points 1 month ago

    Use a systemd timer to send yourself a reminder. Discoverd them recently myself and honestly liking them more than cron.

    [–] [email protected] 5 points 1 month ago (1 children)

    I feel you. It’s however gotten a lot better since I turned some of these commands into abbreviations. They’re aliases that expands in place, more or less. Fish has them natively, I personally use zsh-abbr.

    [–] [email protected] 2 points 1 month ago (1 children)

    Fish is super useful, but I usually only start it up if I'm having trouble finding or remembering a command.

    [–] [email protected] 3 points 1 month ago (1 children)

    Yeah, it’s a good shell. I’ve found the lack of compatibility with some bash tools to be inconvenient enough that I just went back to zsh and found alternatives for the parts that I liked about it. Works well enough for me.

    [–] [email protected] 1 points 1 month ago (1 children)

    I'm relatively new to Linux in general (have only been on it for about a year and a half, but have taken to it like a fish to water), so forgive me if this is a dumb question, but what are some benefits to using zsh over bash? Are there any cons?

    [–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

    Honestly, it’s just another shell. Both Bash and ZSH happen to be mostly POSIX compliant, so stuff that works for Bash tends to work with ZSH too. For me it’s mostly just about the stuff I can add to it - I use the antidote plugin manager to get additional autocomplete, syntax highlighting, suggestions, async prompt updates, that kind of thing.

    [–] [email protected] 1 points 1 month ago

    Using a large shell history (currently at 57283 entries) along with readline (and sometimes fzf) has served me well over the past few yeas when trying to remember past commands.