~ubuntu-branches/ubuntu/precise/kubuntu-docs/precise-proposed

« back to all changes in this revision

Viewing changes to docs/basics/fi/basics.xml

  • Committer: Package Import Robot
  • Author(s): David Wonderly
  • Date: 2012-04-18 11:56:36 UTC
  • Revision ID: package-import@ubuntu.com-20120418115636-43z5hjr79m9j1cuo
Tags: 12.04.0ubuntu1
12.04 updated, fixed English version.  

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3
 
    "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4
 
<!ENTITY % globalent SYSTEM "../../../libs/global.ent">
5
 
%globalent;
6
 
<!ENTITY % kde-menus-C SYSTEM "../../../libs/kde-menus-C.ent">
7
 
%kde-menus-C;
8
 
<!ENTITY language "en">
9
 
]>
10
 
<article id="basics">
11
 
<articleinfo>
12
 
<title
13
 
>The Basics of &kubuntu;</title>
14
 
&legalnotice;
15
 
<abstract>
16
 
<para
17
 
>This document introduces the basics of the &kubuntu; system, which are useful for getting started with &kubuntu;. </para>
18
 
</abstract>
19
 
</articleinfo>
20
 
 
21
 
<!-- COMMAND LINE -->
22
 
<sect1 id="cli">
23
 
<title
24
 
>Komentorivi eli pääte</title>
25
 
<para
26
 
>Please see the topic covering the <ulink type="help" url="help:/kubuntu/cli/"
27
 
>Command Line</ulink
28
 
>. </para>
29
 
</sect1>
30
 
 
31
 
<!-- FILE SYSTEM -->
32
 
<sect1 id="filesystem">
33
 
<title
34
 
>Tiedostojärjestelmä</title>
35
 
<note>
36
 
<para
37
 
>To get a complete understanding of the Linux file system, recommended reading is the <ulink url="http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/"
38
 
>Linux Filesystem Hierarchy</ulink
39
 
> documentation hosted by <ulink url="http://tldp.org/"
40
 
>The Linux Documentation Project</ulink
41
 
>. </para>
42
 
</note>
43
 
<para
44
 
>A filesystem is a method of storing and organizing files, not only in Linux but also in other computer operating systems. In Linux, most files are <quote
45
 
>regular files</quote
46
 
>, except <emphasis
47
 
>directories</emphasis
48
 
>, <emphasis
49
 
>special files</emphasis
50
 
>, <emphasis
51
 
>links</emphasis
52
 
>, <emphasis
53
 
>sockets</emphasis
54
 
>, and <emphasis
55
 
>named pipes</emphasis
56
 
>. The most common filetypes that users interact with are regular files, directories and links. </para>
57
 
<para
58
 
>Opening a terminal (in &kubuntu; this is called <application
59
 
>Konsole</application
60
 
>) and typing <screen
61
 
>ls /</screen
62
 
> brings up a list similar to the following: <screen
63
 
>bin
64
 
boot
65
 
cdrom
66
 
dev
67
 
etc
68
 
home
69
 
initrd.img
70
 
lib
71
 
lib32
72
 
lib64
73
 
lost+found
74
 
media
75
 
mnt
76
 
proc
77
 
root
78
 
sbin
79
 
selinux
80
 
srv
81
 
sys
82
 
tmp
83
 
usr
84
 
var
85
 
vmlinuz
86
 
</screen>
87
 
</para>
88
 
<note>
89
 
<para
90
 
>Oman järjestelmäsi tuloste saattaa poiketa joiltain osin tämän ohjeen esimerkkitulosteesta. </para>
91
 
</note>
92
 
<para
93
 
>Seuraavassa käydään läpi yllä olevan tulosteen tiedostoja ja hakemistoja. </para>
94
 
<variablelist
95
 
><title
96
 
>Tiedostojärjestelmän yleiskatsaus</title>
97
 
<varlistentry
98
 
><term
99
 
><filename class="directory"
100
 
>bin</filename
101
 
></term>
102
 
