1

I moved a folder using mv and now my folder is a file with unknown details.

The command I ran was mv juno-projects/ juno. After running this command juno is a file not a folder and more than that the system has no clue what juno is. A simple ls command results in

ls: cannot access 'juno': No such file or directory
api_keys  bin  juno  portfolio  python  react  rusttest  school  

A detailed ls -l results in:

drwxrwxrwx 1 sandbox sandbox 512 Mar 19 16:19 api_keys                                                                             drwxrwxrwx 1 sandbox sandbox 512 Mar 25 13:39 bin
d????????? ? ?       ?         ?            ? juno                                                                                 
drwxrwxrwx 1 sandbox sandbox 512 Mar  7 23:49 portfolio                                                                            
drwxrwxrwx 1 sandbox sandbox 512 Mar 18 12:46 python                                                                               
drwxrwxrwx 1 sandbox sandbox 512 Mar 19 01:53 react                                                                                
drwxrwxrwx 1 sandbox sandbox 512 Jan 26 23:51 rusttest                                                                             
drwxrwxrwx 1 sandbox sandbox 512 Jan 28 20:46 school       

A cd into juno works. However when I list the directory I get.

cd juno
ls
ls: cannot open directory '.': No such file or directory

Can anyone help me tell Ubuntu that juno is a folder. All the contents are gone. Thank you.

1 Answers1

0

A simple restart fixed this for me.