unix/hpunix 命令

unix/hpunix 命令

pwd     #查看當前目錄

chmod +w /etc/hosts      # 為 /etc/hosts文件增加write權限

bdf      # 查看系統磁盤空間使用狀況

find / -name filename    #搜尋名為filename的文件

swlist      #查看安裝軟件列表

 

# /usr/sbin/umount /cdrom  

# /usr/sbin/mount /dev/dsk/c0t0d0 /cdrom        /*   /dev/dsk/c0t0d0   是光驱设备*/



---------------------------------------------------------------------------------------------------------------------------------

linux/centos 命令

ifconfig       #查看ip,如果ifconfig查不到ip,就看下面:

 



    1. [root@localhost jerain]# ifconfig   

    1. bash: ifconfig: command not found   

    1. [root@localhost jerain]# whereis ifconfig   

    1. ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz   

    1. [root@localhost jerain]# /sbin/ifconfig   

    1. eth0      Link encap:Ethernet  HWaddr 00:0C:29:A3:4B:D4   

    1.           inet addr:192.168.22.17  Bcast:192.168.22.255  Mask:255.255.255.0   

    1.           inet6 addr: fe80::20c:29ff:fea3:4bd4/64 Scope:Link   

    1.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1   

    1.           RX packets:6428 errors:0 dropped:0 overruns:0 frame:0   

    1.           TX packets:891 errors:0 dropped:0 overruns:0 carrier:0   

    1.           collisions:0 txqueuelen:1000   

    1.           RX bytes:772546 (754.4 KiB)  TX bytes:93162 (90.9 KiB)   

    1.           Interrupt:67 Base address:0x2024   

    1.   

    1. lo        Link encap:Local Loopback   

    1.           inet addr:127.0.0.1  Mask:255.0.0.0   

    1.           inet6 addr: ::1/128 Scope:Host   

    1.           UP LOOPBACK RUNNING  MTU:16436  Metric:1   

    1.           RX packets:12996 errors:0 dropped:0 overruns:0 frame:0   

    1.           TX packets:12996 errors:0 dropped:0 overruns:0 carrier:0   

    1.           collisions:0 txqueuelen:0   

    1.           RX bytes:3264054 (3.1 MiB)  TX bytes:3264054 (3.1 MiB)   

    1.   

    1. [root@localhost jerain]#   

转载于:https://www.cnblogs.com/jerain6312/articles/4073851.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值