请问ubuntu7.04下误删/root文件夹,如何恢复?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 2
- 注册时间: 2008-03-07 20:30
请问ubuntu7.04下误删/root文件夹,如何恢复?
误删了/root文件夹,目前系统还可以使用,不知道有没有其他影响,请问能否恢复?
-
- 帖子: 1103
- 注册时间: 2006-10-19 9:02
-
- 帖子: 2
- 注册时间: 2008-03-07 20:30
Thx.
在http://ubuntuforums.org/发帖问了一下,还可以这样做:
sudo mkdir /root
sudo cp /etc/skel/.* /root
sudo chmod 755 /root
sudo chown -R root:root /root
注:The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd program.
在http://ubuntuforums.org/发帖问了一下,还可以这样做:
sudo mkdir /root
sudo cp /etc/skel/.* /root
sudo chmod 755 /root
sudo chown -R root:root /root
注:The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd program.