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,就看下面:
- [root@localhost jerain]# ifconfig
- bash: ifconfig: command not found
- [root@localhost jerain]# whereis ifconfig
- ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
- [root@localhost jerain]# /sbin/ifconfig
- eth0 Link encap:Ethernet HWaddr 00:0C:29:A3:4B:D4
- inet addr:192.168.22.17 Bcast:192.168.22.255 Mask:255.255.255.0
- inet6 addr: fe80::20c:29ff:fea3:4bd4/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:6428 errors:0 dropped:0 overruns:0 frame:0
- TX packets:891 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:772546 (754.4 KiB) TX bytes:93162 (90.9 KiB)
- Interrupt:67 Base address:0x2024
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:12996 errors:0 dropped:0 overruns:0 frame:0
- TX packets:12996 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:3264054 (3.1 MiB) TX bytes:3264054 (3.1 MiB)
- [root@localhost jerain]#