Writing /share/Web/wiki/data/cache/f/fdab4c6c6e9249ee3a5a8370dcb98581.metadata failed
linux:linux常用命令
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| linux:linux常用命令 [2025/05/20 09:15] – [5. cdls] user01 | linux:linux常用命令 [2025/05/21 10:04] (当前版本) – [6. diff] user01 | ||
|---|---|---|---|
| 行 81: | 行 81: | ||
| alias cd 'cd \!*; ls' | alias cd 'cd \!*; ls' | ||
| + | alias cd 'cd \!:^; ls' | ||
| + | |||
| + | 使用时需要在前面加\ | ||
| + | !:^ 表示第1个参数 | ||
| + | !:$ 表示最后1个参数 | ||
| + | !:1 表示第1个参数 | ||
| + | !:2 表示第2个参数 | ||
| + | !* 表示所有参数 | ||
| + | !:* 表示所有参数 | ||
| + | !:x-y 表示从x到y位置的参数 | ||
| + | !:x* Like x-$( $ is the last argument) above. | ||
| + | !:x- Like x* except that word$ is omitted. | ||
| - | \!:^ Inserts the first argument from the command line | ||
| - | \!:* Inserts all of the arguments from the command line | ||
| - | \!:x-y Inserts a range of words; from word x to word y. | ||
| - | \!:x* Like x-$( $ is the last argument) above. | ||
| - | \!:x- Like x* except that word$ is omitted. | ||
| </ | </ | ||
| + | ===== - diff ===== | ||
| + | |||
| + | <code bash> | ||
| + | diff -r -q dir1 dir2 | grep differ | awk ' | ||
| + | |||
| + | alias tt 'diff -r -q \!* | grep differ | awk ' "'" | ||
| + | </ | ||
| ===== - 管道 ===== | ===== - 管道 ===== | ||
linux/linux常用命令.1747703706.txt.gz · 最后更改: 2025/05/20 09:15 由 user01