by duopixel · 14y ago · 0 comments
$ls -h
This is what I've seen with most command line tools, but it doesn't work. So then I tried...
$ls --help
The output is
> ls: illegal option -- - > usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
What? I had to google it. Ok so...
$man ls
Oh, cool, a list of the options, finaly. Now, let's see what ls -a does:
> -a Include directory entries whose names begin with a dot (.).
If I were looking for invisible files I'd have absolutely no idea this is the option I need to use.
Now, I completely understand that the power of the command line relies on its consistency, I'm confident that—at some point—I'm going to be able to grasp it's elegance. But, for now, I feel like a foreigner in a new country who just knows a few phrases and struggles greatly to understand what is being said to me. Saying that the command line is easy is like saying that English is easy.
In the same way, searching for "how can I learn to use the command line" gives you a bunch of guides - of varying quality, of course - that explain the basic commands in a clearer way.
Well, right now it's as if we didn't teach English (or, rather, any foreign language) in schools and then somehow 'magically' expected people to pick up the single most important foreign language for communicating in modern life.
No, it's not easy, but the basics are really not hard to learn if started early and kept up consistently. Just like any other skill that we teach in schools.