Why use the terminal in daily non-programming life

command lineterminal

Disclaimer: I'm a Windows boy awaiting his first mac. I never bothered learning/using command-line interfaces.

I've been looking at the Terminal Tips and Tricks topic and I don't see how any of those commands would be faster than using the GUI.

For example, someone explained how to search with spotlight, using the terminal. How is this better than just using spotlight?

Could you guys give some real-life examples of situations where you really benefited from your terminal knowledge ?

Best Answer

Aside for development-related purposes, the command line is an excellent tool for automating actions, scripting, and a host of other things that are probably faster than doing them in say, the Finder.

For instance, sometimes I'll be in a folder and want to remove a certain set of files (say, Hello-1.jpg, Hello-2.jpg, Hello-3.jpg, and so on). In the Finder, I'd have to manually select all these files (my Finder is normally set to icon view, so it's a pain to select many files), then move to the trash (granted, I do use the shortcut), and then empty the trash (again, shortcut). For some people, this is convenient enough, but when you get used to using the Terminal, you find that simply typing rm Hello-* is a much faster way to do it.

Of course, this is only one example (a complicated process like moving files to a server or batch resizing photos will gain even more from using the Terminal), but the more you'll look into the topic, the more useful you'll find it. If you're willing to adopt using the Terminal, there's really no reason not to (you'll get slightly less productive in the beginning, but you'll get much better fast).