Hacker News new | past | comments | ask | show | jobs | submit login

> "help [ -e" doesn't work. The [ documentation also doesn't tell you what options are available

Well, knowing that `[` is the same as `test`, you can `man test` to see the available options.

Personally, I avoid `[` for `[[`. To see the options for that, I do `man bash`, then type `/\[\[`, hit Enter, and press `n` a few times until the list of options appears. It's in the "CONDITIONAL EXPRESSIONS" section.

Almost everything shown in this site is available in bash's manpage.

GNU's `ls` has most of its documentation in `info ls`.

There's no need to turn to websites. All documentation is available locally from the command line. If anything, it just requires a bit of skill in searching. With `man`/`less`, you search with `/` like I showed; in `info`, you search with <Ctrl-s>.

Also, `command [ --help` does work. It's not the same as the built-in, but it should be mostly the same.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: