从 Ubuntu 16.04 升级到 18.04.2 LTS 后,使用终端时,我只能找到少量主目录内容(natutils 可以正常查看)。基本上只有Videos/
几个文件。但是文件和文件夹都还在那里。如果我开始输入,自动完成功能不起作用Documents/
,但如果我输入,ls Documents/
内容就都在那里。
我已经能够解决这个问题,因为我能记住大多数$HOME/*
文件夹和重要文件。想要使用du
或rsync
获取主文件夹中的内容基本上是不可能的。
guillermo@guillermo-TECRA-A40-C:~$ du -hs $HOME/*
12K /home/guillermo/dungeon.txt
24K /home/guillermo/gerrit.ods
84K /home/guillermo/noise_nuisance_log.docx
44K /home/guillermo/print.pdf
659M /home/guillermo/pyenv3
24K /home/guillermo/ranking_Cg_rank_0001_to_00-1.pdf
28K /home/guillermo/scripts
256K /home/guillermo/v6_BSM_Coupling.tar.gz
22G /home/guillermo/Videos
它不显示文档或大量其他文件夹和文件的内容:
guillermo@guillermo-TECRA-A40-C:~$ du -hs $HOME/Documents
6.1G /home/guillermo/Documents
为了进一步说明严重性:
guillermo@guillermo-TECRA-A40-C:~$ mkdir $HOME/folderexists
guillermo@guillermo-TECRA-A40-C:~$ ll $HOME | grep folderexists
guillermo@guillermo-TECRA-A40-C:~$ sudo ls $HOME | grep folderexists
guillermo@guillermo-TECRA-A40-C:~$ cd $HOME/folderexists
guillermo@guillermo-TECRA-A40-C:~/folderexists$ pwd
/home/guillermo/folderexists
文件夹权限很好:
guillermo@guillermo-TECRA-A40-C:~/folderexists$ ll .
total 52
drwxr-xr-x 2 guillermo guillermo 4096 Apr 16 10:51 ./
drwx------ 113 guillermo guillermo 45056 Apr 16 10:51 ../
我还应该注意到 $HOME 目录是加密的,所以我怀疑安装过程中是否存在异常。
要求的输出:
guillermo@guillermo-TECRA-A40-C:~$ type ll
ll is aliased to `ls -alF'
guillermo@guillermo-TECRA-A40-C:~$ type ls
ls is aliased to `ls --color=auto'
guillermo@guillermo-TECRA-A40-C:~$ /bin/ls -lah
total 752K
drwx------ 113 guillermo guillermo 44K Apr 16 10:51 .
drwxr-xr-x 5 root root 4.0K Aug 16 2019 ..
drwx------ 5 guillermo guillermo 4.0K May 16 2019 .adobe
-rw-r--r-- 1 guillermo guillermo 1.6K Aug 6 2019 .davmail.properties
-rw-r--r-- 1 guillermo guillermo 3.6K Jul 28 2019 dungeon.txt
drwxrwxr-x 2 guillermo guillermo 4.0K Jul 14 2019 .FBReader
-rw-rw-r-- 1 guillermo guillermo 13K Mar 9 2017 gerrit.ods
-rw-rw-r-- 1 guillermo guillermo 113 Apr 5 2017 .gitconfig
-rw------- 1 guillermo guillermo 72K Apr 14 09:13 .ICEauthority
drwx------ 3 guillermo guillermo 4.0K Dec 7 2016 .kde
drwx------ 3 guillermo guillermo 4.0K Jan 16 11:39 .launchpadlib
drwxrwxr-x 3 guillermo guillermo 4.0K Jan 25 2018 .matlab
lrwxrwxrwx 1 guillermo guillermo 34 Feb 26 12:45 .mbsyncrc -> /home/guillermo/.emacs.d/.mbsyncrc
-rw-rw-r-- 1 guillermo guillermo 74K Oct 8 2018 noise_nuisance_log.docx
-rw-rw-r-- 1 guillermo guillermo 33K Aug 1 2017 print.pdf
drwxr-xr-x 8 guillermo guillermo 4.0K Feb 19 09:05 pyenv3
-rw-rw-r-- 1 guillermo guillermo 16K Feb 22 2019 ranking_Cg_rank_0001_to_00-1.pdf
drwxrwxr-x 2 guillermo guillermo 4.0K Jun 4 2019 scripts
-rw-r--r-- 1 guillermo guillermo 0 Dec 5 2016 .sudo_as_admin_successful
-rw-rw-r-- 1 guillermo guillermo 246K Jun 22 2018 v6_BSM_Coupling.tar.gz
drwxr-xr-x 4 guillermo guillermo 104K Feb 5 23:10 Videos
与tree
tree -L 1
.
├── dungeon.txt
├── gerrit.ods
├── noise_nuisance_log.docx
├── print.pdf
├── pyenv3
├── ranking_Cg_rank_0001_to_00-1.pdf
├── scripts
├── v6_BSM_Coupling.tar.gz
└── Videos