0% found this document useful (0 votes)
72 views38 pages

Linux Commands Fa

This document provides examples of using several Linux commands like who, uname, hostname, ps and piping the output of ps into the less command. It demonstrates how to use these commands and explains some of their outputs like user IDs, process IDs and memory/CPU usage statistics.

Uploaded by

Space
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
72 views38 pages

Linux Commands Fa

This document provides examples of using several Linux commands like who, uname, hostname, ps and piping the output of ps into the less command. It demonstrates how to use these commands and explains some of their outputs like user IDs, process IDs and memory/CPU usage statistics.

Uploaded by

Space
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 38

% & ' ( ) % ( ) * # + $ !

" #
, - . /01 + 23 $# % & ' & % % & %
% *6 7 . 45 .
<= :; , 59 $ 7 8 )

# id !"

>? , @ " # . /01 , A #


,A - ,A ? " $ B @ - , C ,0/
D# & & , )
$ id
uid=500(Alan) gid=500(Alan) groups=500(Alan)

& ' 4/ & Alan ( ) , ) , C ? "


$ G EFF ,A & ' & % # Alan

# who !" $ % &'( ) *'

# ) @ /01 ) who , C - & H


, ) ,A ? " & 3 , C + - $ A # ?
D# & &
$ who
Alan :0 Apr 23 08:46
I @ , - ? ( ) ? " , 23
$# & & J K

# uname !" + & ! , ) -.

. /01 ) @ uname ) . " - & H


. /01 + $ L # "
D - * ) @

< 9 * /
@ M ( )
N ) & %
& )- L OP

S N . /01 + uname -a - & H - Q R


D # &
$ uname -a
Linux memphis VW T$U$TV Sun Aug 3 20:15:59 PDT 2003 i686 GNU/Linux

( ) + - $# memphis X Q R @ M ( )
& H 7G ) Y 8Z 6 @ M
$# N ) & % & ) ) & % $

# hostname !" / 0 1 (

" @ M ( ) ) @ hostname - & H


D ? @ - Q R $ [@
$ hostname travis

$ [@ travis memphis - @ M ( ) +
>PC ( ) K B @ 8 @ + @ \
D " , ) % , @ @ M
$ hostname
memphis

# PC
H ] ^ # > / , & ^ & 0/
) # P + , H ] ^ $ <multitasking9
Q 5 ) $ ) ? , - ) -
L J K C $ & ) L ?
_ ` O : - & H J K ? Q 5
$ ( a :` L ,
# ps !" % 2 3 " $ 4 " 5

? Q 5 L a + @ (
) ^ ) + $# ps
^ 7 & H P ^ - ? Q 5
, C + - Q R ? " - $# bA ? Q 5
D # & & , )
$ ps au
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
Alan 1152 0.0 0.5 4476 1348 pts/0 S 17:39 0:00 bash
Alan 1831 0.0 0.2 2580 664 pts/0 R 18:14 0:00 ps au

L ( c J K a a' X Q R
( ) J K u a' # d % >PC Q @
( 8H $ 7 # & - eA ) ) -
, , - ,A $ - ` b - Q @
& , ) Q @ ) 7 f G g @
P@ " ) hH\ ) % , $ H)
P@ , - > + $ Q @ -
$# iL , 7 Q @ & j L

, ) ? " $# & C) k H@ \ " a ^ X Q R


Q 5 ps bash ) - Alan ( )
# @ & , ) Q @ TTY , $# & H
STAT , # & ,A
? Q 5 L & ) ) R $# L # Pl & ) )
$ G m " Q 5 L & ) ) S

$ J K & n L ( ) USER ,
pN <Process ID9 L & % ( ) 7 / o @ L
, kill 50Z \ , , - ( & % + - $
r & ) ) MEMq CPUq b $ & H L
$ ) & & H L sC 5 & )- L
image L a & ) ) Virtual Set Size VSZ ,
L a & ) ) Resident Set Size RSS # >
, L - eA , - & ) ) START , $# sC 5
$# L & & H , - & ) ) TIME

? Q 5 @ M L -
G / $ ) d ! " Q @
? - L # ) C L
O/ L - L L $ )
t L , u ' 8 PC #Gv )
( L + $ ( w 7G - >\ . /01
, u " ( & - eA , .
Q 5 L ( c J K $ , L "
D & H - , C - , @ @ M ?
$ ps aux | less

@ \ # & C l , C * + x less #O `
hH\ J K , 7 Y hH\ - L P@
<pipe9 C + $ ? ,A hH\
, C ? " # P ' , C
$# , C

* C
@ M % . /01 # " * C
- " " 8> C $ 7 & "y
8 > C 5 ) $ ) & "y
" z @ \ $
# " G Y ,A _ \ @ @ { ` * C
` Zr) + @X $# )
,A - $ & , ) 8 @ J> >
) $ ) ` * / O O/
6 + - ( $ tmp home dev bin
" " } |@ $
$ , ) * C

* C " D *7

~ l @ - * C 8 - "
$ ) & &

+ * / O/ + C D bin
$chmod sort ls ) $ ) `
@ M aC #N a Y d r) 5 D dev
<fd9 L0C 87 <tty9 g @ ) $# %
Q OP Z , $$$ <hd9 #N 87
$ 7 & H bA 8 ) - 8 +
$# 7 L 8> C " 5 D etc
+ , D home
$ `
) 87 a , *| >6 D mnt
$ 7 j 7G CD-ROM L0C
$# ) " D root
` + . D sbin
$ )
$#` 8> C ' ` *6 D tmp
8> C - . ' ` *6 D usr
$ a ^ ) z 7 C '

,A " - • * C "
& , + a ) # G ? $ . H
D - € & O/ . H@

- & "y a Y - •
( ) C 5 - #N _> • + @ L _> •
L0C A ) $ 7 & H ) (
& "y a ( c $$$ #N C
. 6 0R $ ) & ( e * C Q -
# +7‚ $$$ ` mnt/floppy L0C
) . / + 0\
% >6 $ " . / ,A @ - L
, 3 " & H " . /01 8> C & "y
$# % ) "
L , ? - • * C
5 & H J> -
$ & H J> -
& ) L 3 - • 8> C ( )
* C ) L $$$ 8> C txt ) $ )
* C $ ) (-X 7 )
$ p N @ * C n ) ) L ? @ ,
@ \ |" - ƒ * C
& ' >? ,A - ƒ e , Y - #
• 8O Y $ 7 6 Y +
8O + - # ) „" - ƒ + - -
& - & L 5 1 & @ 8O . |
NT - G 8O - 8O $ )
& - & L - ƒ + & ^ . |
#

