readable? | writable? | executable? | |
7 | 1 | 1 | 1 |
6 | 1 | 1 | 0 |
5 | 1 | 0 | 1 |
4 | 1 | 0 | 0 |
3 | 0 | 1 | 1 |
2 | 0 | 1 | 0 |
1 | 0 | 0 | 1 |
0 | 0 | 0 | 0 |
4=readable 2=writable 1=executable
1=yes 0=no
Often used:
750,755
能不能不可读但可写?
逻辑自洽。
readable? | writable? | executable? | |
7 | 1 | 1 | 1 |
6 | 1 | 1 | 0 |
5 | 1 | 0 | 1 |
4 | 1 | 0 | 0 |
3 | 0 | 1 | 1 |
2 | 0 | 1 | 0 |
1 | 0 | 0 | 1 |
0 | 0 | 0 | 0 |
4=readable 2=writable 1=executable
1=yes 0=no
Often used:
750,755
能不能不可读但可写?
sudo vim /etc/default/avahi-daemon
Make the parameter below from 1 to 0
AVAHI_DAEMON_DETECT_LOCAL=0
uname -a
2. 确定自己安装过哪些内核
sudo dpkg –get-selections | grep linux-
3. 删除多余内核
sudo apt-get purge 后面跟上两类文件,一类是“linux-headers”,另一类是“linux-image”,这两者是成对的。当前使用的内核不能删除。
4. 清理deinstall (这是一条组合命令,先得到标识为deinstall的名称,再purge。)
dpkg –purge
dpkg --get-selections | grep deinstall | cut -f 1
5. 更新grub
sudo update-grub
1 2 3 4 5 6 |
sudo vim /etc/default/grub GRUB_DEFAULT=0 #GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 4.10.0-041000-generic" sudo update-grub |