0% found this document useful (0 votes)
197 views17 pages

AIX, Solaris, HP-Ux & Linux Tips For System Administrators: UNIX Commands Comparison Sheet

This blog post provides a comparison sheet of common UNIX commands across different operating systems including AIX, Solaris, HP-UX, Linux, and others. It lists commands for tasks like displaying system information, checking memory and disks, viewing networking details, managing services, and more. The sheet shows the equivalent commands for each operating system to perform similar functions.

Uploaded by

eusphorus
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)
197 views17 pages

AIX, Solaris, HP-Ux & Linux Tips For System Administrators: UNIX Commands Comparison Sheet

This blog post provides a comparison sheet of common UNIX commands across different operating systems including AIX, Solaris, HP-UX, Linux, and others. It lists commands for tasks like displaying system information, checking memory and disks, viewing networking details, managing services, and more. The sheet shows the equivalent commands for each operating system to perform similar functions.

Uploaded by

eusphorus
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/ 17

AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet

AIX,Solaris,HP-Ux & Linux Tips for System


Administrators
This is a blog for Unix tips

HOME FORUM DOWNLOADS PRODUCTS TUTORIALS LINKS SUBSCRIBE NOW

SEARCH THIS BLOG TUESDAY, 12 MARCH 2013

Search

UNIX Commands Comparison Sheet


LABELS
Sysinfo Display system information i.e cpu, memory, etc
↑ Automatically e-mail error report
entries
(1) Memory and Swap Information regarding the physical memory and swap area

A nice clean dump


(1) Disks, Filesystems and Devices Displaying disk information, filesystems

AIX
(59) Networking Display and configuring network parameters

AIX - Tips n Tricks


(1) Crash Dump Configure, display and use the crash dump utiltities

AIX 7.1 Installation Tips


(1) Performance Monitoring and Diagnostics List, Monitor and trace processes

AIX Acronym
(1) Kernel Modules and Parameters Displaying, modifying and tuning kernel parameters

AIX Bits and Pieces


(1) Services Display, start and stop services

AIX commands you should not leave Patching / Packages Installing and removing patches and software packages
home without
(1) Accounts Setting up and removing user accounts
AIX Error logging
(1) NFS Information on NFS i.e starting, stopping, etc
AIX IPL progress codes
(1) NTP Network Time Protocol
AIX LVM Cheat Sheet
(1) Log Files Location to common log files
AIX Makes Renaming Devices Easy
(1) Security Security information
AIX ODM Commands
(1) Misc Other stuff i.e shutdown, timezone, run level, etc
AIX QuickStart
(1)
AIX System Recovery Tips and sysinfo
Techniques
(1)
  Solaris Red Hat Ubuntu/Debian
AIX Technology Level update strategies-
Different supported ways of updating cat /etc/release cat /etc/enterprise-release cat /etc/lsb-release /stand
AIX to a new Technology Level (TL) cat /etc/redhat-release
Server Release info
version
(1) lsb_release -a
lsb_release -acat /proc/version
AIX tips for RHEL administrators
(1)
/usr/platform/`uname -i`/sbin/prtdiag -v dmidecode dmidecode model
AIX Updates: Committed Admins Need Server type
uname
not Apply
(1)
prtdiag -v lspci lspci ioscan
AIX: Commands
(1)
prtpicl -v [-c <class>] lsusb lsusb ioscan

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
AIX: Smitty /Smit Fast Path Commands prtconf -D lshal lshal /opt/i
(2) Note: hal = hardware abstraction layer cat /v
AIX:BOOT PROCESS
(1)
Hardware Info
AIX:Device Related Commands
(1)
AIX:Moving filesystem between volume
groups
(1)
AIX:Network Related commands
(1)
AIX:Patch Management
(1)
Operating System uname -a uname -a uname -a uname
AIX:Performance commands
(1)
/usr/platform/`uname -i`/sbin/prtdiag -v cat /proc/meminfo (detailed) cat /proc/meminfo (detailed) dmesg
AIX:Re-create a Corrupted Boot Image prtconf | grep -i mem free -om free -om /usr/s
(1) Memory
cat /proc/slabinfo cat /proc/slabinfo /opt/i
AIX:Repairing Corrupt File Systems or cat /v
File System Log Devices
(1)
/usr/platform/`uname -i`/sbin/prtdiag -v cat /proc/cpuinfo (detailed) cat /proc/cpuinfo (detailed) /opt/i
AIX:Replace a Failed Physical Volume in a ## display,offline,online sam ->
Mirrored Volume Group
(1) CPU (type, number, etc) psrinfo cat /v
AIX:Sendmail issue
(1) psradm -f 0 (offline)
psradm -n 0 (online) 
AIX:sysdump analysis
(1)
format fdisk -l fdisk -l ioscan
AIX:TCP/IP commands
(1) prtvtoc <device> sfdisk -l (advanced server) sfdisk -l (advanced server)
AIX:Useful Web Links
(1) format -e (to convert EFI (zfs) to SMI) parted <device> print parted <device> print
Disk Drives
Alternate disk Installation method
(1) Note: partprobe -s <device> partprobe <device>
EFI - Extensible Firmware Interface
AWK Cheat Sheet
(1) SMI - Sun Microsystems Inc
AWK Examples
(1) /kernel/genunix /boot/initrd.?????.img /boot/initrd.img-?????-server /stand
AWK One-Liners
(1) /boot/vmlinuz /boot/vmlinuz-????-server
/platform/sparc/kernel
Awk One-Liners Explained
(3) Kernel File and associated
/platform/i86pc/kernel
Backup
(5) directories
/kernel
Basic (Useful) TSM commands
(1) /usr/kernel

Basic Info on TSM Client


