内容一:给一个硬盘分区
# fdisk /dev/sda
(补充:这里以给 /dev/sda 硬盘分区为例,键入以上命令之后,可以根据提示进行分区操作)
内容二:显示已有分区情况
# fdisk -l
# fdisk /dev/sda
(补充:这里以给 /dev/sda 硬盘分区为例,键入以上命令之后,可以根据提示进行分区操作)
# fdisk -l
# 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 作为后缀名称的文件为例)
/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