rm ~


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rm ~
# 1  
Old 12-25-2008
rm ~

Some friend of mine used rm ~ and deleted his home directory, how can he restore it ?
# 2  
Old 12-25-2008
restore it from backup. if no backup exist, there is no way to restore the data.
# 3  
Old 12-25-2008
No data was deleted, but when he enters the user, he is not directed to his home directory.
# 4  
Old 12-25-2008
you wrote that he deleted his homedirectory... how can that be done if no data was deleted?
# 5  
Old 12-25-2008
sorry, i didnt express myself correctly, he run rm ~ , no data was deleted but now when he enters his account, instead of going to his home directory, he goes in root directory.
# 6  
Old 12-25-2008
what is the output of:

set | grep HOME
and
env | grep HOME

?
# 7  
Old 12-25-2008
Do an ls -l /home, if there's no directory with his name, it's gone (for good if there's no backup)
Behavior like you described it usually happens only if it's gone. Otherwise we'll need a bit more info.
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question