Linux服务器常用基础命令

不定时更新一些经常用到的命令。

1.修改文件所有者

chmod new_owner file_path

new_owner为新用户名 file_path为文件路径

2.修改用户密码

sudo passwd username

username为用户名