我尝试从我的学校网站安装 ddd,它给了我这个命令来删除已安装的 ddd 版本:
rm -rf ~/.ddd/
它无法执行,所以我尝试了sudo
,它成功了,但之后我无法打开 nautilus。当我尝试从终端启动它时,它显示了以下内容:
Unable to create a required folder. Please create the following folder, or set permissions such that it can be created: /home/sensej/.config/nautilus
的输出 ls -ld ~/.config
为:
ls: cannot access '~/.config':No such file or directory
输出sudo ls -ld ~/.config
:
ls: cannot access '/home/sensej/.config': No such file or directory
下面是输出history
1 sudo apt-get install gcc
2 sudo apt-get install ddd
3 ddd
4 gcc
5 ddd
6 sudo apt-get install gcc-multilib
7 sudo apt-get intall gcc-multilib
8 sudo apt-get install gcc-multilib
9 cd Downloads
10 ls
11 sudo cp asm.lang /usr/ sudo cp asm.lang /usr/share/gtksourceview-3.0/language-specs/
12 ls /usr/share/mime/packages/Overrides.xml
13 udo cp Overrides.xml /usr/share/mime/packages/
14 sudo cp Overrides.xml /usr/share/mime/packages/
15 sudo update-mime-database /usr/share/mime
16 ls
17 mkdir Asembler
18 cd Asembler
19 gedit &
20 ls
21 gcc -m32 -g -o zbir_n_brojeva zbir_n_brojeva.S
22 ./zbir_n_brojeva.S
23 ddd zbir_n_brojeva &
24 rm -rf ~/ .ddd/
25 sudo rm -rf ~/ .ddd/
26 sudo apt-get install ddd
27 sudo apt-get purge nautilus
28 sudo apt-get install nutilus
29 nautilus --check
30 sudo apt install nautilu
31 sudo apt install nautilus
32 nutilus --check
33 clear
34 nautilus --check
35 sudo apt-get intall --reinstall nautilu-data
36 sudo apt-get intall --reinstall nautilus-data
37 sudo apt-get install --reinstall nautilus-data
38 nautilus
39 ddd
40 nautilus
41 sudo chown sensej:sensej ~/.config
42 mkdir /home/sensej/.config
43 sudo mkdir /home/sensej/.config
44 nautilus
45 cd .
46 hitory
47 history
48 ls -l ~/.config
49 ls -l ~/ .config
50 ls -ld ~./config
51 history
52 sudo ls -ld ~/ .config
53 history
答案1
你运行了一个完全错误的命令
rm -rf ~/ .ddd/
它删除了您的主目录~/
。
正确的命令是
rm -r ~/.ddd/
您在那里添加了一个空格。您添加空格似乎有点粗心。
由于您的主目录不见了,我建议重新安装系统。
小心你丢失了所有文件。以后要小心了。