46 (
- " # +†‚ … ? , … - † 2) ^
ˆ ) L $ ) ,A ‡ j/ ) L #>/ 8> C n )
,A ( ) Zr) + "A - P * C ( ) - #O ` + " * C
$ - L ) L + - | • #O ` j $#

78 9( : 7" ' $ 46

# & - & C bzip2 u …


> C D (.bz2)
# & - & C gzip u … > C : (.gz)
# & ) - ‡@ tar u … > C D (.tar)
bzip2 u M ) tar u … > C D (.tbz)
# & & C
gzip u M ) tar u … > C D (.tgz)
# & & C
1 ‡ ` + … & & C zip u … > C D (.zip)
8> C R… $ " ^ Microsoft .X |6 Q OP
$# gzip ‡ e … & & C

8 9 $ 46

audio n ) - @ \ 8> C :(.au)


gif n ) - |@ 8> C D (.gif)
html n ) - m . hH\ d 8> C D (.html/.htm)
jpeg n ) - |@ * C D (.jpg)
)
L + 9 . /01 - † ) Y† |@ D (.pdf)
Q r ) * ` ‡ ` P < portable document format _H•

portable _H• ) L + 9 png n ) - |@ 8> C D (.png)


< network graphic
& a ‡ ` , … # L … $PostScript 8> C D (.ps)
ASCII ) ‡ ` D (.txt)
wave n ) - @ \ 8> C D (.wav)
|v 8> C D (.xpm)

+ & ! $ 46

& H .cfg ) L - + 23$ . O s @ 8> C D (.config)

) … … + P@ 8> C + D (.lock)
" # Q PC aC #N
# ‰ †L # 8> C D (.rpm)

9& ( 0 ;! 9& (, ( $ 46

c ) ) :G …
8> C D (.c)
c++ ) ) :G … 8> C D (.cpp)
c++ c ) ) b - 8> C D (.h)
) 8> C #†ŠA D (.o)
perl 8 ) 8 M † D (.pl)
python ) 8 M † D (.py)
) z … 8> C D (.so)
* 8 M † D (.sh)
tcl 8 M † D (.tcl)

#
( & X Z) 3 , /
" ) " " 8> C Y
$ " & "y j

# pwd !" 9:( $ " $ % &

,A H' ?
$ ` ,A s‹
$ ` , @ ) " %
7 \ > C , & "y , -
& - )A wA - & Œ C * C ,A *6 , P ?
& € P * C " $ 7 & "y
J K $ ,A , ) # ) (-X "
,A ? " $ B @ , C o" >? - , C ?
D# & & J K ,A -
$ pwd
/usr/bin

fC $# usr/bin ? X Q R
D B @ - , C " ) "
$ echo $HOME
/home/Alan

% ) " 7 450 ? " , 23


- " ) " 7 $# & & J K
D B @ - , C ' # C '
$ cd

< ) ' - , @ ) " % , C +

# ls !" $ " $ = ! 4

? ) " a ^ ^ G # ) m "
ls , C - . 6 J K <
` " ) " @ \ < K & H
@ \ < B @ )A * ) )
. 6 B @ ) ' , ls , C
J K H• 8> C ( c a a' < " & J K ?
< 7 8> C * . •a? J K l a'
)A P a' ) , C B @ (
, ) Q R ? " & 3 + - < B @
# & &
$ ls -la /home/Alan
total 46740
drwx------ 47 Alan Alan 4096 Apr 23 11:09 .
drwxr-xr-x 8 root root 4096 Mar 12 17:51 ..
-rw------- 1 Alan Alan 616581 Apr 18 23:29 779-red_hat_linux_9.tar.gz
drwxr-xr-x 2 Alan Alan 4096 Mar 20 11:15 .acrobat
drwx------ 2 Alan Alan 4096 Mar 20 11:15 .adobe
drwx------ 2 Alan Alan 4096 Mar 12 17:04 .adonthell
drwxr-xr-x 2 Alan Alan 4096 Feb 14 13:19 .anjuta
-rw------- 1 Alan Alan 18325 Apr 23 00:36 .bash_history
-rw-r--r-- 1 Alan Alan 24 Aug 24 2002 .bash_logout
-rw-r--r-- 1 Alan Alan 191 Aug 24 2002 .bash_profile

& H Y . •a? J K l Ž • -
& J K 8> C a - J a ^ 7
X <$$9 <$9 ? $
& , ) Zr) # r r5 P $ ) ' ` #
$# •home & ) ) Zr) home/Alan
. /01 $# * C - ƒ & ) ) # Jz
I @ # * C &- ) - @ G/ & & J K
$# & [@ + "A * C /

4 " ) !"

A H - + ^ j
D

+ P@ ? + D cd
• + O 5 [@ 7
$ &
$ 7 • ^ >PC + D pwd
$ 7 j + D mkdir
* C - ƒ [@ + D chmod
$ 7
• ^ . 6 + D ls
$• dir $ 7

. + ' 7 + c O , m "
0G` Z) 3 7 C ' # 5 @ \ $ - L
$ - Q @ & j L H'

# C ? - " ) " # 5 $‘
$ B @ cd
" ) " ' ` - , O1 Q |5 $}
D B @ pwd

$ pwd
/home/alan

j test ( ) mkdir - & H $’


D
$ mkdir test

ls - & H & j - ƒ $“
D
$ ls -ld test
drwxrwxr-x 3 alan alan 4096 May 17 20:14 test

,A & ) , C ? "
test ,
+ "A { >P@ alan & ' # alan ( )
|@ $# & [@ r ` }FD‘“ #/ ( ‘”
O s @ 1 + - ƒ N
) ) 7 & H @ M + - C
+ $ & H & % . 6
$ " ~ l @ Y

D B @ - , $E
$ chmod 700 test

[@ & H - ƒ ( c % +
+ . 6 & 5 &- ? , 5
X ls ƒ ' $ • & a )
drwx . | - ƒ + „ 7 B @
$ " & J K

test cd - & H >5 + $–


D
$ cd test

^ % ) " ) @ - )
& H - & - 7 - ) `
D

HOME Z 6 [
— # 0/

, C ,0 / * r X - 7 B @
D & J K % ) "
$ ~
/home/alan

. \ # C ) " J K
D *O/ -
$ ~chris
/home/chris

+ C bA , + # 5
: H ) ? a )

D 0R $# ? & ) ) D Zr)
$ cp /usr/local/mygame .

) " 9 ? mygame * C X
$ 7 M < , @

D 0R $# *G` & ) ) D Zr)


$ mv mygame ..

, @ ) " @X mygame * C X
$ 7 *r <home 9

