Live data from Hacker News

Ask HN: I want to learn to use the terminal, where do I start

news.ycombinator.com

1–10 of 57 posts

Re: Ask HN: I want to learn to use the terminal, where do I start

#2
I originally learned much from the bash programming guide and advanced bash programming guide. While Mac uses zsh, you can still learn quite a bit that will carry over, and you can always run bash scripts with the `#!/bin/bash`

The Linux Documentation Project (TLDP) is a great resource generally

https://tldp.org/guides.html

Re: Ask HN: I want to learn to use the terminal, where do I start

#7
The best way to learn the terminal is to use it. Whatever is that you do in your working day, do it from inside the terminal.

Any problem you come up with, solve it by seaching or asking GPT.

Of course, this presupposes that you do have the basic understanding of how file system is structured, have basic knowledge of shell commands (cd, ls, cp, gzip, etc...). If not, those are not difficult (at a begginer level) and just google "how to use command line" as there are countless resources out there. This is just one them: https://developer.mozilla.org/en-US/docs/Learn/Tools_and_tes...

But I would actually suggest one particular course, that is actually not targeted at begginers (in my opinion). That course is Destroy All Software (https://www.destroyallsoftware.com/screencasts/catalog) and it will teach you to really appreciate the beauty of the shell/terminal (yes, those are different but it really doesn't matter at this point). The course is not only about the terminal, but you will find gold nuggets in that series of screencast that are about the terminal and the philosophy of using it. There are few free episodes and one that I can specifically point to regarding learning the concepts is "Tar, Fork, and the Tar Pipe" (https://www.destroyallsoftware.com/screencasts/catalog/tar-f...).

If you want to be proficient in the shell wizardry, it will take time. But it's worth it.

Re: Ask HN: I want to learn to use the terminal, where do I start

#10
A useful first step is to stop using Finder. Instead perform the required operations from the terminal. When you don't yet know how, Google it. The first couple of useful commands are ls: list files (lots of options); cd: change directory; cp:copy; mv:move -- aka rename; vi:edit text file; file: what type of file is it? ... etc.

If that's too daunting, then still have Finder open, but try to match the operations with above and more.

Post reply on HN