Professional Documents
Culture Documents
Cross Reference of Linux and Solaris Administration Commands
Cross Reference of Linux and Solaris Administration Commands
Show
entries
Search:
Categor
y
Task
RHEL / CentOS /
Fedora
SUSE
Ubuntu / Debian
Solaris
Disk
Partition Display
s
fdisk, parted,
gparted
fdisk, parted,
gparted
prtvtoc
Disk
Partition Maximum
s
SCSI=15, IDE=63
SCSI=15, IDE=63
SCSI=15, IDE=63
File
Create
System
mkfs, mkfs.ext3,
mkfs, mkfs.ext3, parted,
mkfs, mkfs.ext3,
mkfs.reserfs, parted,
gparted
parted, gparted
gparted
mkfs, newfs
fsck
fsck
fsck, badblocks
fsck
mkswap
mkswap
mkswap
swap -a
swapon
swapon
swapon
swap -a
swapon -s
swapon -s
swapon -s
swap -s
swap -l
swap -l
swap -l
N/A
swapoff
swapoff
swapoff
N/A
File
Check
System
Create swap
Swap
space
Enable swap
Swap
space
Display swap
Swap
space usage
Display swap
Swap
space status
Swap
Disable swap
space
Notes
max
partitions
on solaris
is 7
swapoff
-a (all
swap
Categor
y
RHEL / CentOS /
Fedora
Task
SUSE
Ubuntu / Debian
Solaris
Notes
spaces)
Swap
Swap
LVM
LVM
LVM
LVM
LVM
LVM
LVM
Delete swap
space
Set swap
priority level
Initialize a
disk
rm
rm
rm
swap -d
swapon -p
swapon -p
swapon -p
N/A
pvcreate, mkraid,
mdadm
lvcreate LVname
Create
vgcreate VGname
volume or
devicename
volume group
mkraid, mdadm
pvcreate, mkraid,
mdadm
lvcreate LVname
vgcreate VGname
devicename
mkraid, mdadm
lvchange -a y
Enable
lvchange -a y LVname LVname
volume or
vgchange -a y VGname vgchange -a y
volume group raidstart
VGname
raidstart
lvchange -a n
Disable
lvchange -a n LVname LVname
volume or
vgchange -a n VGname vgchange -a n
volume group raidstop, mdadm
VGname
raidstop, mdadm
Delete
lvremove LVname
lvremove LVname
volume or
vgremove VGname
vgremove VGname
volume group
Add a device lvextend LVname
lvextend LVname
to volume or vgextend VGname
vgextend VGname
volume group newdevname
newdevname
Delete a
lvreduce LVname
lvreduce LVname
device from vgreduce VGname
vgreduce VGname
the volume devicename
devicename
pvcreate, mkraid,
mdadm
lvcreate LVname
vgcreate VGname
devicename
mkraid, mdadm
lvchange -a y
LVname
vgchange -a y
VGname
raidstart
lvchange -a n
LVname
vgchange -a n
VGname
raidstop, mdadm
metainit
metainit volname raidtype
devices ...
N/A
N/A
lvremove LVname
metaclear
vgremove VGname
lvextend LVname
vgextend VGname
newdevname
lvreduce LVname
vgreduce VGname
devicename
metattach or metainit
metadetach
Categor
y
Task
or volume
group
AutoFS Daemon
RHEL / CentOS /
Fedora
raidreconf
SUSE
raidreconf
Ubuntu / Debian
Solaris
raidreconf
automount
automount
automount
automountd
/etc/auto.master
/etc/auto.master
/etc/auto.master
/etc/auto_master
/etc/auto.misc
/etc/auto.misc
/etc/auto_home
File
CD-ROM
System
iso9660
iso9660
iso9660
hsfs
File
DVD
System
udf
udf
udf
udf
File
Windows
System
vfat
vfat
vfat
pcfs
AutoFS
Master cfg
file
File
Linux/unix ext2, ext3, ext4, xfs
System
LVM
Create a soft lvcreate -Lsize
partition or -nLVname
Notes
not a
comman
d but
useful
not a
comman
d but
useful
not a
comman
d but
useful
not a
comman
d but
useful
not a
comman
d but
useful
not a
comman
d but
useful
Categor
y
LVM
LVM
LVM
LVM
LVM
LVM
Task
logical
volume (no
RAID)
Create a soft
partition or
logical
volume
(RAID 0)
Create a soft
partition or
logical
volume on a
specific
device
Delete a soft
partition or
logical
volume
Extend a
volume or
logical
volume
Extend a file
system after
volume
has been
grown
Reduce a
volume or
logical
volume
RHEL / CentOS /
Fedora
VGname
SUSE
VGname
lvcreate
lvcreate -iNumOfStripes
-iNumOfStripes
-IStripeSize -nLVname
-IStripeSize
VGname
-nLVname VGname
mdadm, mkraid
mdadm, mkraid
lvcreate
lvcreate -iNumOfStripes
-iNumOfStripes
-IStripeSize -nLVname
-IStripeSize
VGname
-nLVname VGname
mdadm, mkraid
mdadm, mkraid
+ devicename
+ devicename
lvremove
lvremove
/dev/VGname/LVna
/dev/VGname/LVname
me
raidreconf
raidreconf
lvextend -Lsize
lvextend -Lsize
/dev/VGname/LVna
/dev/VGname/LVname
me
raidreconf
raidreconf
Ubuntu / Debian
Solaris
VGname
lvcreate
-iNumOfStripes
-IStripeSize
-nLVname VGname
mdadm, mkraid
lvcreate
-iNumOfStripes
-IStripeSize
-nLVname VGname
mdadm, mkraid
+ devicename
lvremove
/dev/VGname/LVna
me
raidreconf
lvextend -Lsize
/dev/VGname/LVna
me
raidreconf
metattach volume
resize2fs, resize_reiserfs
resize2fs,
resize_reiserfs
resize2fs
growfs
resize2fs,
lvreduce
resize2fs,
lvreduce
resize2fs,
lvreduce
metadetach Volname
devicename
Notes
Categor
y
LVM
LVM
LVM
LVM
LVM
LVM
LVM
LVM
LVM
LVM
LVM
LVM
Task
Set up or
display
metadb
Display
metadevice
status
Initialize raw
devices to
metadevices
Attach
metadevices
Detach
metadevices
Clear and
remove
metadevices
Replace a
metadevice
Rename a
volume
Check
metadevice
ID
configuration
Manage hot
spares
Set
submirrors
offline
Set
RHEL / CentOS /
Fedora
SUSE
Ubuntu / Debian
Solaris
vgdisplay, lvdisplay,
lsraid
vgdisplay, lvdisplay
cat /proc/mdstat
pvcreate
pvcreate
vgchange, lvchange
vgchange, lvchange
vgremove, lvremove
raidreconf
raidreconf
raidreconf
metareplace
raidreconf
raidreconf
raidreconf
metarename
mdadm
mdadm
mdadm
metadevadm
mdadm, raidhotadd,
raidhotremove
mdadm
mdadm
mdadm
metaoffline
mdadm
mdadm
mdadm
metaonline
pvcreate
metainit
Notes
Categor
y
LVM
LVM
LVM
LVM
LVM
LVM
LVM
LVM
Task
RHEL / CentOS /
Fedora
submirrors
online
Change
volume
vgchange, lvchange
parameters
Back up
volume group vgcfgbackup
metadata
Recover soft
partition
vgcfgrestore
configuration
information
Set up root
file system
N/A
for
mirroring
Administer
disk sets for N/A
sharing
Resynchroniz
e volume
N/A
during
reboot
vgextend, lvextend,
Expand a file resize2fs,
system size resize_reiserfs,
raidreconf
Has entries N/A
that starts up
the
SUSE
Ubuntu / Debian
Solaris
Notes
vgcfgbackup
N/A
vgcfgrestore
vgcfgrestore
metarecover
N/A
N/A
metaroot
N/A
N/A
metaset
N/A
N/A
metasync
vgextend, lvextend,
resize2fs,
resize_reiserfs,
raidreconf
N/A
vgextend, lvextend,
resize2fs,
growfs
resize_reiserfs,
raidreconf
N/A
/etc/system
not a
comman
d, file
Categor
y
LVM
LVM
LVM
LVM
LVM
LVM
LVM
Task
RHEL / CentOS /
Fedora
kernel
metadevice
modules
Sets the
default
/etc/sysconfig/lvm
number of
/etc/raidtab
available
volumes
Scan for
devices
lvmdiskscan
visible to
LVM2
Scan disks
for logical
lvscan
volumes
Display
physical
pvdisplay
volume
attributes
Report
physical
pvs
volume
information
Scan all
supported
logical
pvscan
volume block
devices for
physical disk
Perform
vgck
SUSE
Ubuntu / Debian
Solaris
/kernel/drv/md.conf
lvmdiskscan
lvmdiskscan
N/A
N/A
pvdisplay
pvdisplay
N/A
pvs
pvs
N/A
pvscan
pvscan
N/A
vgck
vgck
N/A
Notes
Categor
y
LVM
LVM
LVM
Pkg
Pkg
Pkg
Pkg
Pkg
Pkg
Task
RHEL / CentOS /
Fedora
consistency
check on the
volume group
Scan all disks
for volume
group data vgscan
and rebuild
caches
Import a
volume group vgimport
to this server
Export a
volume group
vgexport
out of this
server
Install
rpm -i
packages
yum install
Display
rpm -qa
installed
yum list installed
packages
Remove
rpm -e
software
yum remove
package
Upgrade/inst rpm -U
all package yum upgrade/update
Verify correct rpm -V
installation yum-verify
List the
rpm -ql package-name
contents of
an installed
SUSE
Ubuntu / Debian
Solaris
vgscan
vgscan
N/A
vgimport
vgimport
N/A
vgexport
vgexport
N/A
apt-get install
pkg install
dpkg -l
pkginfo or pkparam
apt-get remove
pkgrm
?
?
?
apt-get
upgrade/update
apt-get check or
debsums
apt-file list packagename
pkg update
pkgchk
Look in
/var/sadm/install/contents rpm -
Notes
Categor
y
Pkg
Task
RHEL / CentOS /
Fedora
package
Which
package
rpm -qf filename
contains a file
SUSE
Ubuntu / Debian
apt-file search
filename
Solaris
Look in
/var/sadm/install/contents
Pkg
List all
available
packages
yum list
Pkg
Report
package
information
rpm -qi
?
yum info package-name
Patch
rpm -F
Install a patch
yum update
apt-get update
patchadd
Patch
Remove a
patch
N/A
N/A
N/A
patchrm
Patch
Display
installed
patches
N/A
N/A
N/A
showrev -p
insmod
insmod
insmod
modload
lsmod
lsmod
lsmod
modinfo
rmmod
rmmod
rmmod
modunload
/etc/sysconfig/network
Install
module
KMod List modules
Remove
KMod
module
Network Configure
KMod
dpkg -l \*
Notes
pkg list -n
It is odd
that you
cannot do
this with
rpm.
Look in
apt-cache showpkg
/var/sadm/pkg/PKGNAME/pkg
package-name
info
/etc/hostname.*
Package
mgmt in
linux is
different.
Package
mgmt in
linux is
different.
Package
mgmt in
linux is
different.
Categor
y
Task
TCP/IP
Network
Network
Network
Network
Network
Network
Network
Network
Network
RHEL / CentOS /
Fedora
SUSE
Ubuntu / Debian
/etc/inet/*
/etc/defaultrouter
/etc/defaultdomain
/etc/nodename
/etc/netmasks
etc/network/interfac
and
es
/etc/sysconfig/networkin
/etc/NetworkManage
g/*
r
Display
ifconfig
interface
ip
settings
Display
interface
netstat -i
status and
statistics
Configure
ifconfig
interface
ip
Display
network
netstat
statistics
Change
/etc/resolv.conf
resolver
Change name
/etc/nsswitch.conf
services
Display
kernel
sysctl -a | grep ^net
network
params
Configure
kernel
sysctl -w variable=value
network
params
Check for
ethtool
Solaris
ifconfig
ip
ifconfig
ip
ifconfig -a
netstat -i
netstat -i
netstat -i
ifconfig
ip
ifconfig
ip
ifconfig
netstat
netstat
netstat
/etc/resolv.conf
/etc/resolv.conf
/etc/resolv.conf
/etc/nsswitch.conf
/etc/nsswitch.conf
/etc/nsswitch.conf
ndd /dev/ip \?
ndd /dev/tcp \?
sysctl -w
variable=value
sysctl -w
variable=value
ndd
ethtool
ethtool
ndd
Notes
Categor
y
Network
Network
Network
Network
Network
Network
NFS
NFS
NFS
NFS
NFS
RHEL / CentOS /
Fedora
network link mii-tool
Rename
ip
interface
Check
netstat -r
routing table route
Ping
ping
traceroute
Trace router
zenmap
nmap
Check ports
zenmap
tcpdump
Capture
tethereal
packets
ethereal
wireshark
/etc/init.d/nfs start
Manually
/etc/init.d/nfsserver
start NFS
service nfs start
server
/etc/init.d/nfs-kernelserver start
Task
SUSE
Share all
exported file exportfs -a
systems
Share one
exportfs -o
Solaris
mii-tool
mii-tool
ip
ip
netstat -r
route
ping
traceroute
zenmap
nmap
zenmap
tcpdump
tethereal
ethereal
wireshark
netstat -r
route
ping
traceroute
zenmap
nmap
zenmap
tcpdump
tethereal
ethereal
wireshark
/etc/init.d/nfs.server
start
mount -F nfs
server://resource
/mnt/point
/etc/default/nfskernel-server
/etc/default/nfscommon
/etc/default/nfs /
exportfs -a
exportfs -a
shareall
exportfs -o
exportfs -o
share
mount server://resource
Mount clinet
?
/mnt/point
Server config
/etc/sysconfig/nfs
file
Ubuntu / Debian
Notes
N/A
netstat -r
ping
traceroute
nmap
snoop
wireshark
for new
Categor
y
Task
RHEL / CentOS /
Fedora
exported file
system
NFS
Config file /etc/exports
Device Create device
udev
Creation files
SUSE
Ubuntu / Debian
Solaris
Notes
file
systems
/etc/exports
/etc/exports
/etc/dfs/dfstab
udev
udev
devfsadm