centos系统基本操作命令
-
系统相关命令
查看系统版本: cat /etc/centos-release
系统更新: yum update
-
用户相关命令
增加用户: useradd [用户名]
设置密码:password [用户名] # 然后会提示输入用户密码
将用户加入sudo: visudo ; 然后在打开的文件的root ALL=(ALL) ALL行下添加 [用户名] ALL=(ALL) ALL
-
文件相关命令
Good code is short, simple, and symmetrical—the challenge is figuring out how to get there