用户工具

站点工具


linux:linux常用命令

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:linux常用命令 [2025/05/20 09:15] – [5. cdls] user01linux: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. 
 </code> </code>
  
  
 +===== - 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常用命令.1747703706.txt.gz · 最后更改: 2025/05/20 09:15 由 user01

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki