Linux - one command per day--mkdir
2012-01-09 09:23
253 查看
名称: mkdir
使用权限:于目前目录有适当权限的所有使用者
使用方式:mkdir [-p] dirName
说明:建立名称为 dirName 之子目录。
参数:-p 确保目录名称存在,不存在的就建一个。
范例:
在工作目录下,建立一个名为 AAA 的子目录 :
mkdir AAA
在工作目录下的 BBB 目录中,建立一个名为 Test 的子目录。若 BBB 目录原本不存在,则建立一个。(注:本例若不加 -p,且原本 BBB目录不存在,则产生错误。)
mkdir -p BBB/Test
使用权限:于目前目录有适当权限的所有使用者
使用方式:mkdir [-p] dirName
说明:建立名称为 dirName 之子目录。
参数:-p 确保目录名称存在,不存在的就建一个。
范例:
在工作目录下,建立一个名为 AAA 的子目录 :
mkdir AAA
在工作目录下的 BBB 目录中,建立一个名为 Test 的子目录。若 BBB 目录原本不存在,则建立一个。(注:本例若不加 -p,且原本 BBB目录不存在,则产生错误。)
mkdir -p BBB/Test
相关文章推荐
- Linux - one command per day--cmp
- Linux-- one command per day--cat
- Linux - one command per day--diff
- Linux - one command per day--du
- Linux - one command per day--whereis
- Linux - one command per day--cd
- Linux - one command per day--pwd
- Linux - one command per day--more
- Linux - one command per day--less
- Linux - one command per day--stat
- Linux - one command per day--mv
- Linux - one command per day--ls
- Linux - one command per day--chown
- Linux - one command per day--chmod
- Linux - one command per day--find
- Linux - one command per day--rmdir
- Linux - one command per day--rm
- Linux - one command per day--chatt
- Linux - one command per day--cp
- Linux - one command per day--ln