首页 > 系统服务 > 详细

测试工程师常用Linux命令(4)

时间:2020-07-22 23:28:11      阅读:78      评论:0      收藏:0      [点我收藏+]

-----接着上次的继续写-----

功能项 命令实例 作用 重要性
  chmod 777 hello.txt 将hello.txtde 权限设置为rwxrwxrwx
  chmod 643
hello.tx
将 hello.txt 的权限设为 rw-r---wx
  chmod 777
/opt/tes
将目录/opt/test 的权限更改为 777
  chmod -R 755
/opt/test
将目录/opt/test 及其下所有文件和子目录的权限更改
为 755
       
chown chown mary hello.txt 将 hello.txt 的文件所有者改为 mary
  chown mary
/opt/test
将目录/opt/test 的所有者改为 mary
  chown -R mary
/opt/test
将目录/opt/test 及其所有子目录和文件的所有者改为
mary
       
chgrp chgrp test hello.txt 将hello.txt所在的组改为test
  chgrp mary /opt/test 将目录/opt/test所在的组改为mary
  chgrp -R mary /opt/test 将目录/opt/test及所有子目录和文件所在组改为mary
       
passwd passwd mary 修改mary的密码

测试工程师常用Linux命令(4)

原文:https://www.cnblogs.com/luffybest/p/13363135.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!