All my .c source files and a Readme file were in a subdirectory called assignment2 in a directory called Assignment2. Originally, from assignment2 directory:
$ ls
corrupt.c decode.c encode.c fix.c Readme
Then I tried to move those files from assignment2 directory to the parent directory Assignment2. I typed:
$ mv endocode.c Assignment2
$ ls
Assignment2 corrupt.c decode.c fix.c Readme
$ mv decode.c Assignment2
$ ls
Assignment2 corrupt.c fix.c Readme
$ mv corrupt.c Assignment2
$ ls
Assignment2 fix.c Readme
$ mv fix.c Assignment2
$ mv Readme Assignment2
$ ls
Assignment2
Now my file originally called Readme is called Assignment2 and I can't find my .c source files.
Where did my files go?
Assignment2directory in theassignment2directory. You would have to specify..(or an absolute path) to refer to the parent directory. Except for the renamedReadme, your other files have been deleted. – sawdust Oct 04 '19 at 23:32mv -vi endocode.c Assignment2/That command will fail ifAssignment2is not a directory. – Jim L. Oct 04 '19 at 23:40