[命令] Linux 命令 convert (转换图片文件)

内容一:convert 命令的使用格式

# convert <input options> <output file name> <output options> <output file name>

内容二:convert 命令的使用案例

2.1 案例一:直接转换某一个文件

# convert "a.png" "a.png.jpg"

(补充:这里以将 a.png 转换成 a.png.jpg 为例)

2.2 案例二:转换当前目录下的所有文件

# ls -1 *.png | xargs -n 1 bash -c 'convert "$0" "${0%.png}.jpg"'

(补充:这里以将当前目录下的所有 *.png 文件转换成 *.png.jpg 文件)

[步骤] AIDE 的使用 (高级入侵检测环境:Adevanced Intrusion Detection Environment) (openSUSE & SLES 版)

步骤一:安装 AIDE

# zypper -n install aide

步骤二:生成 AIDE 的配置文件

2.1 生成 AIDE 配置文件的模板

# /usr/bin/aide --init
AIDE initialized database at /var/lib/aide/aide.db.new

Number of entries:      62624

2.2 将 AIDE 配置文件的模板转换成配置文件

# mv /var/lib/aide/aide.db.new /var/lib/aide/aide.db

步骤三:使用 AIDE

# /usr/bin/aide --check
AIDE found differences between database and filesystem!!

Summary:
  Total number of entries:      62623
  Added entries:                0
  Removed entries:              1
  Changed entries:              0

(补充:AIDE 要检查哪些文件不检查哪些文件可以在 /etc/aide.conf 中设置)

[CONTENT] Linux Partition Advice

中文

Content One: BIOS Partition Advice

1.1 Partition Planning

/boot    >= 5G
/var/tmp >= 10G
/tmp     >= 10G
swap     >= 2G
/        all remaining space

1.2 Standard Partition and Logical Partition

/boot    Use standard partition
/var/tmp Use logical partition
/tmp     Use logical partition
swap     Use logical partition
/        Use logical partition

1.3 Format

/boot    xfs
/var/tmp xfs
/tmp     xfs
swap     swap
/        xfs

1.4 Mount Parameter

/boot    defaults
/var/tmp rw,nosuid,nodev,noexec,relatime,strictatime
/tmp     rw,nosuid,nodev,noexec,relatime,strictatime
swap     defaults
/        defaults

Content Two:EFI Partition Advice

2.1 Partition Planning

/boot/efi >= 5G
/var/tmp  >= 10G
/tmp      >= 10G
swap      >= 2G
/         all remaining space

2.2 Standard Partition and Logical Partition

/boot/efi Use standard partition
/var/tmp  Use logical partition
/tmp      Use logical partition
swap      Use logical partition
/         Use logical partition

2.3 Format

/boot/efi vfat
/var/tmp  xfs
/tmp      xfs
swap      swap
/         xfs

2.4 Mount Parameter

/boot/efi defaults
/var/tmp  rw,nosuid,nodev,noexec,relatime,strictatime
/tmp      rw,nosuid,nodev,noexec,relatime,strictatime
swap      defaults
/         defaults