0% found this document useful (0 votes)
4 views

Aix and Linux Command Control

This document provides a quick reference guide comparing AIX and Linux commands and system files, highlighting their equivalents for various administrative tasks. It includes sections on common system files, specific commands for volume management, user and group management, software installation, networking, and system operations. The guide aims to assist users transitioning between AIX and Linux by consolidating essential command information in a single resource.

Uploaded by

陈泽锋
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)
4 views

Aix and Linux Command Control

This document provides a quick reference guide comparing AIX and Linux commands and system files, highlighting their equivalents for various administrative tasks. It includes sections on common system files, specific commands for volume management, user and group management, software installation, networking, and system operations. The guide aims to assist users transitioning between AIX and Linux by consolidating essential command information in a single resource.

Uploaded by

陈泽锋
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/ 4

AIX to Linux Quick sheet

I know its been done more than a million times now, and you can probably
Google the information till the end of time but sometimes you need to
recall the command for something you wrote 5 years ago. So I found this
nice table of AIX to Linux commands and system files, so as its useful
I would like to keep it to hand and this seemed like the best place for
it. Some of these I use everyday so are rather obvious, but as I'm
switching between AIX/Linux is easy to get mixed up. First is AIX to
SUSE, but I'll add in the Redhat ones soon, most are the same so should
work on both (LVM specific for example). Feel free to ping me any
corrections or examples of your own:

Common System Files

File AIX Linux


Password file /etc/passwd /etc/passwd
Encrypted
/etc/security/passwd /etc/shadow
password file
/var/adm/ras/errpt
Error logs /var/log/messages
/var/adm/messages
/etc/group /etc/group
Group files
/etc/security/group /etc/gshadow
Secure login /etc/security/user etc/securetty
/etc/resolv.conf /etc/resolv.conf
DNS
/etc/netsvc.conf /etc/nsswitch.conf
Hosts file /etc/hosts /etc/hosts
Services /etc/services /etc/services
Kernel /usr/lib/boot/unix_64 /boot/vmlinuz
Device files ODM at /etc/objrepos /dev
Inittab /etc/inittab /etc/inittab
inetd.conf /etc/inetd.conf /etc/inetd.conf
File systems /etc/filesystems /etc/fstab
/etc/sysconfig/network (SUSE)
ODM database at
Networking /etc/sysconfig/network (Redhat)
/etc/objrepos
/etc/sysconfig/network-scripts/if* (Redhat)
NFS exports /etc/exports /etc/exports
System /etc/profile
/etc/environment
environment /etc/bash.bashrc
Common
/etc/security/user /etc/default/useradd
User-related
New user profile /etc/.profile /etc/skel/*.*

Specific Commands

Action AIX Linux


Listing
physical lspv pvdisplay
volumes (PV)
List partitions
lspv -l <disk> fdisk -l <disk>
in a disk
List volume
lsvg vgdisplay
groups (VG)
Create volume
mkvg vgcreate
group
Remove volume
rmvg vgremove
group
Add a PV to VG extendvg vgextend
Remove a VG
exportvg vgexport
definition
Remove a PV from
reducevg vgreduce
VG
Import VG importvg vgimport
Activate VG varyonvg vgchange
List logical
lslv lvdisplay
volume (LV)
Create LV mklv lvcreate
Grow
filesystems chfs resize_reiserfs and resize2fs
with LV
Shrink
chfs resize_reiserfs and resize2fs
filesystem
procinfo
Paging/Swap lsps -a
cat /proc/swaps
uname -a
OS level oslevel cat /etc/SuSE-release
cat /etc/redhat-release
Run level who -r runlevel
Uptime uptime uptime
vmstat, ps, sar, vmstat, ps, sar, top, and nmon (if
Performance
topas, and nmon installed)
List installed
lslpp -l rpm -qa
filesets
Which fileset a
which_fileset <name> rpm -qf <path/name>
file is in
Verify
installed lppchk -v rpm -V <package>
filesets
List files in a
lslpp -f <fileset> rpm -ql <package>
fileset/package
List running
genkex lsmod
kernel modules
Insert module N/A (dynamic) insmod and modprobe
Unload modules N/A (dynamic) rmmod and modprobe
List memory
bootinfo -r free, procinfo, and cat /proc/meminfo
installed
Create users mksuer useradd
Change user
chuser usermod and chage
details
Delete users rmuser userdel
Create groups mkgrp groupadd
Change group
chgrp groupmod
details
Delete group rmgrp groupdel
installp, smitty
Install
install, rpm, and rpm -iv, yast -i, yast2 and yum install
software
geninstall
smitty update_all,
Update software rpm -Uv, yast2 and yum
installp, and rpm
Remove software smit install, and rpm rpm -e, yast2 and yum
yast2 network (SUSE)
IP
smitty tcpip /etc/network/sysconfig/network-scripts
configuration
(Redhat)
ifconfig en# alias
IP alias ifconfig eth#:1<IP>
<IP>
Network
netstat -in ifconfig
interfaces
Network routes netstat -rn netstat -rn, route
/etc/sysconfig/routes (SUSE)
staticroutes smitty route /etc/network/sysconfig/network-scripts
(Redhat)
Network options no -a sysctl -a
syslog, evlog, tail /var/log/messages
Error logs errpt and alog
and dmesg
rc.svc_name start, chkconfig,
startsrc -s (SRC
Start daemons /etc/init.d/<svc_name>/start,
Controlled)
service <name> start
rc.svc_name stop, chkconfig,
Stop daemons stopsrc -s /etc/init.d/<svc_name>/stop,
service <name> stop
rc.svc_name restart,
Refresh daemons refresh -p /etc/init.d/<svc_name>/restart,
service <name> restart
Shutdown halt shutdown -h shutdown -h
Fast reboot shutdown -Fr shutdown -r now
System dump sysdumpdev -l N/A
vmo (virtual memory)
Kernel tuning schedo (scheduler) sysctl
no (network)
Change link in
Change kernel Change in /etc/yaboot.conf
/usr/lib/boot/unix_*
Boot image bosboot lilo (SUSE)
Change bootlist bootlist N/A
System boot
alog dmesg
messages

注:本文来源于网络

You might also like