- *G` ? & ) ) D OLDPWD Z 6 [


$# >PC

8> C #
7 C ' a - 7 - & H , 8> C
# M L - , + 23 $ K 7 Konqueror Nautilus s)
a ) YP ˜ G e & H + ( w shell
$ " + ) ^ $ G

# touch !" " >

) 9 ) , * C
+ $ 7 touch K j <
& ,A ) & j " * C
touch * C j $ C l " f
D B @ #M L
touch <filename>

+ a ? s) * C ( ) filename +
& j ,A * C - ' $ K
" . /01 # < 9 * > C 8C
B @ Q R $ & K j " * C -
D# " - ? " shell #M L ls –l newfile

-rw-rw-r-- 1 sam sam 0 Apr 10 17:09 newfile

# cp !" 46 " 90

) ' ) ' n 8 8 > ` , 23


M . ? 8 8> C 7
, @ " home tigger/ " sneakers.txt * C ,
: B @ C "home
cp sneakers.txt tigger/

#M L $ ) z cp O Y . /01
(man cp) D B @

a' + 3 + - . - a' +
: & ~ l @ L

* C z *
7 @ \ C D 96 ?/ D i
a' + $ ,0/
K )- |r "
$ O O 5 . G - ' >?
c a' + 8> C @ @ M a? D 9 '= D r
$ M " - & 3 #"
$ , ) 8> C , M ) D ( " D v

* C Œ C $ ~ l @ Y Q R Q 5
˜ ƒ cp -i $ tigger sneakers.txt
D ? + 3 M
cp -i sneakers.txt tigger
cp overwrite ‘tigger /sneakers.txt’?

Y > # ? *G` - > C )-


N > . \ + e $ C Enter > M
$ C Enter

# mv !" 46 2 @ ( 9 A %

‡ $ & H mv - 8> C Q r )
$ & H man mv - ,A Y . /01
D- @ G/ mv L a'

* C z * C 7 @ \ D 96 ?/ D -i
a' + $ ,0/ K )- |r "
$ O O 5 . G - ' >?
? Ž P@ ># 5 + D B% D f
$ ( w )0/ ) 2 , Q r ) )
+™OZ Q r ) *O/ ( w - e
$ š ) Z" ) @ a' +
$ J K Q r ) ) D 9& ( " D v

, @ " home - * C " '


B @ " home *r ?
D
mv sneakers.txt tigger

Q r ) { ` , , / m N )
D
mv sneakers.txt /home/newuser/sneakers.txt /home/newuser/tigger

# rm !" 4 " 46 CD3

. /01 $ ( w rm 8 8> C ›i5


L a' $ " man rm Y
D# - € rm

a' +
$ M % - ›i5 - *G` D 96 ?/ D -i
$ ' , O 5 . G >?
$ ›i5 )0/ ) ' Ž , 8> C D B% D f
+ - 8> C ›i5 +™OZ @ \ orC
$ K & H a'
$ J K 8> C ›i5 ) D 9& ( " D v
8 - 8> C D 9 '= D r
$ ›i5 Q O

B @ - piglet.txt * C ›i 5 Q R , /
D
rm piglet.txt

8'
›i 5 rm o @ > C 7 œ6
$# ) - * `

$ rm - g R

›i 5 ( / ›i 5 ) i a' - & H
D# " 8> C
rm -i piglet.txt
rm: remove 'piglet.txt'?

•ž• bA - 7 $ & H ) @ a ) wildcard -


|` 8 > C # +7‚ #` $#
$ ) ›i5 5 wildcard + ) bA , š L
rm pig*

pig › 5 ? 8> C > k C


a ) * C ^ ›i5 , 7 . ›i5 ) n
D ?
rm piglet.txt sneakers.txt

rm 0
ŸR 9 $ & H ›i5 rmdir -
$ ›i5 " 8 orC + <foo
& H r a' - rm 8 ›i5
3 tigger " ' Q R $ K
D B @ ›i5 J@ 6
rm -r tigger

D ‡ @ 7 a' ) @ + 23
rm -rf tigger

8'
' $ š L % 8> C > # +7‚ rm
'- 1 rm –rf / & & root
. K " š L % . /01 3

, E(
& s @ 1 alias O rm
< Q - O 5 8> C , š L #
v 8> C - - P@ C |@ , š L - ( ` +
< *O/ ' >? & G

# cat !" ) F G H

* C . 6 ) @ cat - & H
cat $ K ‡ @ * C ^ • ^ J K hH\
& H & $ - & H # 7^ a
D - *7 ,A -
$ cat [options] files...

J K + & 3 & H * ` a' ’ Q ?


$

€ a'
e Y 5 Y c show-all A
" J K ? " • ^ * `

& % " e o" >? number-nonblank b


" • ^
tab • ^ * ` e Y e
Y " J K
• J K d Z" , L
" J K o" , L Y show-ends E

& % ? " 8Z" c number n


" J K
" o " ^ * C @ \ squeez-blank s
8 @ # ? # L
" • ^ " d Z" + - 7
* ` e Y tab t
$ " J K • ^
# vT a'
• ^ ¡I . | tab Y show-tabs T
"
M ¡ i ' ) ) - show-nonprinting v
- e • ^ * ` e Y
d Z" , L Y tab
" & H

cat a' I2 8%

* C . 6 J K , 7 % cat a' - & H


N A ^ * C P@ ) @ + 23 $
DQ R $ K j Y' a * C
$ cat file1 file2 file3 ... > newfile

# more !" ) F G H
. 6 ) @ cat - & H & Z) 3
? a P@ • $ ' J K * C
u * C . 6 @ , 7 % )
$# more ) a + - 7 $ & @‡
. 6 @ - C , 7 + more - & H
“ Q ? $ & hH \ hH \ . | * C
- $# & ~ @ more & H * ` .
vi @ \ $ vi o 6 . +
$ " , A , ,A - & H >


" J K . \0" ¢ h

" J K f P hH\ SPACE

+ " J K f P o" ENTER


" P hH\ - eA Zr) o"
more - S " Q q

" j ? pattern Q G) * C • Pattern


$
? hH\ ƒ J K CTRL+L

>G` 7@ < Zr)9 $

more & H * ` . J 2 8%