(1)
isainfo -kv (solaris 9+) uname -a uname -a getcon
Booting AIX in Maintenance Mode
(1) isalist (sparc v9 will be listed first) uname -m uname -m /opt/i
Cheat Sheet
(31) isainfo -b getconf -a |grep -i 'long_bit' getconf -a |grep -i 'long_bit'
Cheat Sheet for AIX User-related HPUX
Kernel 32 or 64
Commands
(1)
Note:
Cluster
(3) getcon
Command Line HMC Commands
(1) /opt/i
Common 10 UNIX Command Line At the OK prompt type banner boot into the BIOS (normally F2 or F12) boot into the BIOS (normally F2 or F12) workst
Mistakes
(1) reboot
Configuring Persistent static route in Display Firmware enter
Linux
(1) type:
type:
Configuring Tape Devices on AIX with
NPIV and VIOS
(1) n/a /proc/interrupts /proc/interrupts n/a
Display IRQ, IO ports and DMA /proc/ioports /proc/ioports
Configuring virtual tape in VIOS
(1) /proc/dma /proc/dma
Conversion of Normal VG to Big VG
(1) admintool linuxconf linuxconf sam
GUI admin tool
Crontab – Quick Reference
(1)
Database
(1)
Delete Multiple Default Gateways
(1) Memory and Swap
devscan tool
(1)   Solaris Red Hat Ubuntu/Debian HP
DLPAR checklist
(1) /usr/platform/`uname - cat /proc/meminfo (detailed) cat /proc/meminfo (detailed) dmesg | grep -i physical
i`/sbin/prtdiag -v free -om free -om /usr/sam/lbin/getmem
Downloading AIX and Fixes
(1) Memory
prtconf | grep -i mem /opt/ignite/bin/print_manifest

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
Dynamically detecting new disks in Linux cat /var/opt/ignite/local/manifest/manifest.in
(1)
page size /usr/bin/pagesize /usr/bin/getconf -a| egrep -i /usr/bin/getconf -a| egrep -i dmesg |grep -i physical
Easy Ways to Trace VSCSI Configuration (memory) 'pagesize|page_size' 'pagesize|page_size'
with AIX
(2)
swap -l cat /proc/swaps (detailed) cat /proc/swaps (detailed) swapinfo (displayed in KB)
EMC PowerPath Powermt Command display swap swap -s swapon -s swapon -s swapinfo -m (display in Mb)
Examples
(1) swapinfo -tm (total / Mb)
ETHERCHANNEL Setup
(1) mkfile 5m /var/swapfile device: device: Create logical volume or filesystem
Find Command Examples
(1) swap -a /var/swapfile create partition with fdisk (type 82) create partition with fdisk (type
file(create 50MB swap file): 82) swapon <device> | -f <logical device>
Fixing a damaged file system
(1)
update /etc/vfstab dd if=/dev/zero of=/var/swapfile file(create 50MB swap file): swapon -p 3 <device> | -f <logical device>
Fixing corrupted vmdk file.linux
(1) bs=1024 count=50000 dd if=/dev/zero of=/var/swapfile
Fixing wtmp errors
(1) bs=1024 count=50000 update /etc/fstab
mkswap <device>|<file>
GPFS introduction
(1)
adding swap swapon <device>|<file> mkswap <device>|<file> Note: -p = priority swap number .
HACMP: Cluster Commandline
(1) swapon <device>|<file> The nswapdevtunable system parameter contro
HBA upgradation Procedure
(1) update /etc/fstab the maximum number of swap devices.
update /etc/fstab
Helpful Administrative Scripts
(1)
Helpful SAN LUN Disk AIX Commands
(1)
HMC
(6)
HMC Topic
(1)
update /etc/vfstab swapoff <device>|<file> swapoff <device>|<file> remove entry from /etc/fstab
HMC useful commands
(1) removing swap -d reboot
Hot Swappable Disk Replacement in AIX swap Remove device or file as normal Remove device or file as normal
(1)
How can I apply an efix or ifix?
(1) Disks, Filesystems and Devices
How can I directly read out the VGDA of   Solaris Red Hat Ubuntu/Debian
a PV (hdisk)?
(1) format fdisk -l fdisk -l
How can I figure out if a fibrechannel prtvtoc <device> sfdisk -l (advanced server) sfdisk -l (advanced server)
card is linked to a switch port
(1) format -e (to convert EFI (zfs) to SMI) parted <device> print parted <device> print
Disk Drives
How to cleanup AIX EMC ODM Note: partprobe <device> partprobe <device>
definitions
(1) EFI - Extensible Firmware Interface
SMI - Sun Microsystems Inc
How to run remote command on VIO
server
(1) format hdparm -i /dev/hda hdparm -i /dev/hda
iostat -En hdparm -I /dev/hda (detailed) hdparm -I /dev/hda (detailed)
How to setup SEA failover with Load
luxadm inq <disk> (A5x00 disk arrays)
Sharing configuration
(1)
hdparm -Tt /dev/hda (speed test) haparm -Tt /dev/hda (speed test)
How to setup user managed GPFS
cluster using db2cluster utility
(1) sdparm -i /dev/sdb sdparm -i /dev/sdb
How to use snap command on AIX
(1) Disk serial Number, type,
etc cat /proc/ide/ide0/hda/model cat /proc/ide/ide0/hda/model
How to use the HMC Commandline
(1)
cat /proc/scsi/scsi cat /proc/scsi/scsi
HOWTO: Cleanup a MISSING PV disk
(2)
HOWTO: Setup Dual VIOS VSCSI and
MPIO
(1)
HP-UX
(1)
HP-UX LVM Cheat Sheet
(1) prtvtoc <device> fdisk -l fdisk -l
IBM AIX LPAR Performance
(1) sfdisk -l (advanced server) sfdisk -l (advanced server)
IBM AIX TCP Traffic Regulation
(1) cat /etc/vfstab cat /proc/partitions (very high level) cat /proc/partitions (very high level)
cat /etc/fstab cat /etc/fstab
IBM AIX Tools at Your Fingertips
(1)
Introduction to PowerHA
(1)
Disk disk partitions
KDB Commands
(1)
lcfd restart process
(1)
Linux
(8)

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
Linux Network bonding – setup guide
(1)
Linux-Logical Volume Manager (LVM)
(1)
LPAR2RRD
(1) use format to partition the disk then just use ## Old way mknod /dev/rawctl c 162 0
the slice as a raw partition, remember to use /etc/sysconfig/rawdevices mknod /dev/raw/raw0 c 162 1
lsof - List open files
(1)
the character device service rawdevices start mknod /dev/raw/raw1 c 162 2
LVM
(9) chkconfig rawdevices on ln -s /dev/rawctl /dev/raw/rawctl
Managing Disks and File Systems on AIX ## New way, Edit below file
List Raw Partitions
(1) /etc/udev/rules.d/60-raw.rules ## map raw devices to the disk
udevinfo -d or udevadm raw /dev/raw/raw1 /dev/sdb1
monitorCpuUsage.sh
(1)
MPIO in AIX
(1) ## Display raw partitions ## display raw devices
netapp
(1) raw -qa raw -qa

