Section G.13. Comparable Commands


G.13. Comparable Commands

Table G-15 provides a quick reference for comparable commands between Solaris and Linux.

Table G-15. [*] Comparable Commands

Solaris

Linux

Usage

/sbin/swapadd

/sbin/swapon

Enable swap devices

adb

gdb

Debugger

admintool

yast2 (SUSE) /usr/bin/system-[*] (Red Hat)

Admin GUI

apptrace

strace and ltrace

Application API tracing

arch -k

uname -m

List machine type

cc

gcc

C compiler

devfsadm

modprobe, kerneld, insmod, hotplug, cardctl

Add device without reboot

df -k

df

Filesystem allocation in units of kilobytes

getfacl, setfacl

getfacl, setfacl

Get, set ACLs

gzcat file | tar -xvf -

tar -xzvf file

Unbundle compressed TAR file

lpsched

lpd

Printer daemon

modinfo

lsmod modinfo

List loaded kernel modules

mountall

mount -a

Mount all entries in fstab

mvdir

mv

Move a directory

nawk

gawk

Awk scripting language

patchadd

rpm -U

Update package

patchrm, pkgrm

rpm -e

Remove package

pkgadd

rpm -i

Add package

pkgchk

rpm -V

Verify package

pkginfo, pkgparam

rpm -qa

Query packages

priocntl -e, nice

nice

Start a process with a given priority

priocntl -s, renice

renice

Change the priority of a running process

prstat

top

Report process statistics

prtdiag

dmesg

Error reporting tool

prtvtoc

fdisk -l

Read disk label

ps -ef

ps [-]aux

List all system processes

snoop

tcpdump, ethereal

Network packets sniffer

tip

minicom

Serial port access program

truss, sotruss

strace, ltrace

Tracing

umountall

umount -a

Unmount entries in mtab

useradd

adduser

Add a user account

who -r

/sbin/runlevel

Show run level

xterm/dtterm

konsole/gnome-terminal

GUI terminal program


[*] Table B-2 of IBM Redbook




UNIX to Linux Porting. A Comprehensive Reference
UNIX to Linux Porting: A Comprehensive Reference
ISBN: 0131871099
EAN: 2147483647
Year: 2004
Pages: 175

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net