1. lsb_release
print distribution-specific information, example :
#lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
### another print host platform command :
python -c "import platform; print(platform.platform())"
2. tr
translate or delete characters from standard input, writing to standard output, example:
# echo "ubuntu" | tr 'a-z' 'A-Z'
3. basename
strip directory and suffix from filenames.
4. set -x
display shell command and result at the same when execute shell script.
5. grub-probe
probe device information for a given path or device, such as filesystem type, fs_uuid, fs_label, device and so on.
6. grub-mkrelpath
make a system path relative to its root.
7. grub-mkimage
make a bootable image of GRUB
8. grub-setup
setup a device to boot using GRUB.
本文介绍了在Linux环境下常用的命令,如lsb_release用于显示系统发行版信息,tr用于字符转换或删除,basename用于去除文件路径中的目录及后缀部分,set-x用于在执行Shell脚本时显示命令及其结果,grub系列命令则涉及系统的启动配置。
263

被折叠的 条评论
为什么被折叠?



