Sunteți pe pagina 1din 2

Linux Commands Reference Card

Basic File and Directory Manipulation ls . . . . . . . . . . . . . . . . . . . . . . . . List directory contents cp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy les mv. . . . . . . . . . . . . . . . . . . . . . . . . . . .Move/rename les rm . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . Remove les shred . . . . . . . . . . . . . . . . . . . . . . . . Destroy data in les ln. . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Link les cd. . . . . . . . . . . . . . . . . . . . . . . . . . . . .Change directory pwd . . .. . . . . . . . . . . . . . Print present working directory mkdir . . . . . . . . . . . . . . . . . . . . . . . . . . . . Make directory rmdir . . . . . . . . . . . . . . . . . . . . . . . . . .Remove directory

File Compression g+ip . . . . . . . . . . . . . Compress/decompress les ,L-../ +ip0. . . . . . . . . . . . . .Compress/decompress les ,12$/ 3un4+ip . . . . . ,De5/Compress les ,P6-7P compati le/

File Viewing cat . . . . .. . . . . . . . Concatenate les and print to stdout more . . . .. . . . . . . . . . . . . . . . . . . . . . Page through les less . . . .. . . . . . . . . . . . . . . . . . . . . . . Page through les nl . . . . . . . . . . . . . . . . . . . . . . . . . . Num er lines o! les Backups and emote !torage od . . . . . . . . . . . Prints le in octal and other !ormats mt. . . . . . . . . . . . . . . . . . . . . . . . . . .Control a tape drive dump. . . . . . . . . . . . . . . . . . . . . . . . . . . . .1ack up a disk File Text Manipulation restore . . . . . . . . . . . . . . . . . . . . . . . . . . Restore a dump grep . . . . . . .. . . . . . . "earch te#t !or matching patterns tar . . . . . . . . . . . Read/write ,compressed/ tape archives cut. . . . . . . .. . . .Remove sections !rom each line o! les rsync . . . . . . . . . . . . . . . . . . . . . . . . . Mirror a set o! les paste . . . . .. . . . . . . . . . . . . . . . . . . . .Merge lines o! les dar . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . 8rchive a disk tr . . . . . . . . . . . . . . . . . . . $ranslate or delete characters %oin . . . . . . . . . . . . . &oin lines o! les on a common eld "n#ironment split. . . . . . . . . . . . . . . . . . . . . . . . . ."plit le into pieces env . . .. . . . . . . . . . . . . . .Display environment varia les csplit . . . . . . . . . "plit le into sections y conte#t lines echo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Print varia le sort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "ort lines e#port. . . . . . . . . . . .2rite environment varia les ,1ash/ uni' . . . . . . . . . Remove duplicate lines !rom sorted le set . . . . 2rite environment varia les with more options !mt . . . . . . . . . . . . . . . . . ."imple optimal te#t !ormatter unset . . . . . . . . . . . . . . . . . ;nset environment varia les File Properties stat. . . . . . . . . . . . . . . . . . . . . . . . . . . .Display le status wc . . . . . . . . . . . . . . . . . . . . . . . Count ytes/words/lines du . . . . . . . . . . . . . . . . . . . . . . . . . . (stimate disk usage !ile . . . . . . . . . . . . . . . . . . . . . . Manipulate le attri utes touch . . . . . . . . . . . . . . . . . . . . . Change le timestamps chown . . . . . . . . . . . . . . . . . . . . . . . . Change le owner chgrp. . . . . . . . . . . . . . . . . . . . . . . . . .Change le group chmod . . . . . . . . . . . . . . . . . . . . Change le protections !cheduling $o%s sleep . . . . . . . . . . . . . . . . . . . . .Delay !or specied time watch. . . . . . . . . . . . . . . . .Run programs at set intervals at . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "chedule a %o cron . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock daemon cronta . . . . . . . . . . . . ."chedule repeated %o s !or cron e#pect. . . .8utomates tasks using interactive programs

Processes ps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . List all processes w . . . . . . . . . . . . . . . . . . . . . . . . . . List users= processes uptime . . . . . . . . . . . . . . . . . . . . . . <iew system uptime top. . . . . . . . . . . . . . . . . . . . . . . . . . .Monitor processes File Comparison and Patching #load . . . . . . . . . . . . . . . . . . . . . . . .Monitor system load di!! . . . . . . . . . . . . . . . . . . . . . Compare les line y line kill . . . . . . . . . . . . . . . . . . . . . . . . . $erminate processes patch .. . . . . . . . . . . . . . . . 8pply changes !rom a di9 le nice . . . . . . . . . . . . . .Run process with modied priority comm . . . . . . . . . . . . . . . . . . . . . . Compare sorted les renice . . . . . . . . . . . . . . . .8lter running process= priority cmp . .. . . . . . . . . . . . . . . . . . Compare les yte y yte md:sum. . . . .Compute and check MD: message digest Hosts uname . . . . . . . . . . . . . . . . . . . Print system in!ormation Disks and Filesystems hostname . . . . . . . . . . . . . Print the system=s hostname d! . . . . . . . . . . . . . . . . . . . . . . . . . . "how !ree disk space i!con!ig. . . . . . . . . . . . ."et/display network in!ormation mount . . . . . . . . . . . . . . . . . . . . . Make a disk accessi le host. . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . .Look up DN" !csk . . . . . . . . . . . . . . . . . . . . . . .Check a disk !or errors whois . . . . . . . . . . . . . . . . . .Look up domain registrants sync . . . . . . . . "ynchroni+es lesystem u9ers and disk ping . . . Check reacha ility and response time o! a host 'uota . . . . . . . . . . . . . Check disk 'uota !or current user traceroute . . . . . . . . . . . . . <iew network path to a host File "diting vim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $e#t editor gvim. . . . . . . . . . . . . . . . . . . .)orks a >;7 version o! <iM emacs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $e#t editor sed. . . . . . . . . . . . . . . . . . . . . . . .>N; stream te#t editor !pelling &perations ispell . . . . . . . . . . . . . . . . . .Check spelling interactively look . . . . . . . . . . . . . . . . . . . . . . . . . . . . Look up spelling 'etworking ssh. . . . .. . . . . . . . . . . . . ."ecurely log into remote hosts scp . . . .. . . . . . . . . . . "ecurely copy les etween hosts s!tp . . . . . . . . . . . . . . "ecurely copy les etween hosts wget . . . . . . . . . . . . . . . . . . . . . . . . Retrieve a url to disk curl . . . . . . . . . . . . . . . . . . . . . . . . Retrieve a url to disk gaim. . . . . . . . . . . . . . . . . . . . . . . . . .7nstant messaging talk . . . .. . . . . . . . . . . . . . . . . . . . . . . . . Linu#/;ni# Chat write . . . . . . . . . . . . . . . . . "end messages to a terminal mesg. . . . . . . . . . . . . . . . . . . .(na le/prohi it talk/write !inger . . . . . . . . . . . . . . Display in!ormation a out users who. . . . . . . . . . . . . . . . . . . . . . . ."how who is logged in last . . . . . . . . . . . Displays login and logout in!ormation

