linux命令mv介绍(9)

    Read

mv命令主要是一个将文件移动到另外一个位置的命令,用于文件移动。
参数:

-f:覆盖文件,且不提示【--force】
-i:提示是否覆盖文件【--interactive】
-n:如果文件存在,则不移动【--no-clobber】
-u:仅当源文件新的时候进行覆盖SourceByrd's Weblog-https://note.t4x.org/rebuilding/mv-command-description/

-b like --backup but does not accept an argument
--strip-trailing-slashes:remove any trailing slashes from each SOURCE argument
-S, --suffix=SUFFIX
override the usual backup suffix
-t, --target-directory=DIRECTORY
move all SOURCE arguments into DIRECTORY
-T, --no-target-directory
treat DEST as a normal fileSourceByrd's Weblog-https://note.t4x.org/rebuilding/mv-command-description/

--backup[=CONTROL]
make a backup of each existing destination fileSourceByrd's Weblog-https://note.t4x.org/rebuilding/mv-command-description/

none, off
never make backups (even if --backup is given)
numbered, t
make numbered backups
existing, nil
numbered if numbered backups exist, simple otherwise
simple, never
always make simple backups SourceByrd's Weblog-https://note.t4x.org/rebuilding/mv-command-description/

案例:

SourceByrd's Weblog-https://note.t4x.org/rebuilding/mv-command-description/ SourceByrd's Weblog-https://note.t4x.org/rebuilding/mv-command-description/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on December 25, 2017
  • 原文链接:https://note.t4x.org/rebuilding/mv-command-description/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: