this post was submitted on 21 Nov 2023
868 points (97.5% liked)
linuxmemes
21251 readers
1531 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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!
founded 1 year ago
MODERATORS
I like the terminal but don't remember all the arguments. I find that clunky. That's my main issue with it. (I'm open to suggestions if anyone has any)
Lots of terminal commands come with tab-completion out of the box (start typing a command, hit tab to autocomplete, hit tab twice to bring up a list of available options), or have tab completion scripts you can install after the fact.
Lacking tab completion, any worthwhile terminal commands will at least support a
-h
/--help
flag that will print out a help menu summarizing the different options, or you can open up the man pages to see even more detailed documentation withman [whatever terminal command]
. If the terminal command doesn't have either of those, I'd recommend against using it.I highly recommend zsh. It takes a moment to setup initially, but you can use oh-my-zsh to just skip that part and use one of the many, many presets, and it supports plugins, of which there are many. It gives you tab support for so many popular commands, you will never need to remember them, and it has a lot of small improvements that makes your terminal life a breath. For example, if you do cd tab in bash, it will give you a list of subdirrectories. If you do the same in zsh, it will give you that list and a cursor that you can use to navigate said list, so instead of typing the dir, you can do cd tab tab tab enter
For someone that doesn't like the cli, I'd recommend fish instead of that as it just works with no setup.
I have very little experience with fish, but by my first experience zsh was way better at handling wildcard matching, and for me it's half of the stuff I do. You are trying to open a file and all you remember is that it has some substring in the name probably, you just type some of it, double tab, and you have all the files that match. At the time I was trying it, fish couldn't do it.