Netapp Snapmirror Setup Guide


(1) df -k df -k df -k
Filesystem commands df -h  df -h df -h
Netapp Snapvault guide
(1)
Netbackup Cheat Sheet
(1)
newfs -v <raw device> mkfs -t ext3 /dev/sdb1 mkfs -t ext3 /dev/sdb1
Networking
(1)
NIM Commands
(1) # Display how the filesystem was created
newfs -Nv <filesystem>
nmon : AIX and Linux performance
monitoring tool
(1)
ntpserver
(1) Filesystem (create|remove)
Numbering and Calculations
(1)
Numbering and Text Conversion and
Substitution
(1)
ODM
(2)
One Liners
(8)
tunefs tune2fs tune2fs
OpenSource Tools for AIX
(1)
fstyp -v <device> |grep -i minfree tune2fs -l /dev/sda1 tune2fs -l /dev/sda1
Part 4: Networking
(1) # change reserved blocks percentage to 1% # change reserved blocks percentage to
Part 5: What to Do After the First Server tune2fs -m 1 /dev/sda1 tune2fs -m 1 /dev/sda1
Tune Filesystems
Reboot
(1)
Part I: File Spacing
(2)
Part II: Selective Printing of Certain Lines
(1)
touch /forcefsck touch /forcefsck
Part II: Text Conversion and Substitution shutdown -Fr now shutdown -r now
(1)
Part III: Selective Deletion of Certain
Lines and Special Applications
(1) Force fsck # Check to see filesystem needs checking tune2fs -l /dev/sdb<?> |grep -i 'filesystem state' tune2fs -l /dev/sdb<?> |grep -i 'filesyst
fstyp -v <filesystem> | grep fsclean
Part III: Selective Printing and Deleting of
Certain Lines
(1) # edit /etc/default/rcS change below s
# you dont have to hang around
Performance
(2) FSCKFIX=yes
PERFORMANCE DATA COLLECTION ufsdump|ufsrestore dump/restore dump/restore
PROCESS -AIX 6.1v
(1) tar tar tar
Pocket guide for netapp commands
(1) dd dd dd
backup filesystem
cpio cpio cpio
Practical AIX troubleshooting
(1)
PuTTY: Extreme Makeover Using PuTTY
Connection Manager
(1)
eeprom |grep boot-device cat /boot/grub/grub.conf cat /boot/grub/menu.lst
Quick and Easy DB2 HADR Setup
(1) prtconf -pv |grep bootpath cat /etc/lilo.conf
Display the boot device
Quick memo for useful commands
(1) prtpicl -v|grep ':bootpath' grub = grand unified boot loader
lilo = linux loader
Removing ODM information of a logical
volume
(1) setenv boot-device [<device>|<alias>] /boot/grub/grub.conf /boot/grub/menu.lst
eeprom boot-device [<device>|<alias>] /etc/lilo.conf
Rename Logical volume name
(1)

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
Setting the boot device
Resetting an unknown AIX root password
(1)
RPM Commands
(1) installboot /usr/platform/`uname - grub-install <raw-device> grub-install <raw-device>
SAN Migration via LVM: Don't Forget Creating boot device (MBR) i`/lib/fs/ufs/bootblk <raw-device> lilo -v
Raw Logical Volumes
(1)
Secrets of an AIX Administrator
(2) fdformat -v -U floppy --probe (use device obtained below ) n/a
volcheck -v floppy --createrc > /etc/fd0
Security
(1) Format floppy drive
newfs -v /vol/disk/aliases/floppy0 floppy --format /dev/fd0
Sed One-Liners
(1) mkfs /dev/fd0
Sed One-Liners Explained
(3) volrmmount -l floppy0 mount /dev/fd0 /mnt/floppy n/a
mount/unmount floppy
Sed Stream Editor Cheat Sheet
(1) eject floppy umount /mnt/floppy

Setting Up Password-less Logins with mount -F hsfs -o ro <device path> mount -rt iso9660 /dev/cdrom /mnt/cdrom mount -rt iso9660 /dev/cdrom /mnt/cd
SSH
(1) /cdrom/cdrom0 umount /mnt/cdrom umount /mnt/cdrom
umount /cdrom/cdrom0 eject cdrom eject cdrom
Shell Script
(13) mount/unmount CDROM
Show the line number while monitoring /etc/init.d/volmgr start
the log files using tail -f command?
(1) eject cdrom
Skip the Script and Try the Apply n/a mount -o remount,rw / mount -o remount,rw /
Command
(1) remount a filesystem
Solaris
(2)
Solaris ODS (online disk suite)
(1) n/a mkbootdisk `uname -r` (boot diskette) n/a
create boot disk or
Some tips and techniques for managing recovery tape
GPFS file systems
(1)
ok> boot cdrom -s using the grub window append the word singleto using the grub window append the word 
Squid Cache proxy – a quick setup guide
(1) the kernel line the kernel line