, a3 Z * C + ^ , more - ) @ %
7 Q G) * C # C $ & H
DQ R $ ` more
$ more text1 text2 text3...

& J K text2 * C , L text1 J K


a ) cat ) ? " $‡ @ @ + 3 "
$ # more #£ ) @

# less !" ) F G H

Y QY # > ` % less P f J K a
% 8 @ more 5 $ * C J K (
f ) @ less #8? f Q 7 , 7
* ` a' - P@ E Q
? $ K Q 7 #8?
# & $ J K + & H
man O help a' - ) @ . - >
E Q ? & & € . $ & H +
$ C n
- L # C $# more G less *O/ &
, ' A , / , @ s) * C ( )
D K
$ less /usr/share/doc/README

8? Q 7 " less - & H - L ™OZ


$# & H * ` (-X r^


>? #£ hH\ Q 7 f SPACE

>? #£ o" j e ENTER

‡r/ #£ hH\ Q 7 ESC+v b

‡r/ #£ o" k y

‡r/ #£ hH\ _|) Q 7 CTRL+U u

? hH\ ƒ J K CTRL+L

>G` 7@ < Zr)9 $

less & H * ` . K 2 8%

& H @ - & a ) 0G` Z) 3


) @ hH\ - J bA ? " # +7‚
. #£ ? " x Y - & H
DQ R $ # less more

$ ls -l /home | less

8> C j ?
grep !"

L * C , ! " &¤ # (-X . ` '


5 d Z" o" & j ? & & * C grep $
+ - & H & $ " • ^ &¤ +
D - *7
# grep [option] pattern [file] ...

* # &¤ grep (-X , ' A 8 @


&¤ @ \ $ K j ? ,A Q G) @
? , 7 + = • L % a ^ ) grep
# grep # £ , C ? " @
j ? ) @ grep - & H - R $
$ ) & #Gv syslog * C Z" Q G)
# grep -i error /var/log/syslog
Oct 22 07:56:35 localhost kernel: hdc: media error (bad sector):
error=0x30
Oct 22 07:56:35 localhost kernel: end_request: I/O error, dev hdc, sector
15600

‘Q ? $ " ( w case sensitive . | j ? i a'


$ J K + & 3 & H * ` a'

€ a'
? " Š & L d Z" P@ count c
• ^ hH\ /
, / & + P@ O> extended-regext E
" H@ regular expression
s) , / pattern e pattern
regexp=pattern
H ) - a' + $#C ' "
' 7 * #
) n
& + P@ * C , j ? file=file f file
" ( w
, P & & fixed-strings F
" s) # v -
? d Z" $#C '
Z bA c ) & ? -
" j ? ) ' ?
" • ^ ) O help

*" * C c recursive r
" j ? '- . |

grep a' L2 8%

+ $ d grep ) ?
* O/ ) - ) 3 egrep $fgrep egrep -
@ G/
+ 23 $ & H E a' & 3 grep %
& 3 grep *O/ ) - ) a ) fgrep
$ G 7 F a'

) ) , ) ) \ |• grep a
, # Q R $# H )
- ) @ error O> 5 * C 1 Z" c
D & H -
# grep error /var/log/auth.log
Aug 28 22:20:57 localhost sshd[2886]: error: PAM: Authentication failure
for linet from localhost
Nov 6 20:20:10 localhost sshd[4133]: error: PAM: Authentication failure
for alan from localhost
O> 5 1 Z" c & j ? * C + grep
& ) a ) * C d Z" ( c $ J K error
) @ 5 % H' Z) 3 $ " C '
¥ v * C J K hH\ Š grep , C ? "
D0R $ K #
# grep error /var/log/syslog > system_errors

* C , & ) " syslog * C - error O> 5 d Z"


$ & "y system_errors ( )

!" : " Grep

. ? " , ) " & Y ' 1 grep -


>O/ - Q R $ & H a )
D " ( w X Q R
# cat /var/log/syslog |grep error > system_errors

? " ) @ # ) 6 8> C j ? ˜C \ Grep


locate spam | grep ^/etc/ Q R $ 6 pN
D# " - ? "
•etc/mail/spamassassin
•etc/mail/spamassassin/local.cf
•etc/mail/spamassassin/init.pre
•etc/mail/spamassassin/local.cf.bak
•etc/mail/spamassassin/bigevil_sept¦U.cf
•etc/mail/spamassassin/autogen.cf
•etc/mail/spamassassin/customrules.cf
•etc/mail/spamassassin/evilnumbers_sept¦U.cf
•etc/mail/spamassassin/spamassassin-default.rc
•etc/mail/spamassassin/spamassassin-spamc.rc
•etc/webmin/spam
•etc/webmin/spam/config

§ 7 *6 + P@ * C locate
{ Z@ spam 3 # 8 > C
locate spam +
- # s/ # ) ' +
j ? & 6 k C - & H m +
# P + ‘^’ # 0/ $ & 6 /etc C
• # r Z /data/etc/spam j ) $ n Y +
$ *\ 5 { Z@ + ‘^’ , $#

Q G) ' $ 7 dir ) @ + 23 Grep


' A K bA ) L host 8>C
- - ) @ ) K ? bA s › 5
D & H
dir | grep "host"
D ? "
host.conf pam.d vsftpd.conf
hosts pam_smb.conf vsftpd.ftpusers
hosts.allow pango vsftpd.user_list
hosts.deny paper.config warnquota.conf

# d Z" ‡ 5 k C ? " 1 "


) & # 8> C vsftpd.conf pam.d # #>/ + 3
$# bA d Z" + ? “host” , ^

top $# top & H grep ) @


, 3 9 & H & H , a J K
) v ^ < - task manager G @ @
top top | grep "httpd" \ + $ -
,A httpd , ) 1 Z" orC " ?
cpu usage X J z httpd ' o rC ' + -
$ " • ^ ? o" ) v ^

$ & H ) @ Grep ‡ @
$# & y Y g R

5 # c ` r^ grep , ) % grep –help


- g R > $ ) G L a ) s . G/
grep H' , 23 # & & H dir -
$ 7 a ) . ˜O r

# & & H Q R + "


D G
adjust aLL base bass file_ THuman justice molecules molleculles move U-D
ZIG all animals BaSe file human humans justly Molecules molllecules UD
zig ziggy

$# 8 0
Ÿ › 5 7^ ' a #`

