The document provides a summary of the 100 most important UNIX/Linux commands. It lists commands for viewing manual pages and documentation, switching users, managing files and directories, viewing and editing files, finding and searching for files, processing output and piping, and more. It also covers important environment variables and basic commands for viewing system information, dates, and help.
The document provides a summary of the 100 most important UNIX/Linux commands. It lists commands for viewing manual pages and documentation, switching users, managing files and directories, viewing and editing files, finding and searching for files, processing output and piping, and more. It also covers important environment variables and basic commands for viewing system information, dates, and help.
ps pstree top Display own processes/process tree/most active processes [process status] ps auxw ps -ef Display all processes (BSD/SysV) [all/user/extended/wide/every/full] kill PID/%JOB... Stop (background) process PID/JOB. . . / (standard signal SIGTERM=15) kill -9 PID/%JOB Stop (background) process PID/JOB. . . in any case (SIGKILL=9) kill -l List all signal names + numbers [list] CTRL-C Cancel CMD entry/currently running CMD (SIGINT=2) [cancel] CMD & Run CMD in background (as JOB) nohup CMD & Analogue, don’t stop at logout [no hangup] CTRL-Z bg Stop running CMD + switch to background [background] bg/fg %JOB Switch JOB to background/foreground jobs Display all background processes of shell CMD < FILE Read input for CMD from FILE CMD > FILE >> FILE Write/append output of CMD to FILE CMD 2> FILE 2>> ... Write/append error messages of CMD to FILE CMD 2> /dev/null Ignore error messages of CMD CMD > FILE 2>&1 Write output + error messages of CMD to FILE CMD1 | CMD2 Connect output of CMD1 to input of CMD2 [pipe] VAR="TXT" Set shell variable VAR to value TXT (no space around =!) export VAR Convert shell variable VAR to environment variable echo $VAR ${VAR} Display content of shell/environment variable VAR twice set env printenv Display all shell/environment variables HOME PWD Home directory for cd/current directory [print working directory] HOST HOSTNAME Name of machine LANG LC_ALL LC_* Language settings (C, en_US.UTF8, de_DE.UTF8) [language/locale] PAGER VIEWER Name of standard viewer (e.g. more/less; autom. called by man) PATH Search path for executables (dir list separated by :!) PS1 PS2 PS3 PS4 Shell prompt: normal/continuation/select/debug [prompt string] TERM Terminal type (editors, more, curses library) [terminal] USER LOGNAME Name of logged in user [login name] EDITOR VISUAL Name of standard editor (e.g. autom. called by crontab/visudo) PRINTER LPDEST Name of standard printer (e.g. autom. called by lp/lpr) find [DIR] ... Search/list/process files/dirs by name + attr. starting from curr. dir/DIR grep "TXT" FILE... Display lines of FILE containing TXT [global regex print] CMD | grep "TXT" Display lines of CMD output containing TXT head [-N] FILE... Display first 10/N lines of FILE CMD | head [-N] Display first 10/N lines of CMD output tail [-N] FILE... Display last 10/N lines of FILE CMD | tail [-N] Display last 10/N lines of CMD output tail -f FILE... Show added lines at end of FILE continuously [follow] tail +N FILE... Show lines from line N of FILE. . . wc -l/-w/-c FILE... Display number of lines/words/characters in FILE [word count/line/word/char] CMD | wc -l/-w/-c Display number of lines/words/characters of CMD output echo [-n] "TXT" Display TXT on terminal (-n=without linefeed!) [no newline] clear CTRL-L Erase terminal content (blank screen) [formfeed/leeren] date [+FORMAT] Display date + time (according to FORMAT, e.g. %T %D %H:%M:%S %d.%m.%Y) more/less FILE... Page through FILE by following cmds (man autom. uses more/less!): SPACE RETURN Skip 1 page/line further [space key/return key] b Skip 1 page back (only less!) [backward] 1G G NG Go to top/bottom/line N of file (nur less!) [Go] /TXT ?TXT Search TXT forward/backward (only less!) n N Repeat last search forward/backward (only less!) [next] :n :p Jump to next/previous (only less!) file [next/previous] q h Leave more/less [quit]; Display help [help] CTRL-R TXT... Search cmd history for last one containing TXT [reverse search] CTRL-R Search next cmd in history containing TXT [reverse search] Cursor-Up/Down Goto previous/next cmd in history !NR !TXT !! Execute cmd number NR/beginning with TXT/last from history
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to process the request:
<PRE>
TEXT http://www.scribd.com/titlecleaner?title=Unix+commands+reference+card.pdf HTTP/1.1
Host: www.scribd.com
Proxy-Connection: keep-alive
Accept: */*
Origin: http://www.scribd.com
X-CSRF-Token: 155fb7fa517a5becb07621cfee52141124ac069c
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
X-Requested-With: XMLHttpRequest
Referer: http://www.scribd.com/upload-document?archive_doc=1249