<listitem>
103
 
<para
104
 
>Contains terminal commands that are useful to system administrators (who have full access privileges) and to regular users (who have limited access privileges). The commands in this directory are essential to the operation of a Linux system. Some of the commands in the <filename class="directory"
105
 
>bin</filename
106
 
> directory are <command
107
 
>bash</command
108
 
>, <command
109
 
>ls</command
110
 
>, <command
111
 
>cp</command
112
 
>, and <command
113
 
>cat</command
114
 
>. </para>
115
 
</listitem>
116
 
</varlistentry>
117
 
<varlistentry
118
 
><term
119
 
><filename class="directory"
120
 
>boot</filename
121
 
></term>
122
 
<listitem>
123
 
<para
124
 
>Contains the files required for the boot process. In the case of &kubuntu;, it contains the files for the <application
125
 
>GRUB2</application
126
 
> boot-loader, master boot records, map files, and the Linux kernel. </para>
127
 
</listitem>
128
 
</varlistentry>
129
 
<varlistentry
130
 
><term
131
 
><filename class="symlink"
132
 
>cdrom</filename
133
 
></term>
134
 
<listitem>
135
 
<para
136
 
>A <abbrev
137
 
>symlink</abbrev
138
 
> or <quote
139
 
>symbolic link</quote
140
 
> to <filename class="directory"
141
 
>/media/cdrom</filename
142
 
>, which itself is a <abbrev
143
 
>symlink</abbrev
144
 
> to <filename class="directory"
145
 
>/media/cdrom0</filename
146
 
>. If a <acronym
147
 
>CD</acronym
148
 
> is placed into the <acronym
149
 
>CDROM</acronym
150
 
> drive, the contents of that CD will be available in <filename class="directory"
151
 
>/media/cdrom0</filename
152
 
> directory. </para>
153
 
</listitem>
154
 
</varlistentry>
155
 
<varlistentry
156
 
><term
157
 
><filename class="directory"
158
 
>dev</filename
159
 
></term>
160
 
<listitem>
161
 
<para
162
 
>Location of special or device files. For example, <filename class="devicefile"
163
 
>/dev/sda0</filename
164
 
> is the first partition on the hard drive. </para>
165
 
</listitem>
166
 
</varlistentry>
167
 
<varlistentry
168
 
><term
169
 
><filename class="directory"
170
 
>etc</filename
171
 
></term>
172
 
<listitem>
173
 
<para
174
 
>Contains all system-related configuration files, used to control the operation of programs. </para>
175
 
</listitem>
176
 
</varlistentry>
177
 
<varlistentry
178
 
><term
179
 
><filename class="directory"
180
 
>home</filename
181
 
></term>
182
 
<listitem>
183
 
<para
184
 
>Contains a home directory for each user on the system. A user's home directory can contain personal configuration files and files such as documents, music, video, and other user-defined directories and files. </para>
185
 
</listitem>
186
 
</varlistentry>
187
 
<varlistentry
188
 
><term
189
 
><filename class="symlink"
190
 
>initrd.img</filename
191
 
></term>
192
 
<listitem>
193
 
<para
194
 
>A <abbrev
195
 
>symlink</abbrev
196
 
> to <filename
197
 
>/boot/initrd.img-&lt;kernel version&gt;</filename
198
 
> which is required for system startup. </para>
199
 
</listitem>
200
 
</varlistentry>
201
 
<varlistentry
202
 
><term
203
 
><filename class="directory"
204
 
>lib</filename
205
 
></term>
206
 
<listitem>
207
 
<para
208
 
>Contains the kernel modules in addition to shared library images needed to boot the system and run commands. </para>
209
 
</listitem>
210
 
</varlistentry>
211
 
<varlistentry
212
 
><term
213
 
><filename class="directory"
214
 
>lib32</filename
215
 
></term>
216
 
<listitem>
217
 
<para
218
 
>Same as <filename class="directory"
219
 
>lib</filename
220
 
> above, but contains only the 32-bit versions. </para>
221
 