7 - * G` $ ) ' 8> C > # dir –l


? + , " -A n
D
total ¦
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTadjust
rw-r--r-- Vroot root ¦Feb TVDU© VTall
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTaLL
rw-r--r-- Vryan root ¦Feb TVDUU VTanimals
rw-r--r-- Vroot root ¦Feb TVDU© VTbase
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTBaSe
rw-r--r-- Vroot root ¦Feb TVD¨T VTbass
rw-r--r-- Vryan root ¦Feb TVDUª VTfile
rw-r--r-- Vroot root ¦Feb TVDUª VTfile_T
rw-r--r-- Vroot root ¦Feb TVDUU VThuman
rw-r--r-- Vroot root ¦Feb TVDUU VTHuman
rw-r--r-- Vroot root ¦Feb TVDUU VThumans
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTjustice
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTjustly
rw-r--r-- Vroot root ¦Feb TVDUU VTmolecules
rw-r--r-- Vroot root ¦Feb TVDUU VTMolecules
rw-r--r-- Vroot root ¦Feb TVDUU VTmolleculles
rw-r--r-- Vroot root ¦Feb TVDUU VTmolllecules
rw-r--r-- Vroot root ¦Feb TVDU© VTmove
rw-r--r-- Vroot root ¦Feb TVDUU VTUD
rw-r--r-- Vroot root ¦Feb TVDUU VTU-D
rw-r--r-- Vroot root ¦Feb TVDU© VTzig
rw-r--r-- Vryan root ¦Feb TVDU© VTZIG
rw-r--r-- Vroot root ¦Feb TVDU© VTziggy

Q R + # • 5 ^ « a › 5 grep 7 wA -
Y L - & H # 5 + fC ) s) j ?
D –I

dir –l | grep –I base

D " - *7 ? "
rw-r--r-- Vroot root ¦Feb TVDU© VTbase
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTBaSe

> s . G/ - & H j ? , 7 % + 23
D –P Y L
dir –l |grep –P “\:[0-9][0-9] ….”

D# " - ? "
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTadjust
rw-r--r-- Vryan root ¦Feb TVDUU VTanimals
rw-r--r-- Vroot root ¦Feb TVDU© VTbase
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTBaSe
rw-r--r-- Vroot root ¦Feb TVD¨T VTbass
rw-r--r-- Vryan root ¦Feb TVDUª VTfile
rw-r--r-- Vroot root ¦Feb TVDUª VTfile_T
rw-r--r-- Vroot root ¦Feb TVDUU VThuman
rw-r--r-- Vroot root ¦Feb TVDUU VTHuman
rw-r--r-- Vroot root ¦Feb TVDUU VThumans
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTjustice
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTjustly
rw-r--r-- Vroot root ¦Feb TVDUU VTmolecules
rw-r--r-- Vroot root ¦Feb TVDUU VTMolecules
rw-r--r-- Vroot root ¦Feb TVDUU VTmolleculles
rw-r--r-- Vroot root ¦Feb TVDUU VTmolllecules
rw-r--r-- Vroot root ¦Feb TVDU© VTmove
rw-r--r-- Vroot root ¦Feb TVDU© VTziggy

n ‘:’ ( c * ) ' 1 Z"


Y # b >\ C - ` M )
$ c " C |@
Q G) ' $ , @ - & H s . G/ -
- 0 8Z>e X
Ÿ O 5 8> C . O>
D ' 7 - ) @
dir –l |grep –P “mol?l?l?l?ecules”

D# - . \ ? "
rw-r--r-- Vroot root ¦Feb TVDUU VTmolecules
rw-r--r-- Vroot root ¦Feb TVDUU VTmolllecules

+ ¬ " ? ‘l’ › 5 # P + l?
‘l’ , O> 5 l ll lll llll { Z ) @ l?l?l?l?
( / ? , , ) ‘.?’ - ) @ + 23 $
& - Q R $ & H › 5 + Y ?
D K
dir –l |grep –P “a.?.?.?.?s”

D# - . \ ? "
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTadjust
rw-r--r-- Vryan root ¦Feb TVDUU VTanimals
rw-r--r-- Vroot root ¦Feb TVDU© VTbase
rw-r--r-- Vroot root ¦Feb TVD¨T VTbass
rw-r--r-- Vroot root ¦Feb TVDUU VThumans

Y ‘a’ ? " ( c Z) 3
$ { Z ‘s’ M YO

‘-v’ $ ‘-v’ # & H' Y L


> : ` $-=+ 7/ a ^ 3- # P +
$ ) #r Z j ? , )
dir –l |grep –v –I “s”

D & ? "
rw-r--r-- Vroot root ¦Feb TVDU© VTall
rw-r--r-- Vroot root ¦Feb TVD¨¦ VTaLL
rw-r--r-- Vryan root ¦Feb TVDUª VTfile
rw-r--r-- Vroot root ¦Feb TVDUª VTfile_T
rw-r--r-- Vroot root ¦Feb TVDUU VThuman
rw-r--r-- Vroot root ¦Feb TVDUU VTHuman
rw-r--r-- Vroot root ¦Feb TVDU© VTmove
rw-r--r-- Vroot root ¦Feb TVDUU VTUD
rw-r--r-- Vroot root ¦Feb TVDUU VTU-D
rw-r--r-- Vroot root ¦Feb TVDU© VTzig
rw-r--r-- Vryan root ¦Feb TVDU© VTZIG
rw-r--r-- Vroot root ¦Feb TVDU© VTziggy
‘s’ › 5 o rC ? " ? " Z) 3
$ )

find !"

$ K & H ) @ * C j ? + -
I @ , - * C Q G) 0R
& $( >P ) ) 7 pN > C ) & " \ "
D# - *7 + - & H
# find [path] [expression]

J K + & 3 & H * ` a' } Q ?


,A - # +7‚ # ‡ ? ` find 7>O/ $
+ - >O/ Q R ^ - $ & - #H
$# & & J K

' , G L & [@ * C Q G)
D & H - ) - ) @
$ find Documents/Debian-Book/ -newer /data2/Debian-Book/
Documents/Debian-Book/backup/Chapter-5.sxw
Documents/Debian-Book/backup/Chapter-6.sxw
Documents/Debian-Book/Chapter-5.sxw
Documents/Debian-Book/Chapter-6.sxw
Documents/Debian-Book/Chapter-7.sxw

D *O/ - ) ! " ) > C j ?


$ find /home/alan -name 'alan*'
/home/alan
/home/alan/My Pictures/alan.png
/home/alan/My Pictures/alan.xcf
/home/alan/My Pictures/alan-avatar.png

* O/ - ) ! " {>P * C , L
D
$ find /home/alan/ -user root
/home/alan/error
/home/alan/dcheck
/home/alan/system_errors

€ a'
* C # " * C empty
OP
$ • ^ O help help

# ' " * C Q G) user name


