Anda di halaman 1dari 2

Page 1 Unix Command Surival Sheet for DB2 Database and System Adminstrators Ausgabe 08/2002

Path / File / Command Funktion Path / File / Command Funktion


.profile Profile Script für Korn Shell User date [format] Ausgabe des Dates [in versch. Formaten]
/etc/group User Group Verzeichnis df -k Display Free KB Block on File Systems
/etc/inittab System Initialization Table diff f1 f2 Differences between Files
/etc/passwd User Verzeichnis diff -rsl f1 f2 Differences, recurse, long, all files
/etc/security/limits AIX User Limits (wie z.B. Hard und Soft File Sizes) dmesg Solaris Display System Messages
/etc/services TCP/IP Dienste-Verzeichnis du -k Disk Usage in KB,
/etc/system Solaris System Kernel -a for each file -s Summary
/etc/vfstab File System Description Table eject Eject (e.g. CD-Rom)
/home[1]/user Home Directory errpt [-a] AIX Error Reporting, auch im Detail
/opt/IBMdb2/Vnn DB2 Package Library exit End Session/Shell
/opt/lbsdba DBA Verzeichnisse fc [-l | -s nn] Command History File, list or start cmd
/usr/lpp/db2_... AIX DB2 Package Library file file Classify File Content
/var/adm/{ras|log} wichtige System Log Files filemon AIX File Access Monitor
/var/db2/vxx/defaults.env DB2 Global Registry find . -name f1 Suche File F1 in diesem Pfad und allen Subdirs
/var/db2/vxx/profiles.reg DB2 System/Node Directory finger -s Short Infos on active Users
^d End Input finger user Find Infos about User
admintool Solaris Admin GUI ftp File Transfer Programm:
apropos keyword Hinweise zu Schlüsselwörtern open host
at Execute Command later: user user psw
at -m 0730 tuesday sort <f1 >f2 get|put file [file]
at now cmd close and quit
at -l List defered Command Execution fusage Solaris Disk Access Statistics
banner text Creates big letters fuser [opt] Lists the process numbers of local processes that use the
bc Builtin Calculator device local or remote files specified by the File parameter:
cat file View File path - open files in the file system
cat -n file View File, number Lines -c - open files which have been unlinked
-d
chmod mask file Change Access Modes - SIGKILL signal to process (root only)
-k
3 x r/w/x/- für Owner/Group/other -u - login name for local processes using
1=exec 2=write 4=read -x - executable/loadable objects (with -c or -f)
chmod -R m f Recurse into Sub Path's grep opt pat f Search File F for Pattern pat with Option opt
chown o.g file Change Owner o=owner/g=group groups Show Group Membership of User
chown -R o.g. f Change Owner, recurse into paths head -nnn file die ersten nnn Zeilen einer File ausgeben
clear Clear Terminal Screen iostat -xnP File System Performance (detailled Device)
cmd | grep -o s Filter mit Options und Search Pattern ipcrm {-m|-q|-s} id Remove IPC’s (-m=Shared Memory,
-i ignore Case (Groß/Kleinschreibung) -q=Message, -s=Semaphore-ID
cmd |{pg|more} Konsolausgabe Page-weise ipcs [-ma] Interprocess Communication System , Shared Memory
compress file Compress (siehe Uncompress) Usage Status anzeigen
cp f1 d2 Copy von File1 nach Directory2 instfix -i -k n AIX: List Installed Fixes “IXnnnnnn“
cp f1 f2 Copy von File1 nach File2 instfix -i | grep ML AIX Maintenance Level, siehe Text „All filesets for ...“,
cp -opt f1 f2|d2 -f unlink siehe auch oslevel
-i prompt before overwrite jobs -l PID und Working Dir von Jobs
-p preserve permissions kill -9 pid Kill pid immediatelly and all children
-r recurse into subdirs (Signal Kill SIGKILL=9, see kill -l)
crontab -l Liste der Crontab Aktivitäten kill pid Kill Process mit ID pid
© www.ruban.de Gernot Ruban Boeblingen, Germany
Page 2 Unix Command Surival Sheet for DB2 Database and System Adminstrators Ausgabe 08/2002

Path / File / Command Funktion Path / File / Command Funktion


last Display Last Logins -d Disk I/O
listusers List User Login Inforomation set -o vi Editing Commands as used in vi
ln -opt sf tf Make Links from Source to Target File showrev [-p] Solaris Systemeigenschaften/ Patch Level
-s Symbolic Link shutdown -Fr AIX Fast Reboot
ls List Directory Structure shutdown -i6 Solaris Reboot Init State 6
ls -al lange Liste mit Attrib's smitty Interaktive AIX Command Konsole
ls -R mit allen Pfaden, recurse into paths spmon AIX SP Monitor
lsattr -El sys0 -a realmem AIX Display Real Memory -d Display
lslpp -l List installed AIX Software Packages -power off|on node1 Strom aus|an
lsps -a AIX Display Paging Space su [-] user Switch to another User [- changes env]
lsvg -o | lsvg -i -l AIX Display Logical Volumes sortiert nach Volume -c cmd Execute cmd, then return
Groups sysdef -i Solaris System Resource Limits
man cmd Manual Pages zu Unix Commands svmon AIX Memory Usage Monitor
mount Show Device Table tail -nnn file die letzten nnn Zeilen einer File ausgeben
mpstat Processor Status tar switches archive Process Archive File
mv -opt f f|d Move/Rename File to File|Directory [files] -xcf Extract File
netstat/nfsstat Netzwerk Aktivität -cf Create File
newgrp group Log in with another Group (non-primary) tee -a file Display and writes output to file
oslevel [-g] AIX Maintenance Level, oder alternativ siehe instfix e.g. ls -al | tee -a directory.txt
passwd [-d] Passwowrt ändern/löschen time cmd Elapsed/System/User Time for Command
pkginfo -l List installed Solaris Software Packages top|topas Report local system information (→ prstat)
prtconf Solaris System Configuration Info uncompress file Uncompress (siehe Comress)
prtdiag Solaris System Diagnostics uptime System Load der letzen/5/15 letzten Min.
ps Report Process Status vi file Browse/Edit File
-ef Full List all Processes :q quit :q! quit w/o save
-l Long Listing :w write file esc-dd remove row
-o format esc-x del char esc-shift-a end
ps von /usr/ucb Extended UCB Process Status esc-i insert char esc-o inser row
-a all -S accum CPU Time vmstat [i c] Statistics: Processes, Memory, Paging, Faults, CPU, Disk
-x w/o Terminal -l Long Listing wc -opts file Word Count
psrinfo Solairs Processor Information -w Words -l Lines
pstat -s|-S| AIX Display interpretation of various system tables, e.g. whereis name Locate binary, source, man page in /usr/...
-a|-f|-p|... process table, file table, CPU usage, swap/page space which cmd Pathname of Command
pwconv erzeugt /etc/shadow aus /etc/passwd who [am i] who is on system, what is my account
pwd Print Current Working Directory who -b Last System Boot Time
prstat [-a] Solaris: report active process statistics (→ top) who -r System Run Level
rm -opt file Delete/Remove Files:
-f force without prompting
-i ask for confirmation
-R/r recurse into subdirectories
rup Up Time Remote Machines
sar -opt t n System Activty Reporter
-u CPU -r Memory
-g Paging -v Processes
© www.ruban.de Gernot Ruban Boeblingen, Germany