iconic 发表于 2019-8-9 11:32:43

linux系统管理命令教程

添加一个普通用户:useradd test添加一个系统用户:useradd -r nginx改变账号真实姓名:chfn -f tiantian显示时间 :date更改时间:date –date ’10:00:00′退出当前的xshell:exit查询用户的资料:finger root将目前动作延迟一段时间,如延迟5分钟:sleep 5m暂停执行shell:suspend -f删除一个群组:groupdel test更改群组名称:groupmod -n test test01删除执行中的程序:kill -9 进程号显示用户最近登入信息:last列出登入系统失败的用户信息:lastb使用新的身份登入系统:login显示用户名称:logname退出系统:logout显示进程信息:ps -A设置程序运行时的优先级:nice -n 19 vi &显示系统状态:procinfo显示进程信息:top -c显示进程的关系:pstree重启系统:reboot关闭系统:halt登陆远程主机:rlogin 192.168.1.10远程命令执行:rsh -l test 192.168.1.10 /bin/ls改变用户的连接方式:sliplogin test立即关机:shutdown -h now指定用户执行命令:sudo -u test ls -l以根权限执行上一条命令:sudo !!列出目前的权限:sudo -l开启系统监视:swatch显示系统负载:tload指定记录文件:logrotate显示系统信息:uname -a删除用户账号:userdel test更改用户账号名称:usermod -l test test01锁定虚拟终端:vlock显示当前登入系统的用户:who切换账户:su – test显示当前用户:w查询用户是否存在:id test显示内存信息:free -h显示磁盘信息:df -h
页: [1]
查看完整版本: linux系统管理命令教程