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