KEMBAR78
Solaris Admin Cheat Sheet | PDF
0% found this document useful (0 votes)
14 views2 pages

Solaris Admin Cheat Sheet

Solaris admin cheat sheet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Solaris Admin Cheat Sheet

Solaris admin cheat sheet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Solaris Administration Cheat Sheet

User Management

useradd <username>

passwd <username>

usermod -G <group> <username>

userdel <username>

groupadd <groupname>

Service Management (SMF)

svcs -a # List all services

svcadm enable <svc> # Enable a service

svcadm disable <svc> # Disable a service

svcs -xv # Troubleshoot services

Package Management

Solaris 10:

pkgadd -d <package>

pkgrm <package>

pkginfo

Solaris 11:

pkg list

pkg install <pkg>

pkg uninstall <pkg>

pkg update

Disk and ZFS Commands

format # List and manage disks

zpool list # List ZFS pools

zpool status # Pool health

zfs list # List ZFS datasets

zfs create pool/fs # Create a dataset

zpool attach rpool disk1 disk2 # Mirror root pool


Solaris Administration Cheat Sheet

Process and System Monitoring

prstat # Show top processes

vmstat 1 # Memory and CPU stats

iostat -xnz 5 # Disk I/O stats

netstat -rn # Routing table

Boot Environment (Solaris 11)

beadm list # Show boot environments

beadm create <BE>

beadm activate <BE>

Zone Management

zonecfg -z <zone> create

zonecfg -z <zone> set ...

zoneadm -z <zone> install

zoneadm -z <zone> boot

zlogin <zone> # Login to zone

Backup and Snapshots

zfs snapshot pool/fs@snapname # Create snapshot

zfs rollback pool/fs@snapname # Rollback snapshot

u fsdump # UFS backup

ufsrestore # Restore from UFS dump

Cron Jobs

crontab -e # Edit cron jobs

crontab -l # List cron jobs

/etc/cron.d/ # System-wide jobs

Networking

ipadm show-addr # Show IP addresses

dladm show-link # Show links

ipadm create-addr -T static -a 192.168.1.10/24 net0

You might also like