Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three dots directory traversal with mv [closed]

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.

like image 794
Wanfung Lee Avatar asked Jul 28 '13 22:07

Wanfung Lee


1 Answers

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
.  ..  ...
like image 156
Charles Duffy Avatar answered Nov 07 '22 16:11

Charles Duffy