内容一:判断 Linux 是 BIOS 还是 EFI 的方法
# ls -ld /sys/firmware/efi
(补充:如果 /sys/firmware/efi 目录存在,则代表系统是 EFI,否则系统是 BIOS)
内容二:判断 Linux 是 BIOS 还是 EFI 的脚本
# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
# ls -ld /sys/firmware/efi
(补充:如果 /sys/firmware/efi 目录存在,则代表系统是 EFI,否则系统是 BIOS)
# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
# rm <file>
# rm -r <directory>
# rm -rf <directory>
# rm -rf .#*
# rm -rf *txt
(补充:这里以非交互式删除所有以 txt 作为后缀名称的文件为例)
# convert <input options> <output file name> <output options> <output file name>
# convert "a.png" "a.png.jpg"
(补充:这里以将 a.png 转换成 a.png.jpg 为例)
# ls -1 *.png | xargs -n 1 bash -c 'convert "$0" "${0%.png}.jpg"'
(补充:这里以将当前目录下的所有 *.png 文件转换成 *.png.jpg 文件)
/boot >= 5G
/var/tmp >= 10G
/tmp >= 10G
swap >= 2G
/ all remaining space
/boot Use standard partition
/var/tmp Use logical partition
/tmp Use logical partition
swap Use logical partition
/ Use logical partition
/boot xfs
/var/tmp xfs
/tmp xfs
swap swap
/ xfs
/boot defaults
/var/tmp rw,nosuid,nodev,noexec,relatime,strictatime
/tmp rw,nosuid,nodev,noexec,relatime,strictatime
swap defaults
/ defaults
/boot/efi >= 5G
/var/tmp >= 10G
/tmp >= 10G
swap >= 2G
/ all remaining space
/boot/efi Use standard partition
/var/tmp Use logical partition
/tmp Use logical partition
swap Use logical partition
/ Use logical partition
/boot/efi vfat
/var/tmp xfs
/tmp xfs
swap swap
/ xfs
/boot/efi defaults
/var/tmp rw,nosuid,nodev,noexec,relatime,strictatime
/tmp rw,nosuid,nodev,noexec,relatime,strictatime
swap defaults
/ defaults
/boot >= 5G
/var/tmp >= 10G
/tmp >= 10G
swap >= 2G
/ all remaining space
/boot Use standard partition
/var/tmp Use logical partition
/tmp Use logical partition
swap Use logical partition
/ Use logical partition
/boot xfs
/var/tmp xfs
/tmp xfs
swap swap
/ xfs
/boot defaults
/var/tmp rw,nosuid,nodev,noexec,relatime,strictatime
/tmp rw,nosuid,nodev,noexec,relatime,strictatime
swap defaults
/ defaults
/boot/efi >= 5G
/var/tmp >= 10G
/tmp >= 10G
swap >= 2G
/ all remaining space
/boot/efi Use standard partition
/var/tmp Use logical partition
/tmp Use logical partition
swap Use logical partition
/ Use logical partition
/boot/efi vfat
/var/tmp xfs
/tmp xfs
swap swap
/ xfs
/boot/efi umask=0077,shortname=winnt 0 2
/var/tmp rw,nosuid,nodev,noexec,relatime,strictatime
/tmp rw,nosuid,nodev,noexec,relatime,strictatime
swap defaults
/ defaults