Storage
(4)
Storage Topic
(1) boot cdrom/diskette (single
Symdi Commands
(1) user)
System Auditing with AIX
(1)
The Live Partition Mobility (LPM) Cheat
Sheet
(1)
Top 10 AIX Commands
(1)
ok> boot -as f10 or f12 f10 or f12
Trouble Unmounting? Try These
Commands
(1)
Tune AIX for Optimal Performance
(1)
Understanding Power System LPAR
Profiles
(2) boot into maintenace mode
UNIX
(5)
UNIX Commands Comparison Sheet
(1)
Useful HACMP commands
(1)
Veritas Volume Manager Cheat Sheet
(1)
vi Editor “Cheat Sheet”
(1)
floppy:disk: floppy: floppy:
VIO Server Howto
(1) /dev/dsk/c0t0d0s0 /dev/fd0 /dev/fd0
VIOS COMMAND LINE: UNDER THE disk: disk:
COVERS
(1) tape: /dev/hda or /dev/sda /dev/hda or /dev/sda
/dev/rmt/0ucb /dev/hdb or /dev/sdb /dev/hdb or /dev/sdb
VIOS disk mapping in a nutshell
(1) tape: tape:
VIOS vs AIX matrix
(1) Device paths cdrom: cdrom: cdrom:
Vmware Performance tuning Tips
(1) /dev/dsk/c0t6d0s0 /dev/hda (depends on number of IDE disks) /dev/hda (depends on number of IDE d
/dev/scd0 (external usb cd)
wtmp cleanup procedure
(1)

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
ZFS : Basic administration guide
(1)

LVM drvconfig /dev/MAKEDEV <device> /dev/MAKEDEV <device>


devlinks
update /dev directory disks|tapes|ports
POPULAR POSTS
devfsadm ( solaris 8, 9, 10)
UNIX Commands Comparison Sheet
rem_drv    
Sysinfo Display system information i.e
cpu, memory, etc Memory and Swap
Information regarding the physical remove or change a device
memory and swap area Disks, Files...

Netapp Snapmirror Setup Guide prtconf -D cat /proc/devices cat /proc/devices


Snapmirror is an licensed utility in sysdef
Netapp to do data transfer across filers.
Snapmirror works at Volume level or
Qtree level. Snapmirror...

Volume Group list device drivers


VOLUME GROUP When you install a
system, the first volume group (VG) is
created. It is called the rootvg. Your
rootvg volume group is a base ...

ZFS : Basic administration guide


ZFS is a combined file system and logical Networking
volume manager designed by Sun   Solaris Red Hat Ubuntu/Debian
Microsystems. The features of ZFS
include support for high storag... Basic network information /etc/hostname.hme0 /etc/sysconfig/network /etc/network/interfaces
  (hostname, ip address) /etc/sysconfig/network-scripts/ifcfg-eth0
Cheat Sheet for AIX User-related prtdiag -v ifconfig ifconfig
Commands ifconfig -a system-config-network (GUI)
Many administration activities that work
on other UNIX-derived operating kstat hme:0
systems, such as Linux and Solaris, work kstat e1000g:0
without change on AIX. But... displaying network interfaces

Secrets of an AIX Administrator, Part 3:


Tips for Patching Your AIX Server
Nowhere is the truism "the only constant
thing is change" more relevant than in
the IT world. We have to deal with the ifconfig ifconfig ifconfig
constant pr...

GPFS introduction
GPFS introduction GPFS is a concurrent
file system. It is a product of IBM and is
short for General Parallel File System . It
is a high-per...
Configure network interface
Veritas Volume Manager
VM daemons vxconfigd Maintains
system configuration in the kernel & disk
(private region). If the daemon is
stopped it does not disable ...

nmon : AIX and Linux performance


monitoring tool
Nmon : A free performance monitoring
ifconfig qfe0 up /sbin/ifup eth0 /sbin/ifup eth0
script for Linux and AIX systems. It gives
Starting and stopping a network ifconfig qfe0 down /sbin/ifdown eth0 /sbin/ifdown eth0

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
lot of performance information and can
output the performa... interface

ETHERCHANNEL Setup ndd -set <device> <parm> <value> (dynamically) mii-tool -F 100baseTx-FD eth0 ethtool -s eth1 speed 100 d
ETHERCHANNEL: EtherChannel is a /etc/system (edit and update then reboot - ethtool -s eth1 speed 100 duplex full
trademark registered by Cisco Systems permanent)
Setting NIC speed
and is generally called multi-port
trunking or link aggregation. If yo...

ndd -get <device> <parm> mii-tool -v ethtool eth0


BLOG ARCHIVE ethtool eth1
▼ 
2013
(162) # List parameters ethtool -t eth0 online sysctl -a |grep net*
Change NIC parameters ndd -get /dev/hme \?
▼ 
March
(162) ndd -get /dev/e1000g0 \? sysctl -a | grep net*
check ndd -get /dev/ip \?
ndd -get /dev/tcp \?
Filesystem
     
Volume Group Display NIC statistics
Logical Volume
Physical Volume ifconfig -a (as user root) ifconfig ifconfig
display MAC address
system-config-network (GUI)
How to check that a
snoop -d <interface> tcpdump -i <interface> tcpdump -i <interface>
user/password is expired in AI...
ethereal (needs to be installed) ethereal (needs to be instal
AIX: Finding your HMC the easy Displaying network packets
way
Using lvmstat
/etc/defaultrouter edit /etc/sysconfig/network edit /etc/network/interfac
lsmksysb
default router add: GATEWAY=<IP address>
aixquickstart route add default <gteway> add: gateway <IP address>
Removing ODM information of a netstat -rn netstat -rn netstat -rn
logical volume display routing table route -n route -n
How to cleanup AIX EMC ODM
definitions if_mpadm -d           (detach) ifenslave -d bond0 eth1   (detach) ifenslave -d bond0 eth1   (d
Test IPMP, Bonding if_mpadm -r           (reattach) ifenslave bond0 eth1       (reattach) ifenslave bond0 eth1       (re
Automatically e-mail error report
tail /var/adm/messages cat /proc/net/bonding/bond0 cat /proc/net/bonding/bon
entries
change the following files: /etc/sysconfig/network /etc/hostname
Delete Multiple Default Gateways /etc/nodename /etc/hosts /etc/hosts
LPAR2RRD /etc/hostname.<interface>
change the hostname /etc/inet/hosts sysctl -a |grep hostname sysctl -a |grep hostname
IBM AIX LPAR Performance /etc/inet/ipnodes
Fixing corrupted vmdk file /etc/net - few files in here as well

OpenSource Tools for AIX


setup DNS /etc/resolv.conf /etc/resolv.conf /etc/resolv.conf
Vmware Performance tuning Tips
/etc/nsswitch.conf /etc/nsswitch.conf /etc/nsswitch.conf
Configuring Persistent static route
/etc/resolv.conf /etc/host.conf /etc/host.conf
in Linux
/etc/resolv.conf /etc/resolv.conf
Name service switch file (DNS
Pocket guide for netapp
client)
commands
Netapp Snapvault guide
Linux Network bonding – setup
svcadm restart system/name-service-cache:default ## if installed  
guide Flush DNS cache
service nscd restart
ZFS : Basic administration guide /etc/defaultdomain /etc/sysconfig/network  (HOSTNAME option) /etc/host
Netapp Snapmirror Setup Guide /etc/resolv.conf /etc/resolv.conf
Domain Name
Squid Cache proxy – a quick setup Note: for NIS use the NISDOMAIN option

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
guide
route -n get <hostname> ip route get <IP address> ip route get <IP address>
Dynamically detecting new disks in Obtain IP Address routing
traceroute traceroute traceroute
Linux
Boot (jumpstart) servers: Boot (jumpstart) servers: Boot (jumpstart) servers:
lsof - List open files rpcinfo -b bootparam 1 rpcinfo -b bootparam 1 rpcinfo -b bootparam 1
RPM Commands NFS servers: NFS servers: NFS servers:
rpcinfo -b mountd 1 rpcinfo -b mountd 1 rpcinfo -b mountd 1
nmon : AIX and Linux performance NIS servers/slaves: NIS servers/slaves: NIS servers/slaves:
Find Services on the network
monitoring tool rpcinfo -b ypserv 1 rpcinfo -u <yp server> ypserv rpcinfo -u <yp server> ypser
AIX - Tips n Tricks
AIX tips for RHEL administrators
IBM AIX TCP Traffic Regulation
Crash Dump
Tune AIX for Optimal Performance
  Solaris Red Hat Ubuntu/Debian HP
Managing Disks and File Systems
dumpadm -d <device> diskdump diskdump edit /stand/system sysdumpdev -l (list dum
on AIX
crash (used to netdump netdump add either: sysdumpdev -e (estima
Solaris ODS (online disk suite) analyse crash dumps) kdump (part of kexec rpm) kdump (part of kexec rpm) dump 2/0/1.5.0 sysdumpdev -L (info)
adb (used to analyse /etc/kdump.conf (select where you /etc/kdump.conf (select where you dump lvol sysdumpstart -p (start
Introduction to PowerHA
crash dumps) want the dump to go) want the dump to go) dump none sysdumpstart -s (start d
Some tips and techniques for Crash Dump service kdump start service kdump start # crash config file
managing GPFS file sy... chkconfig kdump on chkconfig kdump on /etc/rc.config.d/savecrash # set the dump device
sysdumpdev -p <dump
How to setup user managed GPFS
## to crash the system ## to crash the system
cluster using db2cl...
echo "c" > /proc/sysrq-trigger echo "c" > /proc/sysrq-trigger # analyse dump file
Devscan tool crash (used to analyse crash dumps) crash (used to analyse crash dumps) echo "stat\n status\n t
AIX Technology Level update Performance Monitoring and Diagnostics
strategies-Different s...
  Solaris Red Hat Ubuntu/Debian HP AIX
PuTTY: Extreme Makeover Using top (sunfreeware) top top top topas -P
PuTTY Connection Man...
prstat sar sar sar topas -L  (logical partitions)
AWK One-Liners sar mpstat mpstat w          (load average) mpstat
mpstat w          (load average) w          (load average) uptime   (load average) sar -c
AWK Cheat Sheet
w          (load average) uptime   (load average) uptime   (load average) ps w          (load average)
Awk One-Liners Explained, Part III: CPU uptime   (load average) ps ps vmstat uptime   (load average)
Selective Prin... ps vmstat vmstat glance lparstat
vmstat procinfo procinfo sam ps
Awk One-Liners Explained, Part II:
oprofile cat /proc/cpuinfo iostat -tT 1
Text Conversion...
cat /proc/cpuinfo tprof
Awk One-Liners Explained, Part I: curt 
File Spacing, Nu...
prstat free free top topas
Sed One-Liners vmstat vmstat vmstat vmstat vmstat
top top top sar sar -b
Sed Stream Editor Cheat Sheet
sar procinfo procinfo sam svmon
Memory
Sed One-Liners Explained, Part III: slabtop slabtop glance ps
Selective Dele... sar sar ipcs -a
cat /proc/meminfo  cat /proc/meminfo lockstat (version 4)
Sed One-Liners Explained, Part II:
rmss 
Selective Print...
ndd ethtool ethtool netstat [ent|tok|fddi|atm]stat
Sed One-Liners Explained, Part I:
netstat mii-tool mii-tool lanadmin netstat
File Spacing, Nu...
lsof netstat netstat sam netpmon (trcstop to stop
Show the line number while Network I/O snoop lsof lsof glance  trace)
monitoring the log file... route tcpdump tcpdump
ip ip
AIX COMMANDS
iptraf iptraf
AIX LVM Cheat Sheet
sar -d sar -d sar -d iostat topas -D   (disk)
How can I apply an efix or ifix? iostat iostat iostat sar topas -F   (filesystem)
vmstat vmstat vmstat sam iostat
SAN Migration via LVM: Don't
lsof lsof lsof glance sar -D

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
Forget Raw Logical Vo...
fcstat (fibre)
AIX System Recovery Tips and lvmstat
Disk I/O
Techniques filemon (trcstop to stop)
fileplace
Quick and Easy DB2 HADR Setup
Easy Ways to Trace VSCSI # disk stat history
Configuration with AIX chdev -l sys0 -a iostat=true
Configuring Tape Devices on AIX lsattr -HEl sys0 -a iostat
with NPIV and VIOS... truss -p <pid> strace -p <pid> strace -p <pid> download and topas
install tusctusc -p <pid> truss
Understanding Power System LPAR
Profiles sar
Application
probevue
Secrets of an AIX Administrator, tprof
Part 5: What to D... svmon -P <pid>
Secrets of an AIX Administrator, NFS nfsstat nfsstat nfsstat nfsstat nfsstat
Part 4: Networkin...
Kernel Modules and Parameters
Secrets of an AIX Administrator,
  Solaris Red Hat Ubuntu/Debian
Part 3: Tips for ...
modinfo cat /proc/modules (more detailed) cat /proc/modules (more detailed) kmad  
Secrets of an AIX Administrator,
lsmodLocation: lsmodLocation:
Part 2: File Syst...
/lib/modules/`uname -r`/kernel/drivers /lib/modules/`uname -r`/kernel/drivers
Secrets of an AIX Administrator - display loaded modules
Part 1 Config: Config:
/etc/modprobe.conf /etc/modprobe.d/options
A nice clean dump
/etc/modprobe.d /etc/modprobe.d
VIOS COMMAND LINE: UNDER THE
modload -p drv/<module name>  modprobe <module> modprobe <module> kmad
COVERS load modules
insmod insmod
How can I directly read out the modunload -i <module number> modprobe -r <module> modprobe -r <module> kmad
VGDA of a PV (hdis... unload modules
rmmod rmmod kmad
How to use the HMC /etc/system (edit and reboot) /etc/sysctl.conf (edit and update then reboot) /etc/sysctl.conf (edit and update then reboot) kcwe
Commandline sysctl -p <filename>sysctl -w param=value sysctl -p <filename>sysctl -w param=value kctu
HACMP: Cluster Commandline rebu
No reboot (dynamically): No reboot (dynamically):
NIM Commands echo "250 32000 100 28" > /proc/sys/kernel/sem echo "250 32000 100 28" > /proc/sys/kernel/sem
VIO Server Howto echo "536870912" > /proc/sys/kernel/shmmax echo "536870912" > /proc/sys/kernel/shmmax
set kernel parameters echo "4096" > /proc/sys/kernel/shmmni echo "4096" > /proc/sys/kernel/shmmni
Helpful SAN LUN Disk AIX (tuning) echo "2097152" > /proc/sys/kernel/shmall echo "2097152" > /proc/sys/kernel/shmall
Commands
etc............................................. etc.............................................
Top 10 AIX Commands
AIX QuickStart
AIX ODM Commands
AIX Makes Renaming Devices Easy
cat /etc/system sysctl -a sysctl -a kctu
IBM AIX Tools at Your Fingertips sysdef -i cat /etc/sysctl.conf cat /etc/sysctl.conf sysde
How to use snap command on AIX display kernel kmtu
parameters cat /proc/sys/kernel/sem cat /proc/sys/kernel/sem kmsy
Downloading AIX and Fixes cat /proc/sys/kernel/shmmax cat /proc/sys/kernel/shmmax /usr/
PERFORMANCE DATA COLLECTION etc................................... etc................................... /tmp
PROCESS -AIX 6.1v edit and update file then reboot: cd /usr/src/linux-2.5   cd /s
Setting Up Password-less Logins /etc/system edit Makefile (change EXTRAVERSION) /usr/
with SSH make mrproper edit
backup .config /usr/
Common 10 UNIX Command Line make xconfig mv /
Mistakes make dep mv /
build kernel
MPIO in AIX make bzImage mv /
make modules mv /
Quick memo for useful commands

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
move new kernel rebo
DLPAR checklist make modules_install
change lilo/grub config file
Configuring virtual tape in VIOS reboot
HMC useful commands interprocess ipcs -a ipcs -a ipcs -a ipcs
vi Editor “Cheat Sheet” communication

HOWTO: Setup Dual VIOS VSCSI Services


and MPIO   Solaris 10 Red Hat Ubuntu/Debian HP
AIX Updates: Committed Admins svcs -a service --status-all There is no services or chkconfig command use There is no services or chkconfig command
display services
Need not Apply inetadm -l the old fashioned way /etc/init.d/<service> use the old fashioned way
svcadm enable nfs service nfs start /sbin/init.d/<service>
System Auditing with AIX
start services
Skip the Script and Try the Apply
Command svcadm disable nfs service nfs stop
stop services
Cheat Sheet for AIX User-related
Commands reload service svcadm refresh nfs service nfs reload

Trouble Unmounting? Try These svcadm restart nfs service nfs restart
restart service
Commands
Understanding Power System LPAR service status svcs nfs service nfs staus
Profiles svcs -d network n/a
service dependencies
The Live Partition Mobility (LPM)
Cheat Sheet svcs -D network n/a
service dependants
Fixing wtmp errors
/var/svc/log n/a
service logging, etc /var/svc/manifest
► 
2008
(2)
/lib/svc/method
n/a chkconfig --levels 2345 nfs on
change service startup

n/a # Create your stop/start


# script in /etc/init.d
Add a new service
chkconfig --add <script>
Patching / Software
  Solaris Red Hat Ubuntu/Debian
showrev -p    
display installed patches patchadd -p

patchadd patch -p1 <patch>  


patchadd -M <dir> (multiple patches)
adding patch zcat patch46.gz | patch -p1

Note: -p = # of path stripping


removing patch patchrm patch -R -p1 <patch>  
pkginfo (all packages) rpm -qa (all packages) dpkg -l
pkginfo -l (single package) rpm -q (single package) dpkg -S <search string> (search)
pkgchk -l -p <file> (file belongs) rpm -qf (file belongs) dpkg -S <filename> (file belongs)
rpm -qi <package> (very detailed) dpkg -s <package> (status)
dpkg -p <package> (detailed) 

display installed packages

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet

pkgadd rpm -Uhv (updates/installs if not already) dpkg -i <package>


rpm -ihv (install)
adding package

pkgrm rpm -e <package> dpkg -r <package> (do not remove config file
dpkg -P <package> (remove config files)
removing packages

pkginfo -l rpm -V <package> n/a


verify package pkginfo -p

pkgchk -l <package> | grep -i pathname rpm -ql <package> dpkg -L <package> (list files)
List files in package

/var/sadm /var/lib/rpm /var/lib/dpkg/info


Package directory

List libraries required for binary ldd <file> ldd <file> ldd <file>
program
Accounts
  Solaris Red Hat Ubuntu/Debian HP
cat /etc/passwd cat /etc/passwd cat /etc/passwd cat /etc/passwd cat /etc/passwd
display users system-config-users (GUI) logins -x
logins -x lsuser -f ALL   (de
useradd useradd mkuser
create a user useradd useradd
system-config-users (GUI) sam useradd
userdel userdel rmuser
remove a user userdel userdel
system-config-users (GUI) sam userdel
chuser -a
usermod
usermod usermod passwd -f
modify a user usermod usermod
system-config-users (GUI) sam passwd -s
chfn <username>
chfn <username><
passwd
change user
passwd passwd passwd passwd pwdadm
password
pwdck -t ALL
create a group groupadd groupadd groupadd groupadd mkgroup <group n
remove a group groupdel groupdel groupdel groupdel rmgroup <group n
modify a goup groupmod groupmod groupmod groupmod chgroup <attribut
/etc/passwd /etc/passwd /etc/passwd /etc/passwd
password files /etc/security/pas
/etc/shadow /etc/shadow /etc/shadow /tcb/files/auth/r/root (trusted system)
id -a id -a id -a id id
whoami whoami whoami whoami whoami
who who who who who
w w w w w
finger finger finger uptime (displays # of users logged in) uptime (displays #
finger finger
useful user
commands # License informa
lslicense
chlicense

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
# Maximum numb
lsattr -D -l sys0 -a
chdev -l sys0 -a m
groups groups groups groups groups
useful group
setpgrp setprivgrp setgroups
commands
newgrp lsgroup ALL
NFS
  Solaris Red Hat Ub
server: mountd, nfsd server: rpc.mountd,nfsd server: rpc.mountd,nfs
NFS Daemons
client: statd, lockd client: rpc.statd, lockd client: rpc.statd, lockd
/etc/dfs/dfstab /etc/exports /etc/exports
NFS files /etc/dfs/sharetab /var/lib/nfs/etab /var/lib/nfs/etab
/etc/rmtab /var/lib/nfs/xtab /var/lib/nfs/xtab
/etc/rmtab /var/lib/nfs/rmtab /var/lib/nfs/rmtab
List nfs clients that have a remote mount

dfshares showmount -e localhost showmount -e localhost


display nfs shares
showmount -e localhost
/etc/dfs/dfstab (edit and add share) redhat-config-nfs (GUI) /etc/exports (edit and
share <path> exportfs -rav (export th
/etc/exports (edit and add share)
## dfstab example /sbin/service nfs reload /etc/init.d/portmap re
create nfs share
share -F nfs -d "jumpstart" /export/jumpstart /etc/init.d/nfs-kernel-
## /etc/exports example
/export *(rw,fsid=0,insecure,no_root_squash,sync) ## /etc/exports examp
/export *(rw,fsid=0,inse
unshare <path> /etc/exports (edit and remove share) /etc/exports (edit and
/etc/dfs/dfstab (edit and remove share)  /sbin/service nfs reload exportfs -rav (export th  
uncreate nfs share

/etc/init.d/nfs.server start /sbin/service nfs start /etc/init.d/portmap st


/etc/init.d/nfs.client start /etc/init.d/nfs-kernel-
start/change nfs daemons svcadm enable nfs/server
svcadm disable nfs/server

/etc/init.d/nfs.server stop /sbin/service nfs stop /etc/init.d/portmap st


/etc/init.d/nfs.client stop /etc/init.d/nfs-kernel-
stop nfs daemons

nfs status ps -ef|grep < nfs daemons> /sbin/service nfs status /etc/init.d/nfs-kernel-
nfs reload shareall /sbin/service nfs reload exportfs -rav (export th
nfs performanace nfsstat nfsstat nfsstat
n/a cat /var/lib/nfs/etab cat /var/lib/nfs/etab
nfs Options

## Make sure you use NFS version 3 n/a n/a


solaris/redhat mount problems (nfs v3 to
mount -F nfs -o vers=3 <mount>
v4)
<mountpoint>
NTP
  Solaris Red Hat Ubuntu/Debian HP
Time daemons xntpd ntpd ntpd xntpd
# Solaris 8 /etc/ntp.conf (edit with ntp servers) /etc/default/ntp /etc/rc.config.d/netdaemo
/etc/ntp.conf dateconfig (GUI) /etc/ntp.conf /etc/ntp.conf

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
/etc/ntp.server chkconfig --list ntpd /etc/init.d/ntp [start|stop|restart]
/etc/ntp.client chkconfig --level 2345 ntpd on
/etc/rc2.d/xntpd [start|stop] /sbin/service ntpd start
ntp setup
# Solaris 10
/etc/inet/ntp.server
/etc/inet/ntp.client

svcadm enable ntpd


/lib/svc/method/xntp /etc/sysconfig/ntpd /etc/default/ntp /etc/rc.config.d/netdaemo
ntp daemon options

ntpq -p ntpq -p ntpq -p ntpq -p


NTP Trace commands ntptrace ntptrace ntptrace ntpdate (set the date)

Log Files
  Solaris Red Hat Ubuntu/Debian HP AIX  
messages /var/adm/messages /var/log/messages /var/log/messages /var/adm/syslog/syslog.log /var/adm/ras
syslog /var/log/syslog /var/log/syslog /var/log/syslog /var/adm/syslog/syslog.log /var/adm/ras
mail   /var/log/mail /var/log/mail.* /var/adm/syslog/mail.log /usr/spool/mqueue/syslog
cron /var/cron/log /var/log/cron /var/log/cron.log /var/adm/cron/log /var/adm/cron/log
/var/adm/ras
/var/adm/messages /var/log/boot /var/log/boot /var/adm/syslog/syslog.log
boot alog -o -t boot
dmesg dmesg dmesg dmesg
alog -o -t console
alog -L  (list all the logs available)
/usr/lib/errdemon -l (display attributes)
/usr/lib/errdemon (start error logging)
/usr/lib/errstop (stop error logging)
# use with above errorlog file
errpt (summary errorlog report)
errpt -a (detailed errorlog report)
Error logging logger logger logger logger Error
errpt -j <identifier> (single errorlog report)

errclear (clears errorlog)


errclear -d <class><days> (clears class errors)

errlogger "message upto 230 chars"


Security
  Solaris Red Hat Ubuntu/Debian HP
pwdck -t ALL
Checking the passwd file pwck pwck pwck pwck
usrck -t ALL
checking the group file grpck grpck grpck grpck grpck
# No reboot required # No reboot required # No reboot required # No reboot required # No reboot re
/etc/default/login /etc/securetty /etc/securetty /etc/securetty /etc/security
console login (allow/deny)
Note: you may need to create this file chsec -f /etc/
if it does not exist
Misc
  Solaris Red Hat Ubuntu/Debian
eeprom grub (GUI) grub (GUI)
setenv boot-device lilo (text based)
startup

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
shutdown -i5 -g0 -y (power down) shutdown -h (halt) shutdown -h (halt)
shutdown -i6 -g0 -y (reboot) shutdown -r (reboot) shutdown -r (reboot)
shutdown -i0 -g0 -y (OK prompt) shutdown -f (fast reboot no fsck) shutdown -P (power off)
shutdown reboot -- -r (reboot/reconfigure) shutdown -F (force fsck) touch /forcefsck
# edit /etc/default/rcS change below so
touch /reconfigure # you dont have to hang around
FSCKFIX=yes
halt halt halt
init init init
poweroff poweroff poweroff
Change run level reboot reboot reboot
shutdown shutdown shutdown
telinit telinit telinit
uadmin
init status
0 0 - shutdown 0 - halt 0 - halt
1 1 - single user 1 - single user 1 - single user
2 2 - n/a 2 - multiuser (no networking) 2 - multiuser (default)
3 3 - Multi-user 3 - multiuser (networking) 3 - same as 2
4 4 - n/a 4 - unused 4 - same as 2
5 5 - power off 5 - GUI 5 - same as 2
6 6 - reboot 6 - reboot 6 - reboot

# change default # change default


vi /etc/inittab vi /etc/inittab
# change default - change all the telinit
vi /etc/event.d/rc-default
-s single user single  - use grub to edit kernel line single  - use grub to edit kernel line
-a interactive emergency - use grub to edit kernel line emergency - use grub to edit kernel line
-x no device drivers (used in linux rescue - use at the boot prompt linux rescue - use at the boot prompt
clustering) single: runlevel1, local fs mounted, no network single: runlevel1, local fs mounted, no network
Startup options -r reconfigure devices emergency: root fs read-only, no init files run emergency: root fs read-only, no init files run
-m milestone rescue: use cd-rom/network, root mounted as rescue: use cd-rom/network, root mounted as
/mnt/sysimage /mnt/sysimage

/etc/init.d /etc/init.d /etc/init.d

/etc/rc0.d - /etc/rc6.d /etc/rc0.d - /etc/rc6.d /etc/rc0.d - /etc/rc6.d


startup scripts

boot F10 or F12 F10 or F12


printenv
setenv
banner
devalias
boot prompt show-devs
commands show-pci-devs-all
probe-scsi-all
probe-fcal-all
probe-pci
watch-net-all
reset-all
Phases: Boot sequence Boot sequence
Boot PROM: displays 1. BIOS 1. BIOS
system information, run
2. POST 2. POST

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet
POST, load bootblk, locate
ufsboot 3. Master Boot Record (MBR) - point to the 3. Master Boot Record (MBR) - point to the
bootloader GRUB or LILO bootloader GRUB or LILO
Boot Programs: bootblk
loads and executes the 4. GRUB (stage 1) - point to GRUB stage 1_5 4. GRUB (stage 1) - point to GRUB stage 1_5
ufsboot 5. GRUB (stage 1_5) - deals with specific 5. GRUB (stage 1_5) - deals with specific
Kernel Initialization: filesystem types look at /boot/grub/*1_5 files filesystem types look at /boot/grub/*1_5
Boot process ufsboot loads and executes 6. GRUB (stage 2) – reads /etc/grub.conf and files
the core kernel, initializes displays the grub menu, it specifies the kernel 6. GRUB (stage 2) – reads /boot/grub/menu.ls
core kernel data and the initrd files and displays the grub menu, it specifies the
structures, loads other 7. KERNEL - control given to the kernel kernel and the initrd files
kernel modules based on 8. INIT - reads /etc/inittab and runs 7. KERNEL - control given to the kernel
the/etc/system file, /etc/rc.d/rc.sysinit script 8. INIT - runs the /etc/event.d/rc-default scri
starts/sbin/init program
init: starts other processes
based on
the /etc/inittab file

determine the run who -r runlevel runlevel


level who -r who -r
obtain default run cat /etc/inittab cat /etc/inittab /etc/event.d/rc-default
level
list locale locale -a locale -a locale -a
n/a startx (shorthand of below)  
start xwindows
initx (lots of parms)
sys-unconfig    
initialize system

/etc/TIMEZONE /etc/sysconfig/clock /etc/timezone


Timezone
/etc/default/init /usr/share/zoneinfo/zone.tab /usr/share/zoneinfo/zone.tab

Courtesy by datadisk.co.uk
Posted by
Rams
at
10:07

Labels:
UNIX Commands Comparison Sheet

6 comments:

Anonymous 16 May 2017 at 23:18


Hi

Superb and fantastic sheet. thank you and very much.


Reply

wthluv 12 July 2019 at 09:55


its very useful thankyou for sharing info
Reply

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet

Rajani 27 August 2019 at 02:09


Thankyou for sharing Good information...
AWS Online Training
Reply

Unknown 12 December 2019 at 01:08


Superb comparison cheat sheet. Thanks a lot for information.
Reply

Unknown 12 February 2020 at 22:24


thank you very much for this..God Bless..:)
Reply

Rajani 6 April 2020 at 23:01

Nice and good article.Thanks for sharing this useful information.


DevOps Training
DevOps Online Training
Reply

Add comment

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]


AIX,Solaris,HP-Ux & Linux Tips for System Administrators: UNIX Commands Comparison Sheet

Newer Post Home Older Post

Subscribe to:
Post Comments (Atom)

Theme images by Storman. Powered by Blogger.

http://unix4admins.blogspot.com/2013/03/unix-commands-comparison-sheet.html[5/19/2020 4:20:52 AM]

You might also like