Comparison between Linux commands and Solaris commands-Linux general technology-Linux technology and application information. For more information, see the following. 1) view open ports
Linux: netstat-atn
Solaris: netstat-P tcp-f inet-
2) view NIC/network status
Linux: ifconfig
Solaris: ifconfig-a or dladm show-dev
NOTE 1: In Linux, each Nic is named after eth0 and eth1, while Solaris is named after the NIC Driver, such as rtls0, iprb0, bge0, bge1, bnx0, e1000g1, nge1, xge0, etc. You can use man to check what network adapter is, for example:
# Man iprb
NOTE 2: in Linux, The ifconfig command is gradually replaced by the iproute or iproute2 software package with more emphasis on functions. The main Commands include ip and tc. Use ifconfig to add another ip address to the NIC. The command is as follows:
# Ifconfig eth0: 0 192.168.3.15/24 broadcast 192.168.3.255
The ip address is as follows:
# Ip addr add 192.168.3.15/24 broadcast 192.168.3.255 dev eth0
3) view all software packages installed by the System
Linux: rpm-qa or dpkg-query-l
Solaris: pkginfo
6) view all installation files of the software package
Linux: rpm-ql stardict
Solaris: pkgchk-l SUNWstardict | grep Pathname
Note: On Solaris, you can determine which installation package the file belongs to based on a file.
# 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 modify: Jul 18 11:26:00 2006
Referenced by the following packages:
SUNWstardict
Current status: installed
This function can also be implemented by rpm today
# Rpm-qf/bin/ls
Coreutils-6.4-10
7) view the process status
Linux: top
Solaris: prstat
In Solaris, you can use pkg-get-I top to download and install the top software. prstat-L can further display the status of each thread.
8) view system services
Linux: chkconfig -- list or chkconfig-L
Solaris: svcs
9) System Service Management
Linux: chkconfig samba off or chkconfig samba on
Solaris: svcadm ensable svc:/network/smtp: sendmail or svcadm enable svc:/network/smtp: sendmail
The-r parameter can be used to enable or disable the relevant services of Solaris svcadm.
10) view CPU Information
Linux: more/proc/cpuinfo
Solaris: psrinfo-v or psrinfo-vp
11) view memory size
Linux: more/proc/meminfo or top
Solaris: prtconf | grep ^ M
13) display information of all modules
Linux: lsmod
Solaris: modinfo
Note: Linux also supports modinfo, but only displays information about a certain module, as shown in figure
# Modinfo fat
15) uninstall the module
Linux: rmmod
Solaris: modload
Note: Each module of Solaris has an integer number. To uninstall it, you must specify the number.
# Modinfo | grep bge
174 ffffffffeff63000 12150 162 1 bge (BCM579x driver v0.51)
# Modunload-I 174
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.