Printing lpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Print les "mail( 'ews and )e% Browsing File and Commands Location and Help lp' . . . . . . . . . . . . . . . . . . . . . . . . . . . . <iew print 'ueue pine . . . . . . . . $erminal5 ased email and news program !ind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Locate les lprm . . . . . . . . . . . . . . . . . . . . . . . . . . Remove print %o s mutt . . . . . . . . . . . . . . . . $erminal5 ased email program locate . . . . . . . . . . . . . . . . . . . . . . Locate les via inde# mail . . . . . . . . . . . . . . . . . . . . . . . . . . Minimal mail client which . . . . . . . . . . . . . . . . . . . . . . . . . Locate commands links. . . . . . . . . . . . . . . . . . . . . . .$e#t5only we rowser apropos. . . . . . . . .Locate commands y keyword lookup !ire!o# . . . . . . . . . . . . . . . . . . . . . . . . . >;7 we rowser man . . . . . . . . . . . . . . )ind and display online help page . whereis . . . Locate in* src and man les !or command

Text Processors and Viewers late# . . . . . . . . . . . . . . . . . . Compiles La$e? @ $e? D<7 pd!late#. . . . . . . . . . . . . . . . . . . .Compiles La$e? @ PD) i te#. . . . . . . . . . . . . . . . . . . . . . .Compiles 1i1$e? les gv. . . . . . . . . . . . . . . . . . . . . . . .<iew Postscript/PD) les #dvi . . . . . . . . . . . . . . . . . . . . . . . . . . <iew $e? D<7 les dvips. . . . . . . . . . . . . . . . . .Prints/converts $e? D<7 les ps0pd! . . . . . . . . . . . . . . . . . . Converts Postscript @ PD) antiword. . . . . . . . . . . . . . . . .Converts M" 2ord @ 8"C77

De#elopment cscope . . . . . . . . . . . 7nteractively e#amine a C program gcc. . . . . . . . . . . . . . . . . . . . .Compiles C and CBB code gd . . . . . . . . . . . . . . . . . . . . . De ugger !or C and CBB %avac. . . . . . . . . . . . . . . . . . . . . . . . .Compiles &ava code %d . . . . . . . . . . . . . . . . . . . . . . . . . . . De ugger !or &ava awk . . . . . . . Pattern scanning and processing language perl . . . . . . . . . . . . . . . . . . . Perl programming language python . . . . . . . . . . . . . Python programming language ru y. . . . . . . . . . . . . . . . . .Ru y programming language *mage Manipulation+Display matla . . .. . . . . . . . . . . . $echnical computing language #v . . . . . . . . . . . . . . . . . . . . . . . . . . .7mage viewer !or ? mathematica . . . . . . Mathematical computing language 'iv . . . . . . . . . . . . . . . )ast gdk/imli image viewer !or ? R . . . . . . . . . . . . . . . . . . . . . . . . Data analysis language !eh . . . . . . .. . . . . . . . . . . )ast imli 0 image viewer !or ? display. . . . . . . . . . . . . . . . .7mageMagickA display image "ncryption convert . . . . . . . . . . . . . . . 7mageMagickA convert image pgp . . . . . . . . . . . . . . . . .Pu lic key encryption program identi!y . . . . . . . . 7mageMagickA display le image in!o gpg. . . . . . . . . . . . . .>nuP>A an encryption tool like P>P import. . . .7mageMagickA save screen/window as image compare . . . . . . . . . . . . 7mageMagickA compare images Terminal "mulators #!ig. . . . . . .. . . . . . . . . . . . . . . . .$ool !or drawing gures #term. . . . . . . . . . . . . ."tandard terminal emulator !or ? trans!ig . . . . . . . Converts g @ porta le La$e? gure r#vt . . . .. . . . . . . . . Lightweight terminal emulator !or ? gimp . . . .. . . . . . . . . .>N; image manipulation program mr#vt . . . . . . . . . . . . . Multi5ta ena led version o! r#vt

Miscellaneous alias . . . . . . . . Create shorthand !or a series commands su . . . . . . . . . . 8llows you to run a shell as another user sudo . . . .Lets you e#ecute a command as another user nohup. . . . . . . . . . .Lets a program run a!ter you log out

, -./0 Faisal 1han 2 www3Faysal1han3org 2 licensed under the terms o4 the 5'6 Free Documentation License Version /37 or later

S-ar putea să vă placă și