linux commands

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.



 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值