Different from hexo g -w ; hexo s, & implicate that the former and the latter will run at the same time. The command in the front of ; priors to the command in the back of ;.
给 shell 脚本文件添加可执行权限
chmod +x shell.sh
Linux 查看磁盘空间
df -hl
Linux修改中文
vim /etc/locale.gen # Uncommit zh_CN and en_US locale-gen
vim /etc/locale.conf # LANG="zh_CN-UTF-8"
vim .bashrc # Add: # export LANG=zh_CN.UTF-8 # export LANGUAGE=zh_CN:en_US
sudo pacman -Syyu # Update system sudo pacman -S pigz #Install pigz cd / sudo tar --use-compress-program=pigz -cvpf /run/media/icarus/MHD/Systembackup/archlinux-backup@`date +%Y-%m+%d`.tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/tmp --exclude=/run/media --exclude=/home / #Backup
sudo tar -cvpzf /run/media/icarus/MHD/Systembackup/archlinux-backup-pureKDE.tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys --exclude=/run/media --[[#Clean up Trash in Archlinux]]exclude=/tmp / #Don't use pigz, and network is not necessary
Restore
# Boot by Live CD iwctl device list # Find wlan0 station wlan0 scan # Scan WIFI station wlan0 get-networks # List network station wlan0 connect WIFI1 # Connect a network exit# Exit after successing ping www.bing.com # Test network
sudo vim /etc/pacman.d/mirrorlist # Add "Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch" sudo pacman -S pigz # Install pigz lsblk # View disk mkdir /RE # Create a partition of backup files mount /dev/sda1 /RE # Mount the disk where backup files are stored mount /dev/sdb3 /mnt # Mount system root directory of Archlinux to /mnt
rm -rf /mnt/* # Clean old system tar --use-compress-program=pigz -xvpf /RE/Systembackup/archlinux-backup-pureKDE.tgz -C /mnt # Restore system ls /mnt # View the restore umount -R /mnt # Unmount /mnt reboot # Reboot
It is worth noting that fstab and GRUB boot sequence needs to be regenerated!
Add Windows Boot Manager to GRUB
sudo pacman -S grub-customizer
Add a boot menu in grub-customizer, then modify the configuration:
Can’t Connect Bluetooth Keyboard in Archlinux (GUI)
Using Cli :
sudo pacman -S bluez bluez-utils # Install bluez sudo bluetoothctl power on agent on default-agent scan on pair <MAC address of keyboard> trust <MAC address of keyboard> connect <MAC address>
安装WPS
使用yay安装:
yay -S wps-office-mui-zh-cn wps-office ttf-wps-fonts