</listitem>
222
 
</varlistentry>
223
 
<varlistentry
224
 
><term
225
 
><filename class="symlink"
226
 
>lib64</filename
227
 
></term>
228
 
<listitem>
229
 
<para
230
 
>Same as <filename class="directory"
231
 
>lib</filename
232
 
> above, but contains only the 64-bit versions. </para>
233
 
</listitem>
234
 
</varlistentry>
235
 
<varlistentry
236
 
><term
237
 
><filename class="directory"
238
 
>lost+found</filename
239
 
></term>
240
 
<listitem>
241
 
<para
242
 
>Contains the results of any recovery operation due to an improper shutdown of the system or a system crash. </para>
243
 
</listitem>
244
 
</varlistentry>
245
 
<varlistentry
246
 
><term
247
 
><filename class="directory"
248
 
>media</filename
249
 
></term>
250
 
<listitem>
251
 
<para
252
 
>Contains the subdirectories which are used as mount points for removable media such as <acronym
253
 
>CDROM</acronym
254
 
> drives, <acronym
255
 
>USB</acronym
256
 
> disks, floppy disks. </para>
257
 
</listitem>
258
 
</varlistentry>
259
 
<varlistentry
260
 
><term
261
 
><filename class="directory"
262
 
>mnt</filename
263
 
></term>
264
 
<listitem>
265
 
<para
266
 
>Yleinen liitospiste tiedostojärjestelmille tai laitteille. Automaattisesti liitetyt laitteet liitetään tavallisesti hakemistoon <filename class="directory"
267
 
>/media</filename
268
 
>. </para>
269
 
</listitem>
270
 
</varlistentry>
271
 
<varlistentry
272
 
><term
273
 
><filename class="directory"
274
 
>opt</filename
275
 
></term>
276
 
<listitem>
277
 
<para
278
 
>Short for <quote
279
 
>optional</quote
280
 
>. This directory is used for add-on packages that are typically installed manually by the user. </para>
281
 
</listitem>
282
 
</varlistentry>
283
 
<varlistentry
284
 
><term
285
 
><filename class="directory"
286
 
>proc</filename
287
 
></term>
288
 
<listitem>
289
 
<para
290
 
>Virtual filesystem that contains runtime system information which is presented in a file-like structure. </para>
291
 
</listitem>
292
 
</varlistentry>
293
 
<varlistentry
294
 
><term
295
 
><filename class="directory"
296
 
>root</filename
297
 
></term>
298
 
<listitem>
299
 
<para
300
 
>The home directory of the system administrator known as <quote
301
 
>root</quote
302
 
>. </para>
303
 
</listitem>
304
 
</varlistentry>
305
 
<varlistentry
306
 
><term
307
 
><filename class="directory"
308
 
>sbin</filename
309
 
></term>
310
 
<listitem>
311
 
<para
312
 
>Contains programs that are essential to the working of the system, such as <command
313
 
>fdisk</command
314
 
>, <command
315
 
>ifconfig</command
316
 
>, <command
317
 
>reboot</command
318
 
>, and <command
319
 
>shutdown</command
320
 
>. </para>
321
 
</listitem>
322
 
</varlistentry>
323
 
<varlistentry
324
 
><term
325
 
><filename class="directory"
326
 
>selinux</filename
327
 
></term>
328
 
<listitem>
329
 
<para
330
 
>A pseudo-filesystem containing the commands used by the kernel subsystem for the Security-Enhanced Linux feature. </para>
331
 
</listitem>
332
 
</varlistentry>
333
 
<varlistentry
334
 
><term
335
 
><filename class="directory"
336
 
>srv</filename
337
 
></term>
338
 
<listitem>
339
 
<para
340
 
>Contains site-specific data which is served by the system. </para>
341
 
</listitem>
342
 
</varlistentry>
343
 
<varlistentry
344
 
><term
345
 
><filename class="directory"
346
 
>sys</filename
347
 
></term>
348
 
<listitem>
349
 
