Get the App
SLTechnology News&Howtos  ›  Servers  › 

Solaris 10 basic command operation

Shulou Source: shulou.com Published: 2022-06-02 22:33:23 10月03日 Update

1. View the current system time

Root@solaris10:/var/adm # dateMon Aug 13 16:02:22 CST 2018

2. Check the kernel version

Root@solaris10:/var/adm # uname-aSunOS solaris10 5.10 Generic_141445-09 i86pc i386 i86pc

3. Check the system running time

Root@solaris10:/var/adm # uptime 4:02pm up 11 day (s), 23:07, 1 user, load average: 0.00,0.00,0.00

4. Check whether the system is 64bit.

Root@solaris10:/var/adm # isainfo-v64-bit amd64 applications pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu32-bit i386 applications pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu

5. View the system cpu

Root@solaris10:/var/adm # psrinfo-vStatus of virtual processor 0 as of: 08 psrinfo 13 on-line since. 2018 16:03:27. The i386 processor operates at 2300 MHz, and has an i387 compatible floating point processor.Status of virtual processor 1 as of: 08/13/2018 16:03:27 on-line since 08/01/2018 16:55:31. The i386 processor operates at 2300 MHz, and has an i387 compatible floating point processor.Status of virtual processor 2 as of: 08/13/2018 16:03:27 on-line since 08/01/2018 16:55:32. The i386 processor operates at 2300 MHz, and has an i387 compatible floating point processor.Status of virtual processor 3 as of: 08/13/2018 16:03:27 on-line since 08/01/2018 16:55:32. The i386 processor operates at 2300 MHz, and has an i387 compatible floating point processor.

6. View system memory

Root@solaris10:/var/adm # prtconfSystem Configuration: Sun Microsystems i86pcMemory size: 8192 MegabytesSystem Peripherals (Software Nodes): i86pc scsi_vhci, instance # 0 isa, instance # 0 i8042, instance # 0 keyboard, instance # 0 mouse, instance # 0 motherboard (driver not attached) fdc, instance # 0 fd, instance # 0 pci, instance # 0 pci15ad,1976 (driver not attached) pci8086,7191, instance # 0 pci15ad 1976 (driver not attached) pci-ide, instance # 0 ide (driver not attached) ide, instance # 1 sd, instance # 1 pci15ad,1976 (driver not attached) pci15ad,740 (driver not attached) display, instance # 0 pci15ad,1976, instance # 0 sd, instance # 0 pci15ad,790, instance # 1 pci15ad,750, instance # 0 pci1274,1371 Instance # 0 (driver not attached) pci15ad,7a0, instance # 0 pci15ad,7a0, instance # 1 pci15ad,7a0, instance # 2 pci15ad,7a0, instance # 3 pci15ad,7a0, instance # 4 pci15ad,7a0, instance # 5 pci15ad,7a0, instance # 6 pci15ad,7a0, instance # 7 pci15ad,7a0, instance # 8 pci15ad,7a0, instance # 9 pci15ad,7a0, instance # 10 pci15ad,7a0 Instance # 11 pci15ad,7a0, instance # 12 pci15ad,7a0, instance # 13 pci15ad,7a0, instance # 14 pci15ad,7a0, instance # 15 pci15ad,7a0, instance # 16 pci15ad,7a0, instance # 17 pci15ad,7a0, instance # 18 pci15ad,7a0, instance # 19 pci15ad,7a0, instance # 20 pci15ad,7a0, instance # 21 pci15ad,7a0, instance # 22 pci15ad,7a0, instance # 23 pci15ad,7a0 Instance # 24 pci15ad,7a0, instance # 25 pci15ad,7a0, instance # 26 pci15ad,7a0, instance # 27 pci15ad,7a0, instance # 28 pci15ad,7a0, instance # 29 pci15ad,7a0, instance # 30 pci15ad,7a0, instance # 31 iscsi, instance # 0 pseudo, instance # 0 options, instance # 0 agpgart, instance # 0 (driver not attached) objmgr, instance # 0 xsvc Instance # 0 acpi (driver not attached) used-resources (driver not attached) cpus, instance # 0 cpu (driver not attached) cpu (driver not attached)

7. View the system partition

Root@solaris10:/var/adm # df-hFilesystem size used avail capacity Mounted on/dev/dsk/c1t0d0s0 6.4G 3.5G 2.9G 55% / / devices 0K 0K 0K 0% / devicesctfs 0K 0K 0K 0% / system/contractproc 0K 0K 0K 0 / procmnttab 0K 0K 0K 0% / etc/mnttabswap 6.9G 844K 6.9G 1% / etc/svc/volatileobjfs 0K 0K 0K 0% / system/objectsharefs 0K 0K 0K 0% / etc/dfs/sharetab/usr/lib / libc/libc_hwcap1.so.1 6.4G 3.5G 2.9G 55% / lib/libc.so.1fd 0K 0K 0K 0% / dev/fdswap 6.9G 40K 6.9G 1% / tmpswap 6.9G 28K 6.9G 1 % / var/run/dev/dsk/c1t0d0s7 13G 13m 13G 1% / export/home

8. View swap

Root@solaris10:/var/adm # swap-lswapfile dev swaplo blocks free/dev/dsk/c1t0d0s1 32, 1 8 1076344 1076344

9. Check the hostname

Root@solaris10:/ # hostnamesolaris10

10. Check the ip address

Root@solaris10:/ # ifconfig-alo0: flags=2001000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000e1000g0: flags=1004843 mtu 1500 index 2 inet 172.16.251.130 netmask ffffff00 broadcast 172.16.251.255 ether 0:c:29:44:3b:b9

Tags: System time host memory kernel address version run command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Linux MySQL Xiaomi