File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ Example: Find out your external IP.
4646## Permanent aliases
4747Use aliases between sessions or even distros.
4848
49+ Find out what shell you have:
50+ ``` [echo](/man/echo) $0 ```
51+
4952Bash
5053``` [vim](/man/vim) ~/.bashrc ```
5154
@@ -68,6 +71,10 @@ Separated by double ampersands, the next command is executed only if the previou
6871
6972``` command1 && command2 ```
7073
74+ Separated by double pipes, the next command is executed only if the previous one failed.
75+
76+ ``` command1 || command2 ```
77+
7178## Command syntax
7279To find out the syntax of a command, it is best to check the manual page:
7380
@@ -96,6 +103,11 @@ A very useful tool that gives you general examples of how to use commands is TLD
96103| ** meta + f** | Forward one word |
97104| ** meta + b** | Back one word |
98105
106+ These are for the default emacs mode.
107+ There is also a [ vim] ( /man/vim ) mode:
108+
109+ ``` bindkey -v ```
110+
99111## Redirection
100112You can redirect standard input, output and error by adding these sequences after a command.
101113
You can’t perform that action at this time.
0 commit comments