用户工具

站点工具


linux:command

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:command [2016/10/23 21:22] – [User and Group] Add section of adding user memorylinux:command [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1
行 33: 行 33:
  
   ncdu -x -q   # ncdu packages is required   ncdu -x -q   # ncdu packages is required
 +
 +===== rename =====
 +
 +> Usage:
 +> rename [options] <expression> <replacement> <file>...
 +
 +
 +Remove file name prefix:
 +
 +  rename -v "[filenamePrefix-]" "" ./*
 +
 +===== grep =====
 +
 +'grep' a continuous stream (e.g. ''tail -f'')
 +
 +  tail -f file | grep --line-buffered my_pattern
  
 ===== Reference ===== ===== Reference =====
  
   * [[https://wiki.archlinux.org/index.php/Users_and_groups|Users and groups - ArchWiki]]   * [[https://wiki.archlinux.org/index.php/Users_and_groups|Users and groups - ArchWiki]]
 +  * [[http://stackoverflow.com/a/7162898|How to 'grep' a continuous stream?]]
linux/command.1477228954.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)