File lost using mv - Ask Ubuntu


went directory 7z file located. used command

mv file.7z /home  

i logged in root directory file located , launched command root. can't find file anywhere. searched home folder root , user with

ls -la

but still no joy. know file has been moved original directory empty.

i suspect file not lost, has been moved root directory , renamed home.

you should find file in root directory called home. file.

why happened

the filesystem in unix/linux case-sensitive, meaning home , home not refer same thing. while intended move directory called home, used capital h, did not find such directory , instead interpreted command request move , rename new file called home.

solution

always use correct case. have prevented happening adding trailing slash after directory name, eg.

mv file.7z /home/ 

this cause home directory. if didn't find such directory, instead of renaming home file, have failed.


Comments

Popular posts from this blog

Windows XP installation, no previous version of Windows NT - Super User

software installation - How to install linux driver for a lb-link wireless usb adapter - Ask Ubuntu

permissions - Mount is denied because the NTFS volume is already exclusively opened - Ask Ubuntu