<para
350
 
>Contains the Linux kernel, firmware and system-related files. </para>
351
 
</listitem>
352
 
</varlistentry>
353
 
<varlistentry
354
 
><term
355
 
><filename class="directory"
356
 
>tmp</filename
357
 
></term>
358
 
<listitem>
359
 
<para
360
 
>Contains files that are required temporarily. Many programs use this directory to create lock files and for temporary storage of data. </para>
361
 
</listitem>
362
 
</varlistentry>
363
 
<varlistentry
364
 
><term
365
 
><filename class="directory"
366
 
>usr</filename
367
 
></term>
368
 
<listitem>
369
 
<para
370
 
>Contains the largest share of data on the system, including read-only user data, as well as files and programs and such as program binaries, documentation, libraries, header files, and more. </para>
371
 
</listitem>
372
 
</varlistentry>
373
 
<varlistentry
374
 
><term
375
 
><filename class="directory"
376
 
>var</filename
377
 
></term>
378
 
<listitem>
379
 
<para
380
 
>Contains variable data such as system log files, mail and printer spool directories, as well as transient and temporary files. </para>
381
 
</listitem>
382
 
</varlistentry>
383
 
<varlistentry
384
 
><term
385
 
><filename class="symlink"
386
 
>vmlinuz</filename
387
 
></term>
388
 
<listitem>
389
 
<para
390
 
>A <abbrev
391
 
>symlink</abbrev
392
 
> to a compressed executable of the Linux kernel. </para>
393
 
</listitem>
394
 
</varlistentry>
395
 
</variablelist>
396
 
</sect1>
397
 
 
398
 
<!-- USERS AND GROUPS -->
399
 
<sect1 id="users-and-groups">
400
 
<title
401
 
>Käyttäjät ja ryhmät</title>
402
 
<para
403
 
>Since Linux is a true multi-user system, the principles of both <emphasis
404
 
>users</emphasis
405
 
> and <emphasis
406
 
>groups</emphasis
407
 
> are important to the internal operation of the system, and also to the day-to-day use of the system. Linux handling of users and groups is the reason it is one of the most secure operating systems. </para>
408
 
<sect2 id="users">
409
 
<title
410
 
>Käyttäjät</title>
411
 
<para
412
 
>There are two different types of users: </para>
413
 
<itemizedlist>
414
 
<listitem>
415
 
<para
416
 
><emphasis role="strong"
417
 
>Physical Users</emphasis
418
 
> are people who use the system physically. They have user IDs which are usually unique, as well as group IDs. </para>
419
 
</listitem>
420
 
<listitem>
421
 
<para
422
 
><emphasis role="strong"
423
 
>Logical Users</emphasis
424
 
> are not tied to a person, but instead are tied to a system function that are used by applications to perform specific tasks. Daemons, mail, news are examples of logical users. </para>
425
 
</listitem>
426
 
</itemizedlist>
427
 
</sect2>
428
 
<sect2 id="groups">
429
 
<title
430
 
>Ryhmät</title>
431
 
<para
432
 
>Groups are logical expressions of organization. They tie users together and provide group-based, rather than user-based permissions. Common groups include <emphasis
433
 
>admin</emphasis
434
 
>, <emphasis
435
 
>audio</emphasis
436
 
>, <emphasis
437
 
>mail</emphasis
438
 
>. </para>
439
 
</sect2>
440
 
</sect1>
441
 
 
442
 
<!-- PERMISSIONS -->
443
 
<sect1 id="permissions">
444
 
<title
445
 
>Käyttöoikeudet</title>
446
 
<para
447
 
>In a multi-user environment, security of user and system data is important. Linux has three specific, or distinct, classes: </para>
448
 
<itemizedlist>
449
 
<listitem>
450
 
<para
451
 
><emphasis role="strong"
452
 
>r</emphasis
453
 
> - <emphasis
454
 
>read</emphasis
455
 
> permission which grants the ability to read a file. </para>
456
 
</listitem>
457
 
<listitem>
458
 
