mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-25 01:16:32 +08:00
Merge pull request #410 from hashhar/patch-1
Checking if a command is an executable, shell builtin or alias.
This commit is contained in:
commit
2c1826af7a
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ Notes:
|
|||
|
||||
- Learn at least one text-based editor well. Ideally Vim (`vi`), as there's really no competition for random editing in a terminal (even if you use Emacs, a big IDE, or a modern hipster editor most of the time).
|
||||
|
||||
- Know how to read documentation with `man` (for the inquisitive, `man man` lists the section numbers, e.g. 1 is "regular" commands, 5 is files/conventions, and 8 are for administration). Find man pages with `apropos`. Know that some commands are not executables, but Bash builtins, and that you can get help on them with `help` and `help -d`.
|
||||
- Know how to read documentation with `man` (for the inquisitive, `man man` lists the section numbers, e.g. 1 is "regular" commands, 5 is files/conventions, and 8 are for administration). Find man pages with `apropos`. Know that some commands are not executables, but Bash builtins, and that you can get help on them with `help` and `help -d`. You can find out whether a command is an executable, shell builtin or an alias by using `type command`.
|
||||
|
||||
- Learn about redirection of output and input using `>` and `<` and pipes using `|`. Know `>` overwrites the output file and `>>` appends. Learn about stdout and stderr.
|
||||
|
||||
|
|
Loading…
Reference in a new issue