64、shell命令,mv,rm,mkdir
2011-10-17 20:22
155 查看
1、mv
1)mv- move (rename) files
mv [OPTION] source dest
mv [OPTION]... SOURCE... DIRECTORY
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
2)选项
① -f, do not prompt before overwriting
② -i, prompt before overwrite
③ -n, --no-clobber do not overwrite an existing file
If you specify more than one of -i, -f, -n, only the final one takes effect.
④ -u, --update move only when the SOURCE file is newer than the destination file or when the destination file is missing
⑤ -v, --verbose explain what is being done
2、rm
1)rm - removes each specified file. By default, it does not remove directories.
rm - remove files or directories
rm [OPTION]... FILE...
2)选项
① -f, ignore nonexistent files, never prompt
② -i prompt before every removal
③ -r, remove directories and their contents recursively
④ -v, explain what is being done
3、mkdir
1)mkdir - make directories
mkdir [OPTION]... DIRECTORY...
2)OPTION
① -m, set file mode (as in chmod), not a=rwx - umask
② -p, no error if existing, make parent directories as needed
③ -v, print a message for each created directory
4、rmdir
参考
【1】 man手册
1)mv- move (rename) files
mv [OPTION] source dest
mv [OPTION]... SOURCE... DIRECTORY
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
2)选项
① -f, do not prompt before overwriting
② -i, prompt before overwrite
③ -n, --no-clobber do not overwrite an existing file
If you specify more than one of -i, -f, -n, only the final one takes effect.
④ -u, --update move only when the SOURCE file is newer than the destination file or when the destination file is missing
⑤ -v, --verbose explain what is being done
2、rm
1)rm - removes each specified file. By default, it does not remove directories.
rm - remove files or directories
rm [OPTION]... FILE...
2)选项
① -f, ignore nonexistent files, never prompt
② -i prompt before every removal
③ -r, remove directories and their contents recursively
④ -v, explain what is being done
3、mkdir
1)mkdir - make directories
mkdir [OPTION]... DIRECTORY...
2)OPTION
① -m, set file mode (as in chmod), not a=rwx - umask
② -p, no error if existing, make parent directories as needed
③ -v, print a message for each created directory
4、rmdir
参考
【1】 man手册
相关文章推荐
- linux常用命令mkdir,cd,pwd,rmdir,cp,mv,rm,
- Linux基础之命令练习Day1-init,who,date,cal,man,clear,passwd,su,whoami,mkdir,touch,rm,cp,mv,head,tail,more...
- linux命令: touch, mkdir, cp, mv, rm
- linux常用命令1cd、ls、快捷键、mkdir、rmdir、rm、cp、mv、cat等
- Linux基础目录处理命令 mkdir cd pwd rm cp mv
- 目录处理命令mkdir,cd,pwd,rmdir,cp,mv,rm
- *Linux常用命令学习1---(安装、文件系统、目录操作命令cd ls mv cp rm mkdir、链接命令ln……)
- ubuntu mkdir , cp , mv,rm 命令
- linux 基本命令 mkdir rm touh eho vi cat cp mv
- 02.linux的文件系统简介、查看目录ls命令、切换目录cd命令、创建目录mkdir、删除目录rm、移动重命名mv、创建文件touch、拷贝cp
- Linux基础之命令练习Day1-init,who,date,cal,man,clear,passwd,su,whoami,mkdir,touch,rm,cp,mv,head,tail,more,less,echo
- Linux命令:目录重命名与移动mv,删除文件rm,目录创建mkdir删除rmdir,查看file,cat,more,tail,head
- Linux自学第一天(文件处理命令ls,cd,pwd,mkdir,mkdir,touch,cp,mv,rm,cat,more,head,tail,ln)
- linux命令,文件与目录(cp,pwd,mkdir,rmdir;ls,cp,rm,mv,basename,dirname;cat,tac,more,less,head,tail,touch,umask,chattr,file,which,locate,find)
- 一天一命令 <mkdir\rmdir\rm\mv>
- Linux命令之目录切换、创建/删除/复制/移动文件 - cd,mkdir,cp,mv,rmdir,rm
- liunx常用文件、目录处理命令(mkdir,rmdir,pwd,cp,mv,rm)
- Linux3基本命令 ls,pwd,cat,echo,mv,cp,mkdir,rm,ln
- 第二弹Linux基础一mkdir/cp/mv/rm/zip/unzip命令详解
- Linux命令学习(mkdir,cp,mv,rm,ln)