<para
459
 
><emphasis role="strong"
460
 
>w</emphasis
461
 
> - <emphasis
462
 
>write</emphasis
463
 
> permission which grants the ability to modify a file. </para>
464
 
</listitem>
465
 
<listitem>
466
 
<para
467
 
><emphasis role="strong"
468
 
>x</emphasis
469
 
> - <emphasis
470
 
>execute</emphasis
471
 
> permission which grants the ability to execute a file. </para>
472
 
</listitem>
473
 
</itemizedlist>
474
 
<para
475
 
>The list above shows the symbolic notation of each permission in <emphasis role="strong"
476
 
>bold</emphasis
477
 
> text. Each permission also has an octal notation: </para>
478
 
<itemizedlist>
479
 
<listitem>
480
 
<para
481
 
><emphasis role="strong"
482
 
>r</emphasis
483
 
> - <emphasis
484
 
>4</emphasis
485
 
> </para>
486
 
</listitem>
487
 
<listitem>
488
 
<para
489
 
><emphasis role="strong"
490
 
>w</emphasis
491
 
> - <emphasis
492
 
>2</emphasis
493
 
> </para>
494
 
</listitem>
495
 
<listitem>
496
 
<para
497
 
><emphasis role="strong"
498
 
>x</emphasis
499
 
> - <emphasis
500
 
>1</emphasis
501
 
> </para>
502
 
</listitem>
503
 
</itemizedlist>
504
 
<sect2 id="example">
505
 
<title
506
 
>Esimerkki käyttöoikeuksista</title>
507
 
<para
508
 
>To view permissions, type <screen
509
 
>ls -l ~/</screen
510
 
> which will output a list of the directories and files in the current user's home directory. For example: <screen
511
 
>
512
 
drwxr-xr-x 2 username usergroup 4096 2009-12-17 11:10 Documents
513
 
</screen
514
 
> The first column, which contains <emphasis role="strong"
515
 
>drwxr-xr-x</emphasis
516
 
>, can be interpreted as follows: </para>
517
 
<informaltable>
518
 
<tgroup cols="4">
519
 
<colspec colname="col_0"/>
520
 
<colspec colname="col_1"/>
521
 
<colspec colname="col_2"/>
522
 
<colspec colname="col_3"/>
523
 
<thead>
524
 
<row>
525
 
<entry
526
 
>Tiedostotyyppi</entry>
527
 
<entry
528
 
>Käyttäjäoikeudet</entry>
529
 
<entry
530
 
>Ryhmäoikeudet</entry>
531
 
<entry
532
 
>Muiden oikeudet</entry>
533
 
</row>
534
 
</thead>
535
 
<tbody>
536
 
<row>
537
 
<entry
538
 
><emphasis role="strong"
539
 
>d</emphasis
540
 
> - <emphasis
541
 
>directory</emphasis
542
 
> </entry>
543
 
<entry
544
 
><emphasis role="strong"
545
 
>rwx</emphasis
546
 
> - <emphasis
547
 
>read</emphasis
548
 
>, <emphasis
549
 
>write</emphasis
550
 
> and <emphasis
551
 
>execute</emphasis
552
 
> permissions for the user. </entry>
553
 
<entry
554
 
><emphasis role="strong"
555
 
>r-x</emphasis
556
 
> - <emphasis
557
 
>read</emphasis
558
 
> and <emphasis
559
 
>execute</emphasis
560
 
> permissions for the group. </entry>
561
 
<entry
562
 
><emphasis role="strong"
563
 
>r-x</emphasis
564
 
> - <emphasis
565
 
>read</emphasis
566
 
> and <emphasis
567
 
>execute</emphasis
568
 
> permissions for all others. </entry>
569
 
</row>
570
 
</tbody>
571
 
</tgroup>
572
 
</informaltable>
573
 
</sect2>
574
 
<sect2 id="octal-symbolic-summary">
575
 
<title
576
 
>Octal to Symbolic Summary</title>
577
 
<informaltable>
578
 
