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]#   
posted @ 2014-10-15 11:56  jerain6312  阅读(192)  评论(0编辑  收藏  举报