# name bA
& ' { >P * C Q G) group groupname
# ' " groupname
type n ) - O * C * C fstype type
`
# ' " > C Q G) name pattern
#r Z pattern
# ' " * C Q G) newer file
file - @ ?
case sensitive . | j ? name ) 3 i name pattern
" ( w
S " & • ^ ) N ) version version

j ? xdev mount
• ( w *| * C

find a' M2 8%

- & H ) @ # % - z 8 @ +
+ ? " ) @ % $ ( w find
bA . >O/ @ #
$ ( w

locate !"

- H& * C ^ Q G) @ \
{C locate @ \ $ " , A locate a
' - , C o" ) % s) * C , L
J K , j ? * C * . \ + e
D# - *7 + - & H & $ " &
$ locate [-d path] pattern...

& H j ? bA - locate ) @ /01


@ \ $# & & "y @ /01 ) #r r5
) , ) L ) Z" a + - & H (
& H ) + ) @ ? locatedb @ /01
$ j updatedb -

- j ? @ , 7 + % d path a'
# + 7‚ + G $ K & H ¥ v @ /01 )
Y ) @ j ? $ (-X . )
locate - & H & - R - $ „ 7 a ) &®
D# & & J K
$ locate *.sxw
/home/alan/PGLFAQ.sxw
/home/alan/WebDir.sxw
/home/alan/answer.sxw
/home/alan/faqlf.sxw

… 8†
* C - Zr) & Zr) *
% H % ) @ + $ )-
* B @ ? 5 #"
" 7 C ' * C # ) (-X ) ,A
" # C + L X •
<Shortcuts9 „) , 3 ) @ % $ >
a ) . H@ ^ G s) #C 7 -
j & ? + $ ) 7
8 ) aC ( ) M aC #N
$ #" L " + + ; r

Hardlinks *! $ N

7 a C * 6 # #N
$<$ ' i-node * C 7 a C *6 9$ & * C
<Y 9 * C 8 @ #r r5
$ ) & #N ,A 7 a C *6
& H ln - , C o" #N j
$ - #N Œ C J L 1 + $
article.txt * C a C #N ? + + ) K
$(- ( ) "
$ ln /temp/article.txt /home/tux/foo/article.txt

& j •home/tux/foo• ) K +
$ & #N article.txt * C 7 a C *6
' ) K * C + ) @ % m "
L > \ C0 9 ,A P@ ls -l
& J K } < & J K ,A Y - ƒ -
* C a - ƒ ( c # ? + ‡ ? $ "
} / = # >G` * C ) 3 r ` * C €0\ + "A I @
- <i-node9 7 a C Zr) + } P
$ ) &

š L •temp/article.txt P > \
* C + '
" ‘ #N P@ " š L
#N - ^ = " ` , 23 * C
P@ ,A K š L a' * C $ ? ,
$ H\ ,A
, - ? @
@ M O * C > C
$ & H , @ K #

Softlinks 1 ( $ N

symlinks symbolic links ( ) Softlinks ( )


- <shortcut9 „) G ) " a )
• A #N ›0" ( )
+ $ ) , " ! |• <i-node9 aC #N
& * C ) @ * C 8 @
& 3 s + LA - - + j $
D & H ln

$ ln -s /temp/article.txt /home/tux/foo/article.txt

j ) & H * C+ , ls -l - % '
: " - )
/foo $ ls -l
lrwxr—r-- 1 tux gnuiranorg 31 Apr 25 05:25 article.txt -> /temp/article

P l Q # & 1 , 3
* C • A - ¯ - - P * C ( ) , L - P
$# & A >\

1 ( $ N @ " *! $ N

X 7 n ) , ; r Jz +
D(- L H'

) ( c Y - ƒ #N $_
* C - Y - ƒ [@ % # >\ * C
$ ( ` >\
= ' ° % * C a ( ) $m
Oj5 * C " + * +
& * #N @ \ ^
$ J K >\ * C j5 >\ * C r
& J K ( ) modification €0\ , - $•
( w + % # @ 50\ d
{ ` , - , 3 , - + #N &
$# >\ * C . 50\
A ¯ - P >\ * C ( ) ( ) $.
& + š L >\ * C ' #N ›0"
<Orphan9 # €0Z\ m "
$ * G@
* C & X 1 , 3$±
,A & -
- ) @ K ) % @ M 1
$ & H #N

, C o" >O/ &® Y - & H


\ |• Y , C L - @ A & H
$ ( >O/ &® Y ) ?
* C ^ ( ) * B @ ) ! |• Y
- @ /01 >O/ - & H & ? C \
$ # * C * C

46 1 ( O P 7Q $ R 7" S !

8 > C - Y) A m N ) B @ r ,
&® Y - & H , 7 % , C L
( ) + ) bA - &® Y $
D - @ G/ & H 8> C

Y - P@ Š )
D <ž9 & # 0/
$ ' `
$ ' ` Y Š ) D < ¢9 Q # 0/
& y Y ( c D <²$$$³9 # # 0/
$ ) i v 8> C m N ) #

" Y + ' 7 + c
& H C < j 0G` test ) 9
D j " 8> C - - -
$ touch apple banana grape grapefruit watermelon

ls - &® Y 7>O/ ) ^ Y´ š Q 5
D ? @ , C ? " $ 7 & H
$ ls a*
apple

$ ls g*
grape
grapefruit

$ ls g*t
grapefruit

$ ls *e*
apple grape grapefruit watermelon

$ ls *n*
banana watermelon
J K n a Y C> # • Q R
J K ) n g 8> C ( c P Q R $
" t & n g 8> C P Q R $
8 > C P Q R ) & J K )
$ ) & J K n e 5

: ? @ Q # 0/ Y Q R ^
$ ls ????e
apple grape

$ ls g???e*
grape grapefruit

e bA "A › 5 & › 5 E 8> C Q Q R


n g 8> C ( Q R $ ) & J K #
$ J K # e bA j L Y &

: 8 g R Q 5
$ ls [abw]*
allpe banana watermelon

$ ls [agw]*[ne]
apple grape watermelon

J K ) n w b a 8> C ( c # • Q R
n w g a 8> C ( c ( Q R $ &
$ ) & J K ) " e n &

46 8 O P 7Q $ R 7" S !

& #C ) - " .
- & H $ J K ) ? "
? " ) & € 0G`
Y - ) 8 > C $ *|
•- & # <¯9 - Y' a <µ9 - Y7^
D- @ G/ Y + $ & H 8> C

$ 7 # * C . 6 D µ Y
& # * C , C ? " D ¯ Y
)A ? ( ) , 3 > C @ \
$ 7 š L
& # * C ? " D ¯¯ Y
. /01 ? ( ) , 3 > C @ \
$ " C l ,A "A

D ? @ - g R Y´ š
$ mail root < ~/.bashrc
$ nroff -man /usr/share/man/man1/chmod.1* > /tmp/chmod
$ echo “I finished the project on $(date)” >> ~/projects

) " bashrc$ * C . 6 # • Q R
$ Q @ M root ) Y7 # L ( L
nroff - & H chmod O hH\ ( Q R
Q R $ Q tmp/chmod * C ? " & # C
projects * C - o " @ " ¥/ a ) "A
D C l ? ) "
I finished the project on Sun May 25 14:25:36 IRST 2003

