Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
linux:bash [2022/02/28 11:51] – [Basic commands] mh | linux:bash [2022/02/28 14:52] – mh | ||
---|---|---|---|
Line 63: | Line 63: | ||
$ echo $name | $ echo $name | ||
john | john | ||
+ | </ | ||
+ | ---- | ||
+ | |||
+ | === type === | ||
+ | |||
+ | Displays information on a command, and where it is stored. | ||
+ | |||
+ | //Note that the **type** command and the **which** program are different and give different outputs// | ||
+ | |||
+ | **Example** | ||
+ | <code bash> | ||
+ | $ type ls | ||
+ | ls is aliased to 'ls -al' | ||
</ | </ | ||
---- | ---- | ||
Line 106: | Line 119: | ||
They can be a filename, a variable name, the name of a program or just a litteral. | They can be a filename, a variable name, the name of a program or just a litteral. | ||
+ | |||
+ | Multiple arguments can be used, separated by a blank space | ||
</ | </ | ||
Line 328: | Line 343: | ||
As a result, both file descriptors are connected to the same stream. | As a result, both file descriptors are connected to the same stream. | ||
+ | Be careful not to write something like $ ls -l a b > | ||
</ | </ | ||