Differences between solaris and linux Commands

Source: Internet
Author: User
The difference between solaris and linux commands is that although solaris and linux are both unix kernels, many commands are still different. I collected their differences online and shared them. 1) Check the open port Linux: netstat-atnSolaris: netstat-Ptcp-finet-... the difference between solaris and linux commands is that although solaris and linux are both unix kernels, many commands are still different. I collected their differences online and shared them. 1) view open port Linux: netstat-atn Solaris: netstat-P tcp-f inet-an 2) view NIC/network status Linux: ifconfig Solaris: ifconfig-a or dladm show-dev. note: In Linux, each Nic is named after eth0 and eth1, while Solaris is named after the NIC driver, such as rtls0 and iprb0, bge0, bge1, bnx0, e1000g1, nge1, xge0, etc. you can use man to check what network adapter is, for example: # man iprb 3) view all the software packages installed in the system Linux: rpm-qa or dpkg-query-l Solaris: pkginfo 4) installation package Linux: rpm-ivh stardict. rpm Solaris: pkgadd-d 'pwd' SUNWstardict 5) uninstall the software package Linux: rpm-e stardict Solaris: pkgrm SUNWstardict 6) view all the installation files of the software package Linux: rpm-ql stardict Solaris: pkgchk-l SUNWstardict | grep Pathname determines which installation package the file belongs to based on a file # pkgchk-lp/usr/share/stardict/sounds/menushow.wav # rpm-qf/bin/ ls 7) view the process status Linux: top Solaris: prstat under Solaris you can download and install the top software through pkg-get-I top, and prstat-L can further display the status of each thread 8) view system service Linux: chkconfig -- list 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: sendmailSolaris svcadm can use the-r parameter to enable or disable related services 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 12) monitoring Network Linux: tcpdump Solaris: snoop 13) display information of all modules Linux: lsmod Solaris: modinfo note: Linux also supports modinfo, but only displays information of a certain module, such as # modinfo fat 14) insert module Linux: insmod/modprobe Solaris: modload 15) uninstall module Linux: rmmod Solaris: modload note: Each module of Solaris has an integer number, to uninstall a pci device, specify the number # modinfo | grep bge 174 ffffffeff63000 12150 162 174 1 bge (BCM579x driver v0.51) # modunload-I 16) to view Linux: lspci-vn Solaris: prtconf-vp 17) add an additional IP address to the NIC Linux: ifconfig eth0: 1 192.168.3.15 Solaris: ifconfig e1000g addif 192.168.3.15/24 up
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.