用户工具

站点工具


linux:command

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:command [2016/09/26 10:08] – Add view disk usage command memorylinux:command [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1
行 2: 行 2:
  
 ===== User and Group ===== ===== User and Group =====
 +
 +Add a user:
 +
 +  useradd [username]
 +  passwd [username]   # set user login password
  
 List all groups on this system: List all groups on this system:
行 28: 行 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.1474855735.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)