Earlier quoted context omitted.
> Start with the basics of your shell. The internet is full of good info (like here for example That is not their shell. OP is on macOS, meaning their shell is Zsh. They should not be reading a comprehensive (and frankly very boringly structured, it starts with sections and sections of details irrelevant to a curious beginner) guide on Bash 5.2, which isn’t available on macOS by default.
As I said, it was only an example. I had no idea what shell they'd be using or that macOS apparently left them with Zsh and no other option. Apple's website suggests otherwise https://support.apple.com/guide/terminal/change-the-default-...
Ask HN: I want to learn to use the terminal, where do I start
21–30 of 57 posts
Re: Ask HN: I want to learn to use the terminal, where do I start
#22Aside: zsh is standard on macs now, thanks to Apple's lawyers freaking out over bash license terms. If you want to change to industry standard bash (I did) then there are three ways to do it. Short: csh -s /bin/bash Others: system settings or terminal settings. [1] https://support.apple.com/en-gb/guide/terminal/trml113/mac [2] https://www.howtogeek.com/444596/how-to-change-the-default-s... You may want to update bash…
Just start with the built-in zsh. Nearly everything you learn with zsh will work the same over on bash and Linux.
Also, I suggest resisting the urge of listening to those telling you to install oh-my-zsh. IMHO, it's a bloated plugins manager (no disrespect to robby <3) and introduces too much magic for beginners. Start basic.
Re: Ask HN: I want to learn to use the terminal, where do I start
#23Is there any point in just learning to use a tool without making something with it? You won’t learn to use a saw until you build something with it. Learn to program and you will be required to learn how to use the terminal.
Re: Ask HN: I want to learn to use the terminal, where do I start
#24Is there any point in just learning to use a tool without making something with it? You won’t learn to use a saw until you build something with it. Learn to program and you will be required to learn how to use the terminal.
There certainly is. I've been using Linux/Mac terminal off and on for a couple of decades and have never "built" anything with it. Certainly no programming or even shell scripting leaves out some of the usefulness of the command line, but knowing the commands to get individual tasks done is very useful.
Re: Ask HN: I want to learn to use the terminal, where do I start
#25Re: Ask HN: I want to learn to use the terminal, where do I start
#26Re: Ask HN: I want to learn to use the terminal, where do I start
#27If you are interested in text processing, I wrote interactive TUI apps for exercises on grep, sed, awk and coreutils: https://github.com/learnbyexample/TUI-apps
Re: Ask HN: I want to learn to use the terminal, where do I start
#28Earlier quoted context omitted.
> Start with the basics of your shell. The internet is full of good info (like here for example That is not their shell. OP is on macOS, meaning their shell is Zsh. They should not be reading a comprehensive (and frankly very boringly structured, it starts with sections and sections of details irrelevant to a curious beginner) guide on Bash 5.2, which isn’t available on macOS by default.
As I said, it was only an example. I had no idea what shell they'd be using or that macOS apparently left them with Zsh and no other option. Apple's website suggests otherwise https://support.apple.com/guide/terminal/change-the-default-...
The point is precisely that the OP likely has no idea what their shell is. I wasn’t lobbying a criticism, but a correction so they are aware.
Regarding the example guide, I do think it’s not a great one for total beginners. someone with interest in learning the Terminal should be given an interesting resource that let’s them play a bit with commands and understand what it’s about before drowning them in theory and technical information.
Re: Ask HN: I want to learn to use the terminal, where do I start
#29Aside: zsh is standard on macs now, thanks to Apple's lawyers freaking out over bash license terms. If you want to change to industry standard bash (I did) then there are three ways to do it. Short: csh -s /bin/bash Others: system settings or terminal settings. [1] https://support.apple.com/en-gb/guide/terminal/trml113/mac [2] https://www.howtogeek.com/444596/how-to-change-the-default-s... You may want to update bash…
Interesting! Got a pointer ?
Re: Ask HN: I want to learn to use the terminal, where do I start
#30A good one to start with on mac is probably Finder.
Type 'man man' to learn about man pages.
Read the pages for 'cd', 'cp', 'rm', 'mv', 'find', 'cat'.
Try each one.
Move around the filesystem, move or rename some files.
That's all a good part of what you'll be doing on the cli.