Professional Documents
Culture Documents
; ,
.
, ,
.
Linux .
,
.
Linux,
.
OpenOffice
, , .
Linux
,
, Linux.
LINUX
m i k e
m c g r a t h
Linux
,
.
COMPUTER
steps
,
.
Computer Active
20
Linux
by Mike Mcgrath
Copyright 2011 by Computer Step
Reprinted under an exclusive licence agreement from the
Publisher: In Easy Steps, 5c Southfield Road, Southam,
Warwickshire, CV47 0FB United Kingdom
Notice of Liability
Every effort has been made to ensure that this book contains accurate and current information.
However, Computer Step and the author shall not be liable for any loss or damage suffered
by readers as a result of any information contained herein.
Trademarks
Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other trademarks are acknowledged as belonging to their respective companies.
:
: Wordshop ( )
: K
/ : ,
Screenshots: Avatar.gr
:
Copyright 2011, ..
.
, Computer Step
.
Microsoft Windows Microsoft Corporation.
.
A N. 2121/1993 B ( N. 100/1975)
-, , -
, , , ,
.
Linux
Linux
Linux
7
8
10
12
14
16
18
20
22
24
25
26
28
30
32
34
36
38
40
42
43
44
46
50
52
54
56
58
60
61
62
64
66
68
70
72
74
76
78
79
80
82
84
86
88
90
92
94
96
97
98
100
102
104
106
108
110
112
114
115
116
118
120
122
124
126
128
130
132
10
A - C
D - F
F - I
J - L
M - N
P
R
S
T
U - V
W - Z
133
134
136
138
140
142
144
146
148
150
151
152
154
156
158
160
162
164
166
168
169
170
171
173
175
177
178
179
180
181
183
185
186
187
;
,
.
. ,
.
Linus Torvalds, Linux
Linux
.
Linux
10
Linux
12
14
Linux
16
18
20
22
24
Linux
Linux
Intel .
Unix
1969.
Linux
:
Linux
"" "".
"LAMP" Linux, Apache,
MySQL, PHP.
Linux GNU,
.
,
' .
,
CD/DVD
Linux ,
.
Linux ,
,
. Linux
Linux . .
" "
, Linux.
, Linux, .
, OpenOffice Microsoft Office
Linux
1983 Richard Stallman GNU Project.
, .
.
1991 GNU Project
GNU C Compiler
Stallman. , Unix 21 . Linus Torvalds
Linux (LINUs - uniX).
Linux
Linus Torvalds.
, Linux 1.0
GNU, .
"GNU"
"GNUs Not Unix".
Linux
Linux
"kernel" .
, . ,
.
10
openSUSE,
PCLinuxOS Ubuntu "live"
Linux ,
Linux
.
, Linux
, ,
.
. .
Linux
, . , , , , ..
, .
Linux,
"distros".
.
Linux .
RedHat, SuSE, PCLinuxOS Ubuntu.
.
Linux. ,
.
RedHat Fedora
Linux RedHat Enterprise Linux
Fedora Core
RedHat Enterprise Linux.
: , , .
: , .
http://www.fedoraproject.org.
Novell SUSE
openSUSE ,
Novell
YaST. , , , .
Novell SUSE
Linux Enterprise.
: , YaST
: 1.500
http://www.opensuse.org.
PCLinuxOS
Ubuntu
Gnome.
18 . Ubuntu CD .
,
,
. Linux, '
Linux.
: ,
.
:
.
http://ubuntulinux.org.
11
Mandriva
Linux, KDE
. " "
Windows.
PCLinuxOS
MP3, Quicktime wmv Microsoft.
: , .
: , .
http://www.pclinuxos.com.
Linux , .
,
(HD).
RAM
128Mb 256Mb+
5Gb 10Gb+
, RAM
Windows
:
12
1
2
3
Windows XP,
""
"".
, ,
" " " "
, ""
"" Windows Vista ( ""
Windows XP)
RAM
5
6
13
. PCI ethernet ethernet Linux
.
. PCI Windows.
"winmodem"
Linux.
Linux,
.
RS232.
winmodem Linux,
www.linmodems.org
.
Linux
14
"". Windows ,
. Linux
:
,
,
,
,
.
,
.
Windows
Linux .
Windows
. Linux Linux .
Windows
Linux .
Windows, . " "
Linux Windows
.
Linux
Windows,
. Linux Windows .
Linux ,
. :
Windows
Windows
EIDE (Enhanced Integrated Device Electronics),
CD /DVD ,
CD. .
"Master"
"Slave"
.
""
Master (MA) Slave (SL).
.
Master,
Slave
15
Master
Master,
,
Slave,
,
,
.
Slave
. , BIOS "auto-seek" ( ) .
s
Linux Windows, .
"" , , "" ("
" Windows XP)
""
""
""
" ",
""
16
Linux
Windows
.
5
Windows Linux.
.
,
""
""
,
Linux
Linux CD. ,
Ubuntu www.ubuntu.com/download CD www.ubuntu.com
Linux
CD. BIOS (Basic Input/Output System)
CD
. , BIOS.
07
08
10
11
12
13
BIOS (
Delete
)
BIOS
https://wiki.ubuntu.com/
BurningIsoHowto.
CD
,
BIOS
17
09
CD Linux CD
CD
F2
"Install" ()
Linux
Ubuntu,
Linux
"Live CD"
Linux
.
Linux , ,
.
Linux
swap ( ) .
Linux,
swap
18
, " "
Linux
.
100 "ext3"
"/boot"
Linux. OK "
"
ext3
" "
Linux.
"
" , RAM OK
" "
19
" "
.
"ext3" "/"
.
:
,
hdb,
hdc ..
20
,
Windows
Windows Linux.
Linux, , , . Windows,
, , :
,
.
2
3
4
, ,
Forward
" "
"user1"
Linux
"user1-desktop"
.
,
.
21
. Linux
.
Linux
. ,
.
Forward
, .
22
,
,
. ,
Back ()
.
1
.
.
,
""
Linux
,
" "
23
CD
CD Enter
, .
Linux
.
.
24
Linux , ,
Unix
"Linux"
, Linus Torvalds, "x" Unix
KDE Gnome
,
Windows
Linux
Ubuntu Gnome
Linux
300Mhz, RAM 128Mb 5Gb,
Linux Windows
Linux Windows,
Linux
CD
CD BIOS
Linux, ,
Linux ,
Linux
Linux
.
26
28
30
32
34
36
38
40
42
26
Linux ,
Linux.
Ubuntu .
.
1
"",
" "
""
""
.
"
"
,
"
"
" "
"" "
" ,
" " ,
,
!
,
,
27
" "
" "
""
,
.
"
"
.
Linux
""
.
"", ,
""
28
3
Ubuntu.
.
29
, .
Gnome "gedit".
" "
. 108
.
Linux
,
.
,
.
""
""
"", ""
" "
30
""
.
.
" ",
""
""
31
,
.
, " "
" "
.
Linux "" .
.
,
,
CD.
32
""
" "
.
,
.
" "
""
""
"
"
" "
33
" "
.
" ",
"" " "
" "
.
""
.
.
34
" ", , .
"".
www.gnomelook.org
.
" "
"", "", "",
""
, , ,
"Human"
Ubuntu
" ",
"Industrial"
"".
"" ""
" " " ",
35
""
" "
" ",
""
" "
" " "Red Industrial"
" ". ""
36
Linux,
" ".
""
""
" ".
"",
,
.
,
, "
..."
"
".
37
,
.
,
" ",
.
Linux
Windows ""
.
.
Ubuntu ,
. " "
. .
38
.
. , 36,
.
,
"
"
.
""
,
"
"
"
",
" "
OpenOffice
.
"", "",
"" " OpenOffice"
39
""
" ".
Draw
"
",
"
"
.
Gnome. ,
:
Ubuntu
.
40
""
.
"Visual Effects"
( ) , "Configuring visual effects"
( )
5
6
,
Enter
.
, " "
F1.
41
,
"", "", "", "Visual Effects", "Extra",
. "Normal" "None"
"Visual
Effects"
.
42
" " , ,
""
"", ""
Linux
" "
"" " "
Linux
.
44
46
50
52
54
56
58
60
44
Windows, Linux
:
,
58.
Linux Windows .
, readme.txt
README.txt Linux, Windows
Linux
. Windows
Linux
. Windows DOS
Linux
, "root" .
Windows
Linux . Windows .
, Linux /usr/bin
Windows C:\mysql\bin
"" Linux,
.
Linux.
"/".
/dev
/bin
/lib
/sbin
/boot
/proc
/initrd
/mnt
/etc
/var
/usr
/opt
/tmp
45
/home
/root
/
Linux
.
/root (
root)
/
.
/bin
( ) ,
. , ls
, , Linux
ls /bin.
C:\Windows Windows.
/sbin
46
( ) root Linux
. , clock Linux /sbin.
C:\Windows\system Windows.
/lib
/bin /sbin.
. DLL Windows .
Windows ,
.
/dev
.
, ,
.
, /dev/fd0 /dev/cdrom0 CD.
/boot
Linux, .
" "
Linux , ,
.
.
"vmlinuz".
/bin /sbin.
/etc
/proc
. ""
,
. ,
more /proc/cpuinfo
. ,
more /proc/meminfo
. ,
.
.
47
,
.
,
KEdit. .
.
.ini Windows.
/mnt
. Linux.
, , /mnt/cdrom
CD-ROM CD. Windows,
/mnt/windows Windows NTFS.
48
/usr
.
, .
C:\Program Files Windows. /usr/local
,
,
.
/var
,
,
. ( root)
:
more /var/log/messages
/home
,
. "fred", /home/fred
.
.
, ,
Windows.
/tmp
, ,
. , . .
C:\Windows\Temp Windows.
/root
root.
, . Linux root
, /root
/home, .
/initrd
/opt
,
.
/opt
.
,
. ,
"example" /opt, /opt/example , /opt/example/
bin, /opt/example/man ..
/opt/example,
.
49
. Linux. , Linux.
"kernel panic" " ".
50
Linux
" " / . Ubuntu,
"" .
,
Ubuntu media, sys srv.
.
"" ,
""
" ",
" " / ,
,
, Enter.
home
/home.
51
,
/
,
/
,
( /
home/mike) Enter
""
.
Linux
.
, , .
52
.
"", "
"
.
"" ,
" "
,
06
07
09
10
"",
""
, "open.txt"
Enter
" "
.
.
53
08
""
"", "" ,
, " ",
,
""
.
54
.
"" . , URL
" ":
" "
.
" " ,
" "
sample.txt
" "
"" "". ""
"".
"",
"", /home/mike//sample.txt
,
3, URL "".
55
, URL.
.
,
. .
" " ,
" "
.
" "
"
"
,
, , "", .
.
sample.txt
Linux .
Windows. Linux
.
56
1
2
" ",
"".
. , .
,
, . *
,
.
,
"", "
",
" ",
" "
57
" "
" ", ""
" "
.
" "
.
Linux "". .
, (
).
, .
"" , .
""
"":
58
,
.
""
, ""
""
,
. , ""
, .
.
"" ""
,
,
.
59
,
root. 144
.
60
Linux /
/home,
" "
, ,
""
" "
, URL
Linux
" " ,
" "
, ,
Linux.
62
64
66
68
70
72
74
76
78
OpenOffice Linux
, Microsoft Office
, ,
, , .
Microsoft Office OpenOffice.
OpenOffice
Microsoft Office Word, Excel
PowerPoint. Microsoft
Office, OpenOffice, ( OLE, , , applet, )
Microsoft Word.
62
OpenOffice
StarOffice Sun
MicroSystems. Sun
,
OpenOffice .
OpenOffice Linux, Mac
Windows.
www.openoffice.org.
63
""
,
.
OpenOffice,
"
OpenDocument (.odt)".
, , , Microsoft Office.
64
""
"".
.
, ""
.doc. ,
OpenOffice
Portable Document Format.
PDF
. PDF
.
5
6
OpenOffice Linux
Windows
65
PDF
DOC
Windows.
.
OpenOffice .
Microsoft Excel (.xls).
66
"5".
" "
07
08
09
10
11
"", .
SUM ""
67
06
.
.ods "Microsoft
Excel 97/2000/XP" .xls
,
"
",
.
OpenOffice
.
Microsoft PowerPoint (.ppt).
1
F7
OpenOffice.
68
" "
.
, "Subtle Accents",
"" , , ""
05
06
07
09
10
11
,
"
", ,
,
Enter
,
.
"
"
, , "",
"", " " "
"
69
08
" ",
"
"
""
.
OpenOffice
OpenOffice , , .
1
.
70
4
5
6
OpenDocument
(.odg)
,
.png, gif .svg.
08
09
10
" ",
"Data Table"
""
"", "
", "".
"Chart Type" (
) Line ()
"Points and Lines" ( )
71
07
OK "Chart
Type"
,
"",
"", " OLE".
,
"", "", "".
OpenOffice
.
2
3
72
,
.
.
""
OpenOffice.
.
"
" ""
"" , , ""
""
" " .
""
""
OpenOffice
"", "",
" ".
""
" ", "
" " " ""
73
,
" " , , ""
" "
.
, "",
"" ( Ctrl+S)
ID
.
.
74
OpenOffice Structured Query
Language (SQL) , SQL,
, .
-
""
"" "" "".
"", "",
" ", Base,
"",
""
OpenOffice
" ",
" "
""
" ", "" "". " " ""
""
. "" ""
, "."
"Internet" ""
,
.
75
"" ""
" Internet",
""
"" .
" SQL"
, .
&
Linux
Evolution. Ubuntu
"", "", "Evolution Mail".
,
"/" Evolution
"", "/" F9.
Evolution
76
POP (Post
Office Protocol)
SMTP
(Simple Mail Transfer
Protocol) .
Evolution Evolution
.
(POP SMTP),
.
, .
Evolution
, ,
.
04
05
06
07
08
09
11
, ""
" " , , ""
emoticon () , "Insert" (), "Emoticon"
"",
" " F7
"File", ""
""
Ctrl+Enter
"",
""
Evolution
.
""
"
"
.
77
10
78
OpenOffice Writer
Portable Document Format (PDF)
OpenOffice Calc
Microsoft Excel
OpenOffice Calc
OpenOffice Impress
Microsoft PowerPoint
OpenOffice Impress
OpenOffice Draw , ,
OpenOffice Base
OpenOffice Base
Structured Query Language (SQL)
Evolution
, Evolution , ,
80
82
84
86
88
90
92
94
96
Linux Mozilla
Firefox , .
. Netscape
.
1
2
80
" "
""
""
.
,
"", "", "" " " ,
"Blue Ice"
"", ""
"" "" . JavaScript ,
JavaScript
.
81
Firefox
"", " "
"". JavaScript Console2
alert(Hello )
Evaluate
JavaScript "JavaScript
".
Linux
Pidgin,
.
AIM, ICQ, MSN Messenger, IRC
.
82
MSN
(
Hotmail)
registernet.passport.com.
"",
"", " Pidgin" Pidgin
"", ,
""
" ", "" "
" ""
" " ,
,
.
Enter
83
" "
" "
Pidgin.
""
"
".
""
Smiley
, .
" Ekiga" SIP
(Session Initiation Protocol)
, " SIP". Linux Ekiga Windows.
, ,
SIP .
84
Ekiga
www.ekiga.net.
10
"".
, ekiga.net SIP.
04
05
,
.
SIP .
Ekiga
.
06
07
SIP URL
Ekiga
09
10
85
08
"",
"" ( Ctrl+O)
.
, .
,
"", "" ( Ctrl+D).
Ekiga
.
""
" ".
86
Linux
, . ,
Ubuntu . ,
, .
Totem.
.
.
" "
GStreamer ""
.
""
87
.
. ,
,
.
" "
podcast, .
88
""
.
"", "
& ", "
"
Rhythmbox
""
.
. ,
" " "",
"" " "
" ". URL , http://rss.cnn.com/services/
podcasting/newscast/rss.xml
,
. , ""
"" ""
"
"
URL.
URL
.
89
CD . , ""
" "
CD "".
" "
.
Linux
CD CD/DVD.
" "
OGG , " ". Serpentine
OGG CD ,
CD .
90
OGG
.
Windows Media
Player
www.wmplugins.com.
,
""
.
3
4
CD
"", " &
", "
CD". CD
"".
OGG
CD
CD.
,
ISO "
"
.
CD/DVD,
.
91
CD/DVD
" "
,
CD/
DVD
"".
Linux GIMP (GNU Image
Manipulation Program), 220 .
GIMP Adobe Photoshop
CMYK.
92
GIMP , PSD
Photoshop.
GIMP
script ,
. GIMP :
"", ""
800% , ,
,
" "
X:0, Y:0
X:80,Y:30, 80 30
,
#F35F28 #F5D087
07
08
10
11
12
13
14
" "
X:2,Y:2 X:78,Y:24
, ,
"", "Rounded Rectangle",
" "
,
93
09
" " , ,
,
GIMP
Photoshop .
Linux ,
.
Ubuntu :
94
" "
Synaptic
Package Manager ( ).
Advanced Packaging Tool
(APT).
146.
3
4
, .. "Inkscape vector
graphics". " "
" " .
"" , ,
"
".
95
""
,
.
""
"", ""
Inkscape
Inkscape
Adobe
Illustrator.
AI.
96
" Pidgin"
" Ekiga"
SIP
Linux
Ubuntu
Rhythmbox
Rhythmbox
(podcast)
CD Rhythmbox
" " CD
OGG
Serpentine OGG
CD CD
CD/DVD
GIMP Linux
Linux " "
(shell) Linux
.
98
100
102
104
106
108
110
112
114
Linux
"".
, . "" Linux
.
.
.
.
Linux
. Linux, , Bourne Again SHell (BASH),
Bourne Unix.
98
,
"" ()
. . ""
.
:
-
.
(
Ubuntu, "", "", "")
,
bash ,
. , "@".
.
whoami hostname.
2
3
whoami
Enter
hostname Enter
.
.
99
. .. clear .
"" , exit
. type
.
clear Enter , type clear Enter
,
clear
type exit Enter
exit
exit Enter
,
--help ( "help")
Enter
.
"" root.
,
. ,
reboot .
.
Linux,
sudo . sudo
, ,
root.
100
, reboot
reboot
root, sudo
reboot
, , Enter
.
root ,
root passwd.
sudo root
sudo passwd -l root.
pwd logname
.
pwd
root
pwd
101
logname
root exit,
,
root
,
!
root .
, Linux
".bashrc"
.
. .
1
2
3
/home (
Ubuntu, "", " ")
.bashrc '
" "'
102
.bashrc . "#",
. ,
.
.bashrc
PROMPT_COMMAND= #
"PS1", .
.bashrc ,
.
.bashrc case
# set a fancy prompt
#
, case esac
(30m), (31m), (32m),
(33m), (34m)
(35m),
(36m) (37m).
PS1=\[\033[01;34m\]user> \e[0m,
103
, .
Linux " ". :
104
Linux 3 5.
.
,
O
,
X-windows
X-windows
.
Linux
, Linux
, ,
. ,
,
.
init
root
. who -r.
Linux, , .
2
3
4
5
, ,
su root,
101
init 1
root root
root who -r
init 5 ,
init 0 .
shutdown
-h,
. , .
root
.bashrc
/root, 103.
root, shutdown -h +3
105
shutdown -h
,
root
shutdown -c.
echo.
,
. echo
"" .
= .
,
, .
"$".
,
"BODY",
BODY=98.6
106
2
3
4
(manual) man
.
"SCALE", SCALE=" "
echo $BODY
, echo $SCALE
unset.
echo $PATH
PATH=$PATH:/
home/mike
echo $PATH ,
107
PATH
.bashrc
102.
,
. ,
"" .
108
2
3
( Ubuntu
"", "", "
"),
""
"",
"" .
gedit ,
%U
.
URL .
,
Enter
,
.
6
7
""
"",
"" totem
root,
.
, totem /home/mike/
trailer.mov ( )
" "
109
.
.
, , ,
Linux.
, cd.
,
cd cd ~.
, cd ..
.
cd .
1
2
110
3
4
5
.
pwd
cd /etc ; pwd
/etc
cd ~ ; pwd
cd .. ; pwd
cd mike ; pwd
ls . :
-a ,
-l
,
-t
-o
-g
,
.
7
8
111
cd "My Documents"
ls
ls -altog , , ,
,
"/",
/.
,
basename.
dirname
, .
basename
dirname ,
.
mkdir.
, .
112
2
3
4
5
bash
, echo $SHELL
basename $SHELL
dirname $SHELL
bash
mkdir Sub1 "Sub1"
mkdir /home/mike/Folder/Sub2
"Sub2"
rmdir.
,
.
, .
-ri rm.
, . ,
.
6
7
gedit
"Sub2"
rmdir Sub2
"Sub2"
113
-v
rmdir
rm
, .
,
rm
-r
. !
114
whoami hostname
clear exit
sudo root,
root su
pwd
, bash
.bashrc ,
root
init
"$"
, $PATH
"" ""
cd
"~"
, ls
basename ,
dirname
mkdir
rmdir
rm,
-ri
Linux.
116
118
120
122
124
126
128
130
132
mv Linux .
.
mv
,
.
, , ,
cp.
,
.
116
4
5
-i mv
.
ls
mv , ..
"alpha.txt" "zebra.txt" mv alpha.txt zebra.txt
ls
mv zebra.txt Docs Docs ls
cp some.txt Docs
"some.txt"
ls ,
rm
. * , .
, , () , , ln.
. -s
.
readlink
.
06
07
09
10
rm Docs/zebra.txt ls Docs
ln Docs/some.txt hardlink
"hardlink"
117
08
*
""
.
55.
Linux . stat .
, du -b byte.
wc -m
.
wc , byte
file.
1
2
118
3
4
du -b Docs/some.txt
byte
wc Docs/some.txt ,
byte
touch ,
.
-d
.
, .
stat more.txt
stat more.txt
119
touch
.
.
cmp. , , ,
.
cmp
, .
comm. ,
:
1 ,
2 ,
120
cmp abc.txt acd.txt
comm
.
-12
.
"Beta" , "Delta" "Alpha" "Charlie"
.
diff comm
.
. .
checksum
. checksum
, checksum
md5.
md5sum checksum 32-byte
, .
checksum
cksum. CRC (Cyclic
Redundancy Check) byte.
121
md5sum abc.txt
checksum
, cksum abc.txt
checksum
"man diff"
diff
.
find.
, , .
:
find -type f
*
.
.
, ( ~ ).
, su -l
root ,
( / ).
, -type f , "f". -name , .
122
1
2
3
find
-L .
-L
123
, -type
, "d".
, , -maxdepth find.
, .
/usr
.
-maxdepth 1
7
.
cat.
, .
-n
cat
.
. , ,
. less
"|". , .
124
3
"less"
. H
less .
4
5
head
tail .
.
nl
. -v
-b t .
tail ballad.txt
125
nl -v 0 -b t ballad.txt | head
, 0
Linux
vi
Unix.
126
vi Enter
vi . vi
" " ,
.
2
3
vi
.
,
Enter
.
man vi,
Linux
vim
.
7
8
,
Esc " ", vi " "
":" vi.
.
"w" ( "write" )
, simple.txt
Enter ,
vi ":q" Enter vi
.
vi
. , Ubuntu,
.
"nano"
.
127
vi , "vi" ,
.
, vi simple.txt
vi
vi Insert
.
cut paste
. ,
. "" cut
. , -f3
.
-T cat
"^I" .
paste cut,
.
1
2
128
3
4
"nums.txt" "veg.txt",
,
cat nums.txt veg.txt
,
paste nums.txt veg.txt ,
cut -f2 veg.txt
, -f1,3
, -f2-4.
tr. . ,
tr a * "a",
. tr - .
sort
. , -n.
tee
sort .
tee .
129
tr
.
, cat veg-col2.txt
-a tee
,
.
grep .
. grep
.
130
.
sort ,
uniq.
grep sort
uniq
.
grep .
,
grep [Y] ballad.txt
Y.
grep
.
look
.
4
5
131
aspell
-c,
.
,
.
look
,
/usr/share/dict/words.
aspell ballad.txt
I
,
R
X
aspell.
132
mv,
cp rm
ln
readlink
stat , du file
touch wc
find
Linux
cat nl
less
,
head , tail
vi
cut paste
tee
tr sort
grep
look
aspell
Linux.
134
136
138
140
142
144
146
148
150
GNU zip Linux
gzip ,
, , ".gz" . , gunzip
gzip, .
3
134
bzip2
gzip zip.
.
, du -b ele*
byte "ele".
elegy.txt
gzip elegy.txt ,
".gz"
du -b ele* gzip
gunzip elegy.txt.gz , ".gz"
bzip2
gzip .
bzip2 .
gzip, ".bz2" bunzip2.
07
08
du -b ele*
bzip2
bunzip2 elegy.txt.bz2 , ".bz2"
zip
,
.
09
10
11
12
135
Windows zip.
Linux unzip Linux Windows zip. gunzip
bunzip2, unzip
.
zip elegy.zip elegy.txt
du -b ele*
-c gunzip,
bunzip2 unzip
.
Linux
,
CD, .
136
.
, s u
root
.
cpio
. -i -o
. cpio
>. ,
<.
1
2
3
4
5
tar cpio
.
.
ls
cpio ls |
cpio -o > /dev/hda5
rm * ; ls
cpio -i < /dev/hda5
ls
tar
-cf -xf .
ls
, ,
tar -cf /dev/hda5 *
07
08
09
rm * ; ls
tar -xf /dev/hda5
ls
cpio - it
tar -tf
.
137
tar -z gzip
gunzip "tarball".
10
11
12
tarball
tar
.tar.gz
.tgz. tarball
.
Linux
.
/dev. /dev/hda1
.
cat /etc/fstab
.
, " " ,
. , . df ,
. -h
-T .
CD/DVD
, df -hT
138
umount, unmount.
/dev/hda1 /dev/hda2
Linux ,
. /dev/hdc
. , mount /dev/hdc
umount /dev/hdc.
, /etc/fstab.
user (
/dev/hdc udf,iso9660 user,noauto)
. root.
. , root
fsck
.
,
. .
df -t
. ,
Linux "ext3".
3
4
6
7
8
su
init 1
df -ht ext3
umount /dev/hda2
/home
fsck /dev/hda2
mount /dev/hda2
init 5
df -T ( )
,
df -t ( )
.
139
/etc/fstab noauto
.
root
/etc/fstab
noauto
.
PID
,
.
Linux ,
, . (PID).
ps -e -u
. , -H
.
root
PID kill.
140
3
4
5
,
ps -u
grep. ,
ps -u dave | grep ftp.
exit
w -s
-s
.
, .
1 , 5 15
,
.
-h w
uptime.
x-session-manager
Linux.
(tty) (pts), .
w -s .
"dave"
ftp
141
w -sh andy
"andy",
.
vi
uptime
top
.
Q
.
useradd
. usermod userdel.
root.
passwd chfn.
, root
. finger
.
2
142
3
4
5
. .
su root
root useradd tony
"tony"
usermod -l toni tony "tony" "toni"
passwd toni
chfn toni
exit finger toni
. , root
.
groups
root
. root
groupadd
groupmod -n
groupdel .
-G usermod,
.
06
08
09
10
143
07
/etc/group
, .
ls -l
. d .
, , . r, w x
, .
,
( )
.
.
, .
144
,
58.
= 4,
= 2 = 1. , 7 , (4 + 2 + 1), 6 (4 + 2) ..
chmod,
. , chmod 777 myfile
"myfile" .
,
root su.
chgrp , .
, chown ,
.
2
3
4
su root
root,
chmod 644 mikes-text
chmod 640 daves-text
,
777.
,
.
145
Advanced Packaging Tool (APT)
,
.
,
.
Synaptic Package
Manager
Advanced Packaging Tool
(APT).
94.
apt-get APT .
apt-get update, ,
apt-get install.
,
apt-get upgrade
apt-get remove.
146
su root
apt-get update
apt-get install ,
Gnome FTP client (gftp)
apt-get remove
.
apt-get --purge remove
.
,
Y Enter
apt-cache search
.
, , .
147
exit Enter,
, , gftp
man aptget
.
"",
""
date , . , date ,
, :
148
man date
.
. ,
date +%H:%M
date +%R.
%A
%a
%B
%b
%D
//
%F
--
%H
(0-23)
%I
(1-12)
%M
(0-59)
%S
(0-60)
%R
%T
::
%Y
%Z
, date
,
date +%A
date +%D
date +%T
cal .
.
5
6
cal
cal 2010
149
cal
-3 ,
,
.
150
cpio tar
df
Linux
mount umount
fsck
(PID),
ps
kill
w uptime
passwd
finger chfn
root groupadd, groupdel groupmod
apt-get install apt-get remove
date
cal
Linux
.
152
154
156
158
160
162
164
166
168
, ,
, IP ( Internet),
.
-a
host
.
IP URL host.
, , IP.
, host www.google.com
IP URL
152
Linux IP
ifconfig
. ,
.
ifconfig
. -a
.
ifconfig . ,
ethernet, "eth0".
, "ra0".
loopback
,
.
ethernet IP 192.168.0.101.
153
IP ping.
, , -c
.
IP
URL
Google,
host .
telnet .
telnet.
Seattle Community Network.
154
Enter
.
.
telnet telnet
telnet Unix, Linux,
bash , cd, ls, pwd ..
, . , "quit", "end", "exit", "close", "stop", "logout"
"logoff".
telnet telnet .
.
ssh .
ssh ,
.
. , ssh
.
155
"example.com" ,
ssh example.com.
"yes" ()
ssh
.
,
ssh -l @
, File Transfer
Protocol ( ). ftp
Ftp open
IP, .
Unix,
bash , cd, ls, pwd ..
Ftp put mput
. , get mget . ,
exit Ftp.
156
2
3
, ftp Ftp
Ftp, open
,
help ?
.
mkdir temp
"temp" cd temp
"books.txt"
, put books.txt
mget mput
.
6
7
get morebooks.txt
157
quit Ftp
cat morebooks.txt
get
!
Unix, Linux,
.
. ""
() ().
Linux " "
.
.
.
Linux
, .
X Window System .
1 6 . , .
158
, Ctrl+Alt
F1 F6 . F1
, F2 ..
.
, Ctrl+Alt+F7.
who
. ,
(tty1), (tty2) (tty3). .
,
tty7
pts/0.
4
5
Ctrl+Alt+F1 ,
vi
Ctrl+Alt+F2 , man vi vi
Ctrl+Alt+F3 ,
ftp Ftp
exit
Ctrl+Alt+F7
who
159
vi :q
man
q.
Ftp exit
ftp,
Ctrl+C.
mesg . y n .
, mesg .
write, .
write . , Ctrl+D
, .
Ctrl+Alt+F1
mesg .
, mesg y
160
4
mesg write.
Ctrl+Alt+F2
mesg .
, mesg y
write, ,
Ctrl+D
Ctrl+Alt+F1
161
.
, write , ,
. , write.
who
root
,
.
Ctrl+Alt+F3
lpr
.
. ,
.
lpq.
.
, ,
lprm .
162
root.
, lpr hi-res.jpg ,
"hi-res.jpg"
lpr ballad.txt ,
lpq
, .
,
lprm 2 .
. .
.
lpr |.
,
lpr -P
.
163
lpstat -t
lpstat.
.
expr
. ,
\. , *
.
+ , - , * ,
/ %
.
. .
expr (1) (0) ,
length, substr index.
164
2
3
4
xcalc.
, expr 7 + 3
expr 7 \* 3
expr 7 \* \( 3 + 1 \) expr 7 = 3
expr length Linux in easy steps
expr substr Linux in easy steps 7 13
expr index Linux in easy steps x "x"
if-then-else. ,
.
- if
[ ].
, .
- then ,
. , - else
,
. , - fi
.
Enter
,
, .
07
08
09
10
165
06
- if
.
[
]
.
if [ `expr 7 % 2` = 0 ]
Enter
, then echo " "
fi Enter
` expr 7 % 2
.
,
,
if [ 1 = 0 ].
, ,
(script)
. #!/bin/bash,
bash .sh.
RANDOM=1
echo $RANDOM
.
.
"", ./ .
, ,
$RANDOM 0 32.767,
. , ,
().
, .
166
date +%s
00:00:00 GMT 1 1970.
, $RANDOM .
,
$RANDOM, let .
1
2
= .
3
4
#!/bin/bash
,
$RANDOM RANDOM=`date +%s`
1 20
let NUM=( $RANDOM % 20 + 1 )
clear
echo "
1 20" echo "
;"
06
07
08
10
11
read GUESS
while [ $GUESS -ne $NUM ]
do
if [ $GUESS -gt $NUM ]
then echo , ...
else echo , ...
fi
read GUESS
done
while-do
-ne ( ) -gt ( ).
bash -eq () -lt
( ).
echo , $NUM
167
09
guess.sh
chmod 711 guess.sh
./guess.sh
.
.
168
ping
telnet ssh
Ftp ftp
who ,
Ctrl+Alt+F1-7
mesg
write
lpr
lprm
lpq
CUPS lpstat
expr, length, substr index
if-then-else
bash
#!/bin/bash
.sh
./
10
,
-
170
171
A - C
173
D - F
175
F - I
177
J - L
178
M - N
179
180
181
183
185
U - V
186
W - Z
<
..: wc < some.txt
>
..: ls > ls.txt
>>
..: date >> ls.txt
|,
"".
()
..: echo sunny day | tr a-z A-Z
echo tr
..: ls ; date
170
,
.
man
--help.
./
..
./script.sh
..: cd ..
~
..: cd ~
$
..: echo $VAR
^C
(Ctrl+C)
..: ping google.com
^C
^Z
^ Ctrl,
^D
Ctrl+D.
(Ctrl+Z)
..: ftp
^Z
^D
(Ctrl+D)
..: write
^D
A - C
alias
..: alias HOME="cd ~"
apt-get
aspell
..: aspell -c some.txt
awk
..: awk { print $2 } some.txt
-
basename
..: basename /home/user/some.txt
bg
..: bg %2
171
bunzip2
zip
..: bunzip2 some.txt.bz2
bzip2
zip
..: bzip2 some.txt
cal
-3 3
12
..: cal
..: cal 2010
cat
..: cat some.txt more.txt
cd
"( root)" root.
..: cd /home/user
..: cd ~
chfn
finger
..: chfn -f Finger
chsh
( root)
chgrp
( root)
chmod
, , = 4,
= 2 = 1
..: chmod 640 some.txt
chown
( root)
cksum
clear
..: clear
cmp
, byte byte
172
,
..: comm some.txt more.txt
cp
..: cp some.txt more.txt /tmp
crontab
crontab
, .
-l crontab
-e crontab
-r crontab
..: crontab -l
csplit
xx00, xx01 ..
..: csplit some.txt "/Part 1/" "/Part 2/" "Part 3/"
cut
-c
-d
-f
..: cut -c 5-7 columns.txt
..: cut -d, -f 5 commafields.txt
D - F
date
"+%D"
"+%T" ::
..: date
..: date "+%T"
dc
p
c
q
..: dc
64*p
24
df
-m Mb, Kb
.
man dc
dc.
..: df -m
diff
173
,
..: diff3 some.txt more.txt next.txt
dir
..: dir
dircolors
ls
..: dircolors
dirname
..: dirname /home/user/some.txt
du
-h
..: du -h some.txt
..: du -h /home/user
echo
ls
dircolors p > .
.bashrc dircolors -b
.
..: echo $SHELL
ed
..: ed some.txt
egrep
grep
..: egrep some.txt
eject
cd/dvd
-t
..: eject
env
..: env
eval
..: LSHOME="eval cd ~ ; ls -l"
exit
..: exit
174
expand
PS1
.
,
..: expand -t 3 tabs.txt
export
..: export PS1=Prompt\>
expr
..: expr 7 \* 3
expr,
*
.
*.
factor
..: factor 26
fdformat
..: fdformat /dev/fd0
fdisk
( root)
fg
..: fg %2
file
..: file some.txt
find
..: find ~ -name "some*"
F - I
finger
..: finger
fmt
-u
..: fmt -u para.txt
fold
..: fold -w 10 para.txt
for
..: for X in 1 2 3
do echo $X
done
free
Mb
~
.
find.
..: free -m
( root)
..: fsck
ftp
File
Transfer Protocol
..: ftp URL
[Connected] Name:
Password:
put
get
quit
grep
175
fsck
ftp.
sftp
.
..: grep some.txt
groups
..: groups
groupadd
( root)
-f
..: groupadd -f
groupdel
( root)
..: groupdel
groupmod
( root)
..: groupmod -n
gunzip
gzip
..: gunzip some.txt.gz
.zip
gunzip.
gzip
gzip
..: gzip some.txt
hash
..: hash
head
-n
..: head -n 4 some.txt
history
..: history
hostname
..: hostname
176
id
..: id
if
..: if [ $NUM -gt 5 ]
then echo ""
else echo ""
fi
if.
ifconfig
..: ifconfig
init
( root)
1
5
..: init 1
info
Q
..: info ls
install
,
-o ( root)
..: install /usr
..: sudo install -o /usr
J - L
jobs
..: jobs
kill
,
PID
..: kill %2
..: kill 10436
last
..: last
less
,
Page Down Page Up
Q,
more
less,
less
.
-s
..: ln ~/some.txt
..: ln -s ~/more.txt
logout
..: login
logname
..: logname
look
..: look
lpr
..: lpr some.txt
lprm
..: lprm 3
lpq
..: lpq
ls
-a
-l
-t
..: ls
..: ls -alt
login logout
.
177
login
M - N
man
Q
..: man ls
md5sum
MD5 checksum
-c
checksum
..: md5sum some.txt > SUM
..: md5sum -c SUM
mesg
mesg .
y n.
n
y
..: mesg
..: mesg n
mkdir
..: mkdir
more
178
-l
..: mount -l
..: mount /dev/cd
mt
-f
: status, rewind, erase, offline
eod ( )
..: mt -f /dev/tape eod
mv
..: mv some.txt /tmp
..: mv some.txt old.some.txt
..: mv Documents Docs
nice
nice 20 20.
.
-20 () 20 ()
..: nice --20 ftp
nl
..: nl some.txt
P
passwd
..: passwd
()
UNIX:
paste
..: paste nums.txt names.txt
ping
-c
..: ping google.com
..: ping -c 3 google.com
pr
ping
URL
IP.
google.com
IP 64.233.167.99.
,
, 66
-n
-h
179
..: pr some.txt
..: pr -n -h " " some.txt
printenv
..: printenv
printf
%s
%d
%f
%c
\n
ps
..: ps
pwd
..: pwd
/home/user
printf printf()
C.
R
rcp
..: rcp some.txt host2:/home/user/some.txt
"host2"
read
180
reboot
( root)
..: reboot
renice
PID
-20 () 20 ()
root
ps
PID
( )
renice.
( root)
rm
-i
rm -r
,
.
-i
-r
..: rm some.txt
..: rm -ri
rmdir
rm
..: rmdir
rsync
..: rsync some.txt host2:/home/user/some.txt
"host2"
S
scp
( rcp)
..: scp some.txt host2:/home/user/some.txt
"host2"
sdiff
..: sdiff some.txt more.txt
chalk
| cheese
<
>
sed
sdiff,
diff, diff3,
comm.
..: sed { print $2 } some.txt
seq
181
-w
-s
..: seq -w -s \| 4 12
04|05|06|07|08|09|10|11|12
sftp
File Transfer
..: sftp URL
[Connected] Name:
Password:
put
get
quit
shopt
..: shopt
shutdown
( root)
-h
-c
-r
..: shutdown -h 0
..: shutdown -h +5
..: shutdown -r
root
shutdown
.
sleep
..: sleep 3
sort
..: sort some.txt
Alpha
Bravo
Charlie
Charlie, Bravo, Alpha
split
-l
182
sum
checksum
!
cksum checksum,
checksum
32 byte
md5sum .
ssh
-l
..: ssh -l
URL
stat
byte, ,
..: stat some.txt
su
root
..: su
..: su
sum
checksum block
..: sum some.txt
root
fg
,
jobs.
fg %1
root.
suspend
root
..: suspend
sync
..: sync
T
tac
,
..: tac some.txt more.txt
tail
-n
..: tail -n 4 some.txt
tar
, ,
gzip
-c
-z gzip gunzip
-u
-x
-v
-f
tar
bzip2
,
-j
-z.
(0) (1) $?
[ ]
-d
-f
=
!=
-eq
-ne
-lt
-gt
183
-a
[ ]
,
.
.
time
..: time
times
..: times
touch
..: touch
top
184
tr
.
.
-p PID
..: top
..: top -p PID
tr
..: echo sunny day | tr "a-z" "A-Z"
SUNNY DAY
..: echo happy frog | tr "frog" "toad"
happy toad
tty
..: tty
/dev/pts/0
type
..: type echo
echo is a shell builtin
umask
0022
.
0022
0002
0077
..: umask
0022
..: umask 0077
U - V
umount
..: umount /dev/cd
unalias
..: unalias
uname
-a
-n
-r
umount "n"
"u".
..: uname -a
unexpand
..: unexpand spaces.txt
uptime
..: uptime
uniq
unzip
185
( root)
..: useradd
userdel
( root)
..: userdel
usermod
( root)
-p
..: usermod -p
users
..: users
vdir
..: vdir
vi
vi
..: vi
..: vi
vi, Insert
Esc
. :
w Enter
:q
.
W - Z
w
..: w
watch
-n
wc
,
wget .
, byte
..: wc some.txt
wget
..: wget http://www.ineasysteps.com
whereis
(man)
..: whereis ls
which
..: which ftp
186
whoami
..: whoami
write
..: write
^D
xcalc
..: xcalc
zcat
gzip bzip2, zip
.
..: zcat some.txt.gz
zip
zip
..: zip archive.zip
A
Advanced Packaging Tool (APT)
P
94, 146
B
Bourne Again SHell (BASH)
PCLinuxOS
Post Office Protocol (POP)
R
98
RedHat Fedora
C
Checksum
Common Unix Printing System (CUPS)
Cyclic Redundancy Check (CRC)
121
163
121
137
U
82
Ubuntu
11
W
11
Winmodem
O
OpenOffice
62
Base, 72, 74
Calc,
66
Draw,
70
Impress,
68
Writer,
62, 64
Microsoft Office 62, 64
13
187
92
Novell SUSE
76
74
94, 146
T
Tarball
MSN Messenger
10
G
GNU Image Manipulation Program (GIMP)
11
76
188
CD
, Ctrl+Z
,
bashrc
27, 38
124
57
30
30
88
89
89
88
170
16
108
82
136
52
130
12
95, 146
52
87
87
27
76
48
47
46
102
124
125
116
125
126
117
58
126
122
118
116
116
120
117
134
72
86
40
GNU
,
9
44
102
102
98
26
70
70
92
104
(slave)
if-then-else
internet (IP)
44
166
15
52
112
165, 176
70
53
113
44
44
10
164
14
140
152
58, 144
58, 144
58, 144
59
44, 58
58
59, 144
58, 144
152, 154
CD
DVD
Linux
34
90
90
90
146
16
47
38
file
118, 174
find
122, 174
finger ( )
142, 175
fmt ( )
175
fold
175
for ()
175
free
175
fsck
( )
139, 175
ftp
156, 175
get
156
grep ( ) 130, 175
groupadd
143, 175
groupdel
143, 175
groupmod
143, 175
groups
143, 175
gunzip ()
134, 176
gzip ()
134, 176
hash
176
head ( )
125, 176
history
176
host
152
hostname
99, 176
id
176
ifconfig ( )
176
ifconfig
152
info
176
init
176
install
176
jobs
177
kill
177
last
177
less
124, 177
let
166
ln ()
117, 177
logname
101, 177
look ( )
131
look
177
lpq ( )
162, 177
lpr ( )
162, 177
lprm
( )
162, 177
lpstat
( )
163
ls ()
111, 144, 177
man ()
106, 178
md5sum
121, 178
mesg
160, 178
mget
156
mkdir ( ) 112, 178
more
178
mount ( )
138, 178
mput
156
mt ( )
178
mv ()
116, 178
nice
178
nl ( )
125, 178
189
158
29
, ./
166
46
162
164
37
99
login, logout
177
alias
171
apt-get
146, 171
aspell
171
awk
171
basename
112, 171
bg
171
bunzip2 ()
134, 171
bzip2 ()
134, 171
cal ()
149, 171
cat ()
124, 171
cd ( )
110, 171
chgrp ( )
145, 172
chmod
( )
144, 172
chown ( )
145, 172
chsh ( )
171
cksum (checksum)
172
clear
99, 172
cmp ( byte)
120, 172
comm ( )
120, 172
cp ()
116, 172
cpio ( /)
136
crontab ()
172
csplit
172
cut
128, 172
date
148, 166, 173
dc ()
173
df ( )
138
df ( )
173
diff ( )
121
diff, diff3 ( )
173
dir ( )
173
dircolors
173
dirname
112, 173
du ( )
118, 173
echo
106, 173
ed ()
173
egrep ( grep)
174
eject
174
env ()
107, 174
eval ()
174
exit
99, 156, 174
expand
174
export
174
expr ()
164, 174
factor
174
fdformat ( )
174
fg ()
174
190
open
156
passwd
100, 142, 179
paste
128, 179
ping
153, 179
pr ( )
179
printenv ()
179
printf ( )
179
ps ()
140, 179
put
156
pwd
( )
101, 179
rcp ( )
180
read ()
180
readlink
117
reboot
100, 180
renice
180
rm ()
113, 180
rmdir
( )
113, 180
rsync
( )
180
scp ( )
181
sdiff ( )
181
sed ( )
181
seq ()
181
sftp ( ftp)
181
shopt ( )
181
shutdown
105, 181
sleep
182
sort
129, 182
split
182
ssh ( )
155, 182
stat ( )
118
stat ()
182
su ( )
101, 182
sudo
( )
100
sum
182
suspend
182
sync ( ) 182
tac ( cat)
183
tail ( )
125, 183
tar
136, 183
tee ( stdout )
129, 183
test
183
time
184
times (uptime)
184
top
184
touch ( )
119, 184
tr ()
128, 184
tty ()
184
type ()
99, 184
umask
184
umount ( )
138, 185
unalias
185
uname
185
unexpand
185
uniq ( )
130, 185
unset ()
107
unzip ()
135, 185
uptime
141, 185
useradd
142, 185
userdel
142, 185
usermod
142, 185
users
185
vdir ( ) 185
w ( )
141, 186
watch
186
wc ( )
118, 186
wget ()
186
whereis
186
which
186
who ( ) 104, 158
whoami ( )
99
whoami
186
write
160, 186
zcat ( )
186
zip ()
135, 186
122
90
64
16
126
92
gimp
54
28, 52
53
,
98
chfn ( )
142, 171
104
26
29
40
32
38
54
GNU
9
57, 122
,
28
41
156
76
36
34
118
117
130
46
47
46
47
48
49
46
48
49
47
46
49
48
48
46
47
46
47
48
49
48
49
47
49
46
49
48
48
112
113
18
44
19
14, 18
98
141
81
158
158
50
56
102
15
100
20, 100
27
20, 142
142
66
RAM
PATH
RANDOM
Babel Fish
kernel panic
,
fdisk ( )
OpenDocument (.odt)
OpenDocument (.ods)
OpenDocument (.odp)
OpenDocument (.odg)
(PDF)
, *
12
106
107
106
107
166
53
27
80
49
160
82
174
64
67
69
70
130
65
117
55
Gnome
K (KDE)
aspell
init
telnet
Pidgin
146
68
9
9
50
110
50
27
68
131
104
154
82
191
bin
boot
dev
etc
home
initrd
lib
mnt
opt
proc
sbin
tmp
usr
var
/bin
/boot
/dev
/etc
/home
/initrd
/lib 46
/mnt
/opt
/proc
/root
/sbin
/tmp
/usr
/var
(swap)
(tty)
JavaScript
.bashrc
(master)
root
192
86
Rythmbox
88
CD Serpentine
90
Inkscape 95
CD
90
vi
126, 185
62
Evolution
76
Firefox
80
80
50
80
Ekiga
84
, $
170
102
15
94
,
26
49
,
32, 34
,
36
,
30
73
(FTP)
156
10, 47, 98
BIOS
( /)
19
45
138
70
,
, < >
, |
, \
,
, ;
, Ctrl+C
,
SIP
33
12
136, 170
124, 163, 170
170
170
170
98, 141
170
84
84
root
44, 49
100
44
89
49
17
22
, Ctrl+D
OpenOffice
index
length
substr
,
ext3
17
170
19
8
117
134
120
82
164
164
164
117
29, 54
46
32
48
\
,
164
119
35
12
, ~
, ..
110, 170
110
148
, , , .
; ,
.
, ,
.
Linux .
,
.
Linux,
.
OpenOffice
, , .
Linux
,
, Linux.
LINUX
m i k e
m c g r a t h
Linux
,
.
COMPUTER
steps
,
.
Computer Active
20