ITeye博客

linux command: dash as a operand

niwtsew · 2011-11-09 13:54 · Misc · shell · 操作系统 · Markdown

for exampe: mv -- -a.txt

 

The -- delimit the option list. Later arguments, if any, are treated a operands even if they begin with - or --. This applies to all commands such as rm, cp, mv, ls, ln and so on:

 command

 -- 'file'


command

 [

options]

 -- 'file'


rm

 -- '--filename'


rm

 -fr -- '-dirname'


rmdir

 -- '--dirname'

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。