<tgroup cols="3">
579
 
<thead>
580
 
<row>
581
 
<entry
582
 
>Oktaali</entry>
583
 
<entry
584
 
>Symbolic</entry>
585
 
<entry
586
 
>Kuvaus</entry>
587
 
</row>
588
 
</thead>
589
 
<tbody>
590
 
<row>
591
 
<entry
592
 
>0</entry>
593
 
<entry
594
 
>---</entry>
595
 
<entry
596
 
>Ei oikeuksia</entry>
597
 
</row>
598
 
<row>
599
 
<entry
600
 
>1</entry>
601
 
<entry
602
 
>--x</entry>
603
 
<entry
604
 
>Execute only</entry>
605
 
</row>
606
 
<row>
607
 
<entry
608
 
>2</entry>
609
 
<entry
610
 
>-w-</entry>
611
 
<entry
612
 
>Vain kirjoitus</entry>
613
 
</row>
614
 
<row>
615
 
<entry
616
 
>3 (2+1)</entry>
617
 
<entry
618
 
>-wx</entry>
619
 
<entry
620
 
>Write and Execute</entry>
621
 
</row>
622
 
<row>
623
 
<entry
624
 
>4</entry>
625
 
<entry
626
 
>r--</entry>
627
 
<entry
628
 
>Vain luku</entry>
629
 
</row>
630
 
<row>
631
 
<entry
632
 
>5 (4+1)</entry>
633
 
<entry
634
 
>r-x</entry>
635
 
<entry
636
 
>Read and Execute</entry>
637
 
</row>
638
 
<row>
639
 
<entry
640
 
>6 (4+2)</entry>
641
 
<entry
642
 
>rw-</entry>
643
 
<entry
644
 
>Read and Write</entry>
645
 
</row>
646
 
<row>
647
 
<entry
648
 
>7 (4+2+1)</entry>
649
 
<entry
650
 
>rwx</entry>
651
 
<entry
652
 
>Read, Write, and Execute</entry>
653
 
</row>
654
 
</tbody>
655
 
</tgroup>
656
 
</informaltable>
657
 
</sect2>
658
 
</sect1>
659
 
 
660
 
<!-- PROCESSES -->
661
 
<sect1 id="processes">
662
 
<title
663
 
>Prosessit</title>
664
 
<para
665
 
>Processes are instances of computer programs that are running. Next to files, processes are the second most important part of the Linux system. </para>
666
 
<variablelist
667
 
><title
668
 
>Viewing Processes in &kubuntu;</title>
669
 
<varlistentry
670
 
><term
671
 
>Järjestelmän toiminnot</term>
672
 
<listitem>
673
 
<para
674
 
><keycombo
675
 
><keycap
676
 
>Ctrl</keycap
677
 
><keycap
678
 
>Esc</keycap
679
 
></keycombo
680
 
> - Starts &kde;&apos; <application
681
 
>s System Activity</application
682
 
> dialog where processes can be viewed and killed. </para>
683
 
</listitem>
684
 
</varlistentry>
685
 
<varlistentry
686
 
><term
687
 
>Komentorivi</term>
688
 
<listitem>
689
 
<para
690
 
><command
691
 
>ps</command
692
 
> - Open <application
693
 
>Konsole</application
694
 
> by going to &menukonsole; and type: <screen
695
 
>ps</screen>
696
 
</para>
697
 
</listitem>
698
 
</varlistentry>
699
 
</variablelist>
700
 
</sect1>
701
 
 
702
 
</article>
703
 
<!--
704
 
Local Variables:
705
 
mode: xml
706
 
sgml-minimize-attributes:nil
707
 
sgml-general-insert-case:lower
708
 
sgml-indent-step:0
709
 
sgml-indent-data:nil
710
 
End:
711
 
 
712
 
vim: tabstop=2:shiftwidth=2:expandtab:indentexpr=:tw=80:
713
 
kate: space-indent on; indent-width 2; tab-width 2; indent-mode none;
714
 
-->