< 9 8> C - ƒ š
8 L ™OZ @ 7 - L
8 > C - ƒ $ " " Permission Denied )
- ) & j #>/ +
, \ |" . /01 8 > C , Y
‡ A * r O 8> C - & A *O/ ' >?
C l # ¶ * C #>/ + $ #] H5 '
$ " * C ,A , % Y ) ^ › P
# + • $ ) & J K rwxrwxrwx . | 8 +
& ' P # $# * C Y & + P@
r $# , Y & + P@ P #
$ ? &- ? ) ) x f ) ) ) w , ) " ) )
& J K < 9 u # 0/ › 5 + - 7 Š @ \
J K $# Q PC e &- ? + # P +
& H ls -ld - ) * C - ƒ
D ? @ - Q R $
$ ls -ld ch3 test
-rw-rw-r-- 3 alan alan 4096 May 22 15:11 ch3
drwxr-xr-x 3 alan alan 4096 May 17 20:14 test

f ) , ) " - ƒ , ) > C # • o"


* C , ) " &- ? orC , $# & '
* C ) bA # P + + $
o " $ Q O/ ,A ) @ K [@ Ž , G
d › 5 - ƒ #` $# (
$# & - eA # P
) 8 @ j ) $# ? f ) , ) " &- ?
š L & [@ & C l + 8> C
) P $ ) , ) " &- ? 8 @ , r $
$ G )A . 6 & +

)A - ƒ ) * C % @ \
chmod > + $ s @ , @ " - ) { Z
? f ) , ) " - ƒ - $# iL , 7
$‘ ? } f ) “ , ) " $# & C ' s) /
r , @ " - ƒ ( c 7 +
+ & ' $<“·}·‘9 $ + P@ ” # • #
” + - ƒ $ + P@ - ƒ , - ) ) a )
Y´ , + $ [ <= - ƒ Ž 9 F <* - ƒ9
D ? @ - g R ‡>Z
$ chmod 777 files = rwxrwxrwx
$ chmod 755 files = rwxr-xr-x
$ chmod 644 files = rw-r--r--
$ chmod 000 files = --------

–““ ,A & a' J L - ƒ 7 j * C


r + $# ”EE - ƒ + $ "
r J K $ + P@ umask o @ & a' J L
D B @ - umask

$ umask
022

” - 7 & umask / # C
& a' J L r + $
– - / + 8> C $ " &
? - ƒ & a' J L 1 8> C - $
$# Q PC e <‘ r 9

, E(
a' - , - 8> C - - P@ [@
? , 7 + $ & H chmod R
" , 8> C ( c - ƒ , C
( c - ƒ [@ Q R $ [@
) tmp/test ? 8> C
D B @ -
$ chmod -R 777 /tmp/test

8'
? - ƒ Z/ * - ƒ Z/ ( chmod R a'
r Š X @ \ $ # m "
- Ž ) @ K ? –““ r ”””
$ ,A ?
* |C # " X # 3 - Y QY wA -
8 8 > C Y - ƒ ) ' ?
$ # & & ) j '

, / - & H
) a " / 5
( w bA - ) @ ) ?
$ „ ) C & ´ " & -

< 9 * C ^ * C ˆ r@
& #O ` r@ u* C Jz +
* G@ #O ` * C
^ $ - L ,A ,
MP3 @ \ * C 0R & A J L % ¬
,A " # - J j5 * C
) a ^ L0C a? ,
7^ Q 5$ ) Y USB CD & )
& H L0C } - ) @ % + ¬
$#" L " n l + Jz + ¬ Z^
&- ) # j5 mp3 * C ? + ) K
+ r@ #7 M * `
C * C ' ` *6 Q # C
: B @
split -b 1440k my_file.mp3 qesmat

) r@ > š > * C +
9$ ) r@ š > ? +
qesmat O> Jz <$ # * C
) K " C l blocks ) O>
tgz. ) L 0R , G L * C % ' qesmatab. qesmataa
" % # # ,A j5
$ & H 700000k / u + 3 - ) @
) L0C Jz X 5 m "
d >• = d >• ,A |r M
, L0C . 6 # % |r * / ' ,
: ? - N
cat qesmat* >filename.mp3

& * C >•d _> • Jz +


' & A J L , Q ¸ + $ )-
+ ¬ + ) ^ - |r * /
& j L # j ) K ' - , C o"
, C o" & j L X 5 command B @Run
- ,A & 7@ 7) * C
:
copy /b qesmataa+qesmatabfile_name.mp3

r@ , - a ^ qesmat Š % ' ? @
% * C ' & H ( ) , 3 - &
@ @ , C + J z ( c ( ) Jz - J
7@ 7@ * C ^ " #` L + - $
!! &

8> C - & C
ˆ ‡ ` 8 > C - ' … (-X . ` "
* C +… # + … + & C $ K & "y * C
@ M
… ˆ … ˆ Q r ) * ` 5
Y O… 4C Q [ & & C * C + # a $
a c ? f ) $# #)Y { 1 - ,A #5 >) ˆ
a ) <Compress file9 & C * C ˆ <Archive file9 A * C ˆ
8 > C - / Oƒ A * C ˆ $# # 3 a• 5
* C + $ & "y * C ˆ … # 8 …
‡ … @ … … Q [ 4C , 3 :` # ) & C
& C * C ˆ $ … Q [ " 8> C ˆ@ˆ@
& "y * C ˆ … # 8 … 8> C - / Oƒ
Q [ " 8 > C 3 n Oƒ - Y O… 4C
$ K

, ;(
ˆ ) @ & C * C ˆ # ) & C A * C
$ A * C

$ !7" ' (

4C & C e « a 8> C #G ) & & C 8> C


$ ) >) YP … Q [ YO…
gzip - & C a , @ 8> C …
bzip2 a - … # & \ @ $ K & C zip bzip2
- & C R… 5 … #>/ + & H
a ) gzip G $ ? † ) G * / 8O ‡>e
- ) ˜) 5 ' $ L 8> / + ‡>e
) > / … + 8> C Q r ) *r) …
& H zip - … # Y ´ ( w #C † -
a Y '- a + , ^ K
8 > C ) L - Q ? $ - - & C
$ bA S N a

a * C ) L a
S N - & C
gunzip .gz gzip
bunzip2 .bz2 bzip2
unzip .zip zip

- & C a

bunzip2 bzip2

- bzip2 - & H * C ˆ - & C


D … B @ , C o"
bzip2 filename

( ) > C & & C & C P * C . \ +


a ) * C S N $ " & "y filename.bz2
D † -
bunzip2 filename.bz2

bzip2 - $ " + a ? filename & ›i5 filename.bz2 * C


