手册页是您可以找到的最佳信息来源......并且触手可及:man mkdir
产生这个关于-p
switch:
-p, --parents
no error if existing, make parent directories as needed
用例示例:假设我想创建目录hello/goodbye
但不存在:
$mkdir hello/goodbye
mkdir:cannot create directory 'hello/goodbye': No such file or directory
$mkdir -p hello/goodbye
$
-p
创造了两者,hello
and goodbye
这意味着该命令将创建满足您的请求所需的所有目录,如果该目录存在,则不会返回任何错误.
About rlidwka
,谷歌对缩略词有很好的记忆力:)。例如,我的搜索返回了这个:http://www.cs.cmu.edu/~help/afs/afs_acls.html http://www.cs.cmu.edu/~help/afs/afs_acls.html
Directory permissions
l (lookup)
Allows one to list the contents of a directory. It does not allow the reading of files.
i (insert)
Allows one to create new files in a directory or copy new files to a directory.
d (delete)
Allows one to remove files and sub-directories from a directory.
a (administer)
Allows one to change a directory's ACL. The owner of a directory can always change the ACL of a directory that s/he owns, along with the ACLs of any subdirectories in that directory.
File permissions
r (read)
Allows one to read the contents of file in the directory.
w (write)
Allows one to modify the contents of files in a directory and use chmod on them.
k (lock)
Allows programs to lock files in a directory.
Hence rlidwka
means: 所有权限.
值得一提的是,正如 @KeithThompson 在评论中指出的那样,并非所有 Unix 系统都支持 ACL。所以可能是rlidwka
概念在这里不适用。