Three dots directory traversal with mv [closed]

2019-06-18 04:19发布

Where does the file go if you execute the following command:

mv <file> ...

Note that there is no directory with the name ... in the current directory.

1条回答
Viruses.
2楼-- · 2019-06-18 04:33

There may be no directory with the name ... in the current directory, but you're creating a file with that name. (Because it starts with a ., it's hidden).

You can see such hidden files if using the -a argument to ls:

$ ls -a
.  ..
$ touch file; mv file ...; ls -a
.  ..  ...
查看更多
登录 后发表回答