1 … * C + ^ , … & C , @
* C ˆ ‡ ` bA + - >\ C- ˆ f i' , a3
$ K & H
bzip2 filename.bz2 file1 file2 file3 /usr/work/school

… . 6 file3 file2 file1 8 > C k C


( ) > C j ) & K & C /usr/work/school
$ ) ' filename.bz2

, ;(
Y . /01 L #M L man bunzip2 man bzip2 B @
$ … " #C bunzip2 bzip2

gunzip gzip

- * C ˆ - & C #8? gzip - & H


D …
gzip filename

( ) > C & & C & C P * C . \ +


- a ) * C S N $ " & "y filename.gz
D †
gunzip filename.gz

gzip - $ " + a ? filename & ›i5 filename.gz * C


1 … * C + ^ , … & C , @
* C ˆ ‡ ` bA + - >\ C- ˆ f i' , a3
$ K & H
gzip -r filename.gz file1 file2 file3 /usr/work/school

… . 6 file3 file2 file1 8 > C k C


( ) > C j ) & K & C /usr/work/school
$ ) ' filename.gz

, ;(
Y . /01 L #M L man gunzip man gzip B @
$ … " #C gunzip gzip

unzip zip

- * C ˆ - & C #8? zip - & H


D …
zip -r filename.zip filesdir

j … # > C & , ) filename.zip Q R +


? zip * C ,A " … # … filesdir
? 8> C c … # P + –r Ž $ a
a ) * C S N $ " filesdir …
D K B @ -
unzip filename.zip

… * C + ^ , … & C , @ zip -
ˆ ‡ ` a ) bA + - >\ C- ˆ f i' , a3 1
$ K & H * C
zip -r filename.gz file1 file2 file3 /usr/work/school

… . 6 file3 file2 file1 8 > C k C


( ) > C j ) & K & C /usr/work/school
$ ) ' filename.zip

, ;(
Y . /01 L #M L man unzip man zip B @
$ … " #C unzip zip
< 9 8> C , ^ M7
‡ ` … • * C + ^ - / Oƒ tar * C ˆ
b G L @ m " u ˆ u + $ * C ˆ
@ G/ tar … Ž - " $# A
D-

… j ? $ A ˆ D -c
* C ( ) - … –c … … D -f
–x … § K & H * C tar j s)
$ - S " A - s) * C …
$ J K & tar * C ? 8> C # 8C D -t
$ , ) , A Q 5 8> C , ? D -v
$ … S N A - 8> C D -x
$ … & C gzip a tar * C D -z
$ … & C bzip2 a tar * C D -j

D K B @ - tar * C ˆ j
tar -cvf filename.tar directory/file

,A % … , ) > C filename.tar Q R +
" … # > C • … directory/file … j
$ ` A * C )A

, a3 … * C + ^ ) @ + 23
D K tar bA + >\ C ˆ , `
tar -cvf filename.tar /home/mine/work /home/mine/school

? * C ˆ school work " 8> C ( c k C


$ ` ? " filename.tar ( )

D … B @ tar * C ˆ . 6 , … # 8C
tar -tvf filename.tar

D … B @ tar * C ˆ . 6 S N
tar -xvf filename.tar

. 6 N ) … K ›i5 & tar * C +


? ? " c ¹H5 ,A A e
bar.txt ( > C * tarfile ' Q R , / $
@ A * C S N foo/ ( …
bar.txt * C ? … " foo/ ( …
tar … … , ) 1 " $ w … + *"
* C ˆ j $ … K & C 8> C Œ CJ L 1
D … - bzip & C & tar
tar -cjvf filename.tbz file

) L & & `
C tar 1
8> C bzip2
, 8> C , … " ^ ' § . `
" .tbz
ˆ k C $ … A tar.bz2 ) L - & H
& C filename.tbz ( > C )A & … j A * C
›i5 … & C e bunzip2 * C + ' $ K
+ 23 $ " + a ? filename.tar ( > C &
A - S N - bzip tar * C ) @
D … S "
tar -xjvf filename.tbz

- gzip a & & C & tar * C ˆ j


D K & H ) @ -
tar -czvf filename.tgz file

.tgz ) L ` 1 gzip & & C tar 8> C


$

)A & … j filename.tar A * k C C
? filename.tar * C9 $ K & C filename.tgz ( > C
& C e gunzip * C + ' <$ K & "y
$ " + a ? filename.tar ( > C & ›i5 …
- S N - gzip tar * C ) @ + 23
D … S " A
tar -xzvf filename.tgz

, ;(
tar Y . /01 man tar B @
$ … " #C

< 9 * C ( L \0" & - n Oƒ


o @ # MD5 & - n Oƒ
* C @ , 7 + % @ l
O ( ) &¤ MD5 $ p N @ - a O
f \0" r G 6 # Message Digest 5 ( )
. 6 f c + $ 7 * C
& ) ' # ,A \0" ) & * C
# ' 5 ( w ) G 6 + $
+ r L [@ * C . 6 f -
$ " . H a )

, E(
( L # \ - 5 + P@ MD5 + YO8
$ #

. /01 #h \ -
Q |5 , O1 & - + - + 23
+ & & H M & >) 8> C
- & H ) @ M > C '
> \ ‡5 \ o @ r & m 5 ,A \0" MD5
+ - # 5 ' $ r # & G 6 * C
$ • G 6 + r . H * C
Q r ) + 5 * C +™OZ ) @ u + -
& • # 7 # & [@ ^ >)
$ # & ) `

%$ ? @ ) K n l + , @ +
+ )
,A & #C #)Y - )
- C ,A £ # ) @ " # *\ )
* R / ) @ + n01 ‡ ,A MD5
" * C MD5 n Oƒ Q 5 a5ca445f6965873eca0259a17f833393
¬ 7 + Z^ G 6

? md5sum ( ) ) * C MD5 r 6
D & H ,A - - u ) @
$ md5sum your_download_file.tgz

- / G 6 ) + / '
* \ % * C r ` # & (0/ # { 1
? @ $# & # % * C ) ' #
# { ` G 6 MD5 r O
$ @ C |h * C

& H a ) " . /01 Q G@ u + - ) @ %


, 7 ) Y7 ) { 1 - * C
> C MD5 & - n Oƒ z - H
, 7 ' r % & #C
? & ) & " C # Q O 5 G)
$

,% /
a C ( ) @ 7C A & a +
Tripwire ) # * C #h\ { |@
^ % < aC ( ) % 9 ) - *7
- u ' % * C [@ ) ' &

#h \ - n0 1 , @ u + - & H
& " , G6 : - @ CD- % # % CD
K i' " CD ` & M
+ - n0 1 ¬ # % @ M - *7
- Z^ ) K ' t Image " CD - n l
D < dev/cdrom/• A % CD 1 9 $ & H -
$ dd if=/dev/cdrom of=/home/user_name/cd_image.iso

+ r G 6 " ISO * C MD5 n Oƒ X 5


& ) >) Jz ,A £ # r
M , - ' 7 $ r #
r & M , , Iso CD &
. M - # % CD- *7 ) G) , 7 '

You might also like