How to install “command-not-found” on Debian 9 and on zsh. And a interesting software “cheat” which help to learn cmd on linux.

Install “command-not-found”: 1, $sudo apt intall command-not-found 2, $sudo apt-file update $sudo update-command-not-found After above, you can use command-not-found on bash shell now. Next is zsh: Add one time in the .zshrc:  plugins=(command-not-found) Last, you can install “cheat”: sudo pip Read More …

拯救无法启动linux的方法,进入grub

ls set root=(hd0,gpt7) set prefix=(hd0,gpt7)/boot/grub/ insmod normal normal 仅仅是注册话就很简单了, efibootmgr 可以很方便地完成这个工作, # efibootmgr -c -d /dev/nvme0n1 -p X -l \\EFI\\opensuse\\shim.efi -L opensuse-secure 其中, -c 表示生成一个新的启动项; -d /dev/nvme0n1 表示该启动项对应的文件在磁盘 /dev/nvme0n1 中,如果有多个磁盘,可能后面结尾的数字就不是 1; -p X 表示启动项对应的文件在上述磁盘的第 X 个分区中; -l \\EFI\\opensuse\\shim.efi 表示该启动项对应的启动文件,其中路径是相对于 ESP Read More …