歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

Solaris上的Linux准等價命令


1) 查看開放端口
Linux: netstat -atn
Solaris: netstat -P tcp -f inet -an
2) 安裝軟件包
Linux: rpm -ivh stardict.rpm
Solaris: pkgadd -d `pwd` SUNWstardict
3) 卸載軟件包
Linux: rpm -e stardict
Solaris: pkgrm SUNWstardict
4) 查看安裝包的所有安裝文件
Linux: rpm -ql stardict
Solaris: pkgchk -l SUNWstardict | grep Pathname
在Solaris上還可以根據某一個文件來判斷該文件屬於哪一個安裝包
# pkgchk -lp /usr/share/stardict/sounds/menushow.wav
Pathname: /usr/share/stardict/sounds/menushow.wav
Type: regular file
Expected mode: 0644
Expected owner: root
Expected group: bin
Expected file size (bytes): 6250
Expected sum(1) of contents: 60494
Expected last modification: Jul 18 11:26:00 2006
Referenced by the following packages:
SUNWstardict
Current status: installed
Copyright © Linux教程網 All Rights Reserved