chmod的Linux终端八进制形式 [英] Linux terminal octal form of chmod

查看:156
本文介绍了chmod的Linux终端八进制形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将目录设置为

-rwx r-x r-x 

使用chmod的八进制形式

using the octal form of chmod

在chmod之后我应该在终端中键入什么?
以及如何计算八进制数字?

what should i type in the terminal after chmod? and how do i calculate the digits in octal form?

推荐答案

它是这样的:

rwx rwx rwx
421 421 421

所以你想要的是

rwx r-x r-x
421 4-1 4-1
  7   5   5

因此您键入

chmod 755 nameofdirectory

这篇关于chmod的Linux终端八进制形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