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">
6
<!ENTITY % kde-menus-C SYSTEM "../../../libs/kde-menus-C.ent">
8
<!ENTITY language "en">
13
>The Basics of &kubuntu;</title>
17
>This document introduces the basics of the &kubuntu; system, which are useful for getting started with &kubuntu;. </para>
24
>Command Line or Terminal</title>
26
>Please see the topic covering the <ulink type="help" url="help:/kubuntu/cli/"
32
<sect1 id="filesystem">
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
44
>A filesystem is a method of storing and organising files, not only in Linux but also in other computer operating systems. In Linux, most files are <quote
47
>directories</emphasis
49
>special files</emphasis
55
>named pipes</emphasis
56
>. The most common filetypes that users interact with are regular files, directories and links. </para>
58
>Opening a terminal (in &kubuntu; this is called <application
62
> brings up a list similar to the following: <screen
90
>Not all lists will look exactly like the one above. </para>
93
>The following is an overview of the files or directories listed above. </para>
96
>Filesystem Overview</title>
99
><filename class="directory"
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"
106
> directory are <command
119
><filename class="directory"
124
>Contains the files required for the boot process. In the case of &kubuntu;, it contains the files for the <application
126
> boot-loader, master boot records, map files, and the Linux kernel. </para>
131
><filename class="symlink"
139
>symbolic link</quote
140
> to <filename class="directory"
141
>/media/cdrom</filename
142
>, which itself is a <abbrev
144
> to <filename class="directory"
145
>/media/cdrom0</filename
148
> is placed into the <acronym
150
> drive, the contents of that CD will be available in <filename class="directory"
151
>/media/cdrom0</filename
157
><filename class="directory"
162
>Location of special or device files. For example, <filename class="devicefile"
164
> is the first partition on the hard drive. </para>
169
><filename class="directory"
174
>Contains all system-related configuration files, used to control the operation of programs. </para>
179
><filename class="directory"
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>
189
><filename class="symlink"
190
>initrd.img</filename
197
>/boot/initrd.img-<kernel version></filename
198
> which is required for system startup. </para>
203
><filename class="directory"
208
>Contains the kernel modules in addition to shared library images needed to boot the system and run commands. </para>
213
><filename class="directory"
218
>Same as <filename class="directory"
220
> above, but contains only the 32-bit versions. </para>
225
><filename class="symlink"
230
>Same as <filename class="directory"
232
> above, but contains only the 64-bit versions. </para>
237
><filename class="directory"
238
>lost+found</filename
242
>Contains the results of any recovery operation due to an improper shutdown of the system or a system crash. </para>
247
><filename class="directory"
252
>Contains the subdirectories which are used as mount points for removable media such as <acronym
256
> disks, floppy disks. </para>
261
><filename class="directory"
266
>Generic mount point for filesystems or devices. In most cases, <filename class="directory"
268
> is where most devices will be automounted. </para>
273
><filename class="directory"
280
>. This directory is used for add-on packages that are typically installed manually by the user. </para>
285
><filename class="directory"
290
>Virtual filesystem that contains runtime system information which is presented in a file-like structure. </para>
295
><filename class="directory"
300
>The home directory of the system administrator known as <quote
307
><filename class="directory"
312
>Contains programs that are essential to the working of the system, such as <command
325
><filename class="directory"
330
>A pseudo-filesystem containing the commands used by the kernel subsystem for the Security-Enhanced Linux feature. </para>
335
><filename class="directory"
340
>Contains site-specific data which is served by the system. </para>
345
><filename class="directory"
350
>Contains the Linux kernel, firmware and system-related files. </para>
355
><filename class="directory"
360
>Contains files that are required temporarily. Many programs use this directory to create lock files and for temporary storage of data. </para>
365
><filename class="directory"
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>
375
><filename class="directory"
380
>Contains variable data such as system log files, mail and printer spool directories, as well as transient and temporary files. </para>
385
><filename class="symlink"
392
> to a compressed executable of the Linux kernel. </para>
398
<!-- USERS AND GROUPS -->
399
<sect1 id="users-and-groups">
401
>Users and Groups</title>
403
>Since Linux is a true multi-user system, the principles of both <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>
412
>There are two different types of users: </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>
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>
432
>Groups are logical expressions of organisation. They tie users together and provide group-based, rather than user-based permissions. Common groups include <emphasis
443
<sect1 id="permissions">
447
>In a multi-user environment, security of user and system data is important. Linux has three specific, or distinct, classes: </para>
451
><emphasis role="strong"
455
> permission which grants the ability to read a file. </para>
459
><emphasis role="strong"
463
> permission which grants the ability to modify a file. </para>
467
><emphasis role="strong"
471
> permission which grants the ability to execute a file. </para>
475
>The list above shows the symbolic notation of each permission in <emphasis role="strong"
477
> text. Each permission also has an octal notation: </para>
481
><emphasis role="strong"
489
><emphasis role="strong"
497
><emphasis role="strong"
506
>Permissions Example</title>
508
>To view permissions, type <screen
510
> which will output a list of the directories and files in the current user's home directory. For example: <screen>
511
drwxr-xr-x 2 username usergroup 4096 2009-12-17 11:10 Documents
513
> The first column, which contains <emphasis role="strong"
514
>drwxr-xr-x</emphasis
515
>, can be interpreted as follows: </para>
518
<colspec colname="col_0"/>
519
<colspec colname="col_1"/>
520
<colspec colname="col_2"/>
521
<colspec colname="col_3"/>
527
>User Permissions</entry>
529
>Group Permissions</entry>
531
>Others Permissions</entry>
537
><emphasis role="strong"
543
><emphasis role="strong"
551
> permissions for the user. </entry>
553
><emphasis role="strong"
559
> permissions for the group. </entry>
561
><emphasis role="strong"
567
> permissions for all others. </entry>
573
<sect2 id="octal-symbolic-summary">
575
>Octal to Symbolic Summary</title>
595
>No permissions</entry>
603
>Execute only</entry>
619
>Write and Execute</entry>
635
>Read and Execute</entry>
643
>Read and Write</entry>
651
>Read, Write, and Execute</entry>
660
<sect1 id="processes">
664
>Processes are instances of computer programs that are running. Next to files, processes are the second most important part of the Linux system. </para>
667
>Viewing Processes in &kubuntu;</title>
670
>System Activity</term>
679
> - Starts &kde;' <application
680
>s System Activity</application
681
> dialog where processes can be viewed and killed. </para>
691
> - Open <application
692
>Konsole</application
693
> by going to &menukonsole; and type: <screen
705
sgml-minimize-attributes:nil
706
sgml-general-insert-case:lower
711
vim: tabstop=2:shiftwidth=2:expandtab:indentexpr=:tw=80:
712
kate: space-indent on; indent-width 2; tab-width 2; indent-mode none;