跳至内容
sdvcrx's wiki
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
Export to Markdown
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
linux:command
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== Command ====== ===== User and Group ===== Add a user: useradd [username] passwd [username] # set user login password List all groups on this system: cut -d: -f1 /etc/group List user's groups: groups Add a //user// to //group//: gpasswd -a <userName> <groupName> Remove //user// from //group//: gpasswd -d <userName> <groupName> **Reload //group// without logout:** newgrp <new group name> ===== Disk ===== View disk usage: 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 ===== * [[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.txt
· 最后更改: 2023/12/03 10:24 由
127.0.0.1
页面工具
显示页面
过去修订
反向链接
Export to Markdown
回到顶部