用户工具

站点工具


linux:linux常用命令

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:linux常用命令 [2025/05/20 09:19] – [5. cdls] user01linux: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 to word y.+!:x-y 表示从xy位置的参数
 !: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.
行 95: 行 97:
  
  
 +===== - diff =====
 +
 +<code bash>
 +diff -r -q dir1 dir2 | grep differ | awk '{print "gvimdiff",$2,$4}'
 +
 +alias tt 'diff -r -q \!* | grep differ | awk ' "'" '{print "gvimdiff",$2,$4}' "'"
 +</code>
  
 ===== - 管道 ===== ===== - 管道 =====
linux/linux常用命令.1747703967.txt.gz · 最后更改: 2025/05/20 09:19 由 user01

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki