> cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.4.0-150600.23.50-default root=/dev/mapper/vg-lv resume=/dev/disk/by-uuid/52g36p8s-29l6-2g4l-meqo-5o30l48s4839 splash=silent quiet mitigations=auto audit_backlog_limit=8192 audit=1 rd.shell=0 showopts LANG=C crashkernel=186M,high
[Content] The network card name in system (RHEL Version)
Content:
Device | Old Name | New Name |
Embedded network interface (LOM) | eth[0123…] | em[1234…] |
PCI card network interface | eth[0123…] | p<slot>p<ethernet port> |
Virtual function | eth[0123…] | p<slot>p<ethernet port>_<virtual interface> |
References:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-consistent_network_device_naming_using_biosdevname
[命令] Linux 命令 stat 的使用 (显示文件的状态)
内容一:stat 命令的使用格式
1.1 一般的使用格式
# stat <file>
1.2 使用选项的格式
# stat <option> <parameter> <file>
内容二:stat 命令的常用选项
1) -c 或者 –format=FORMAT,只显示文件的时间
2) –printf=FORMAT,只显示文件的时间同时不换行打印
内容三:stat 命令的常用参数
1) %a, access rights in octal (note ‘#’ and ‘0’ printf flags)
2) %A, access rights in human readable form
3) %b, number of blocks allocated (see %B)
4) %B, the size in bytes of each block reported by %b
5) %C, SELinux security context string
6) %d, device number in decimal
7) %D, device number in hex
8) %f, raw mode in hex
9) %F, file type
10) %g, group ID of owner
11) %G, group name of owner
12) %h, number of hard links
13) %i, inode number
14) %m, mount point
15) %n, file name
16) %N, quoted file name with dereference if symbolic link
17) %o, optimal I/O transfer size hint
18) %s, total size, in bytes
19) %t, major device type in hex, for character/block device special files
20) %T, minor device type in hex, for character/block device special files
21) %u, user ID of owner
22) %U, user name of owner
23) %w, time of file birth, human-readable; – if unknown
24) %W, time of file birth, seconds since Epoch; 0 if unknown
25) %x, time of last access, human-readable
26) %X, time of last access, seconds since Epoch
27) %y, time of last data modification, human-readable
28) %Y, time of last data modification, seconds since Epoch
29) %z, time of last status change, human-readable
30) %Z, time of last status change, seconds since Epoch
内容四:stat 命令的使用案例
4.1 案例一:显示某个文件的时间
[mingyuzhu@liux ~]$ stat -c %y test.txt
2025-03-31 17:26:11.399060089 +0800
或者:
[mingyuzhu@liux ~]$ stat --format=%y test.txt
2025-03-31 17:26:11.399060089 +0800
(补充:这里以显示 test.txt 文件的时间为例)
4.2 案例二:显示某个文件的时间 (不换行)
[mingyuzhu@liux ~]$ stat --printf=%y test.txt
2025-03-31 17:26:11.399060089 +0800[mingyuzhu@liux ~]$
(补充:这里以显示 test.txt 文件的时间为例)
[步骤] DELL BIOS 的升级 (Linux 版)
步骤一:在 DELL 官网下载对应的 BIOS 升级文件
(步骤略)
步骤二:核对下载的 BIOS 升级文件是否完整
# sha256sum BIOS_0HY8N_LN64_1.17.2.BIN
(
1) 这里以升级 BIOS_0HY8N_LN64_1.17.2.BIN 的 BIOS 升级文件为例
2) 将此步骤的输出结果和 DELL 官网上下载的升级软件进行比对
)
步骤三:给下载的 BIOS 升级文件添加执行权限
# chmod u+x BIOS_0HY8N_LN64_1.17.2.BIN; chown root:root BIOS_0HY8N_LN64_1.17.2.BIN
或者:
# chmod a+x BIOS_0HY8N_LN64_1.17.2.BIN
(补充:这里以给 BIOS_0HY8N_LN64_1.17.2.BIN 的 BIOS 升级文件添加执行权限为例)
步骤四:查看此 BIOS 升级文件的信息和要求
# ./BIOS_0HY8N_LN64_1.17.2.BIN --version
(补充:这里以查看 BIOS_0HY8N_LN64_1.17.2.BIN 的 BIOS 升级文件的信息和要求为例)
步骤五:确保 libstdc++ 已安装
# yum install libstdc++
步骤六:执行此 BIOS_0HY8N_LN64_1.17.2.BIN 升级文件
# ./BIOS_0HY8N_LN64_1.17.2.BIN
(补充:这里以执行 BIOS_0HY8N_LN64_1.17.2.BIN 的 BIOS 升级文件为例)
[步骤] Linux 最新软件升级的检查
正文:
内容一:通过 yum 日志查看
# cat /var/log/yum.log
内容二:通过 rpm 命令查看
# rpm -qa --last
或者:
# rpm --query --all --last
补充:查看曾经通过 dnf 命令或者 yum 命令升级的记录
# dnf history
或者:
# yum history