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

« back to all changes in this revision

Viewing changes to docs/basic-concepts/C/basic-concepts.xml

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2009-09-02 01:48:34 UTC
  • Revision ID: james.westby@ubuntu.com-20090902014834-w57dbgyooz6hn4sb
Tags: 9.10.1
* Initial release of the Karmic documentation, fixes a bunch of bugs:
  - Default package manager has to be changed (LP: #353327)
  - Link fails in doc index for viewing Windows partition (LP: #367224)
  - Application Launcher instructions confusing (LP: #367256)
  - Konversation still listed as default IRC client (LP: #353377)
  - Office section listed OpenOffice.org version 2 (LP: #353381)
  - kdesu in printing section (LP: #354000)
  - string error in network section (LP: #355975)
  - hyperlinks on index page were messed up (LP: #367243)
  - Typo in internet section (LP: #416715)
  - Reference to feisty in add-applications (LP: #385026)
  - Typo (LP: #413695)
  - Two printer configurator (LP: #417150)
  - Pringing section listed System Settings in Favorites (LP: #417177)
  - Firefox bookmark handling UI changed (LP: #416502)
  - Ugly hyperlinks and then some in Konqueror (LP: #367243)
* debian/rules:
  - commented out translations section until final release
  - changed khelpdesktop location to fix FTBFS
  - removed index-table.css as it isn't used anymore
  - removed libs/*.html for contribs and legal as it isn't needed anymore
  - changed basic-concepts to basic-commands
  - changed programming to development
* debian/compat: bumped to 7 for debhelper
* debian/control: bumped to 7 for debhelper, 3.8.3 for standards, added
  shlibs and misc depends
* debian/kubuntu-systemdocs: removed (temporarily?)
* debian/source.lintian-overrides: removed, not needed anymore
* debian/postinst: removed, replaced with kubuntu-docs.links
* debian/prerm: removed, not needed anymore
* debian/kubuntu-docs.links: added to link css and kubuntu index file

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 % cdo-C SYSTEM "../../../libs/cdo-C.ent">
7
 
%cdo-C;
8
 
<!ENTITY % kde SYSTEM "../../../libs/kde.ent">
9
 
%kde;
10
 
<!ENTITY % kde-menus-C SYSTEM "../../../libs/kde-menus-C.ent">
11
 
%kde-menus-C;
12
 
<!ENTITY % kde-general SYSTEM
13
 
"/usr/share/apps/ksgmltools2/customization/obsolete/general.entities">
14
 
%kde-general;
15
 
<!ENTITY % xinclude SYSTEM "../../../libs/xinclude.mod">
16
 
%xinclude;
17
 
<!ENTITY language "en">
18
 
]>
19
 
<article id="basic-concepts" status="complete">
20
 
<articleinfo>
21
 
<title>Basic Concepts</title>
22
 
&klegalnotice;
23
 
<abstract>
24
 
<para>
25
 
This chapter introduces you to basic concepts which are useful when getting
26
 
started with a Kubuntu system.
27
 
</para>
28
 
</abstract>
29
 
</articleinfo>
30
 
 
31
 
<!-- DIRECTORIES AND FILE SYSTEMS -->
32
 
<sect1 id="directories-file-systems" status="complete">
33
 
<title>Directories and File Systems</title>
34
 
 
35
 
<para>
36
 
In Linux and Unix everything is a file. Directories are files, files are files,
37
 
and devices are files. Devices are usually referred to as nodes; however, they
38
 
are still files.
39
 
</para>
40
 
 
41
 
<para>
42
 
Linux and Unix file systems are organized in a hierarchical, tree-like
43
 
structure.  The highest level of the file system is the <filename>/</filename>
44
 
or root directory.  All other files and directories exist under the root
45
 
directory.  For example, <filename>/home/konqi/kubuntu.odt</filename> shows
46
 
the correct full path, or absolute path, to the <filename>kubuntu.odt</filename>
47
 
file that exists in the <filename>konqi</filename> directory, which is under
48
 
the <filename>home</filename> directory, which in turn is under the root
49
 
(<filename>/</filename>) directory.
50
 
</para>
51
 
 
52
 
<para>
53
 
Underneath the root (<filename>/</filename>) directory is a set of important
54
 
directories common to most Linux distributions.  The following is a listing of
55
 
common directories that are directly under the root (<filename>/</filename>)
56
 
directory:
57
 
</para>
58
 
 
59
 
<variablelist>
60
 
<varlistentry><term><filename>/bin</filename></term>
61
 
<listitem>
62
 
<para>
63
 
Important commands, which historically have been <emphasis>bin</emphasis>ary,
64
 
but may also be shell scripts.
65
 
</para>
66
 
</listitem>
67
 
</varlistentry>
68
 
 
69
 
<varlistentry><term><filename>/boot</filename></term>
70
 
<listitem>
71
 
<para>
72
 
<emphasis>Boot</emphasis> configuration files, kernels, and other files needed
73
 
at <emphasis>boot</emphasis> time.
74
 
</para>
75
 
</listitem>
76
 
</varlistentry>
77
 
 
78
 
<varlistentry><term><filename>/dev</filename></term>
79
 
<listitem>
80
 
<para>
81
 
The <emphasis>dev</emphasis>ice files.
82
 
</para>
83
 
</listitem>
84
 
</varlistentry>
85
 
 
86
 
<varlistentry><term><filename>/etc</filename></term>
87
 
<listitem>
88
 
<para>
89
 
Configuration files, startup scripts, <emphasis>etc</emphasis>.
90
 
</para>
91
 
</listitem>
92
 
</varlistentry>
93
 
 
94
 
<varlistentry><term><filename>/home</filename></term>
95
 
<listitem>
96
 
<para>
97
 
<emphasis>Home</emphasis> directories for different users.
98
 
</para>
99
 
</listitem>
100
 
</varlistentry>
101
 
 
102
 
<varlistentry><term><filename>/initrd</filename></term>
103
 
<listitem>
104
 
<para>
105
 
Used when creating a customized <emphasis>init</emphasis>ial
106
 
<emphasis>R</emphasis>AM <emphasis>D</emphasis>isk.
107
 
</para>
108
 
</listitem>
109
 
</varlistentry>
110
 
 
111
 
<varlistentry><term><filename>/lib</filename></term>
112
 
<listitem>
113
 
<para>
114
 
System <emphasis>lib</emphasis>raries.
115
 
</para>
116
 
</listitem>
117
 
</varlistentry>
118
 
 
119
 
<varlistentry><term><filename>/lost+found</filename></term>
120
 
<listitem>
121
 
<para>
122
 
Provides a <emphasis>lost+found</emphasis> system for files that exist under the
123
 
root (<filename>/</filename>) directory.
124
 
</para>
125
 
</listitem>
126
 
</varlistentry>
127
 
 
128
 
<varlistentry><term><filename>/media</filename></term>
129
 
<listitem>
130
 
<para>
131
 
Automatically mounted (loaded) removable <emphasis>media</emphasis> such as CDs,
132
 
digital cameras, etc.
133
 
</para>
134
 
</listitem>
135
 
</varlistentry>
136
 
 
137
 
<varlistentry><term><filename>/mnt</filename></term>
138
 
<listitem>
139
 
<para>
140
 
Manually <emphasis>m</emphasis>ou<emphasis>nt</emphasis>ed filesystems on your
141
 
hard drive.
142
 
</para>
143
 
</listitem>
144
 
</varlistentry>
145
 
 
146
 
<varlistentry><term><filename>/opt</filename></term>
147
 
 
148
 
<listitem>
149
 
<para>
150
 
Provides a location for <emphasis>opt</emphasis>ional (3rd party) applications
151
 
to be installed; these are usually statically compiled and can be used in other
152
 
versions or Linux distributions.
153
 
</para>
154
 
</listitem>
155
 
</varlistentry>
156
 
 
157
 
<varlistentry><term><filename>/proc</filename></term>
158
 
<listitem>
159
 
<para>
160
 
Special dynamic directory that maintains information about the state of the
161
 
system, including currently running <emphasis>proc</emphasis>esses.
162
 
</para>
163
 
</listitem>
164
 
</varlistentry>
165
 
 
166
 
<varlistentry><term><filename>/root</filename></term>
167
 
<listitem>
168
 
<para>
169
 
<emphasis>Root</emphasis> user's home directory, pronounced
170
 
&quot;slash-root&quot;.
171
 
</para>
172
 
</listitem>
173
 
</varlistentry>
174
 
 
175
 
<varlistentry><term><filename>/sbin</filename></term>
176
 
 
177
 
<listitem>
178
 
<para>
179
 
Important <emphasis>s</emphasis>ystem <emphasis>bin</emphasis>aries and scripts,
180
 
usually intended to be run as the root user.
181
 
</para>
182
 
</listitem>
183
 
</varlistentry>
184
 
 
185
 
<varlistentry><term><filename>/srv</filename></term>
186
 
<listitem>
187
 
<para>
188
 
Can contain files that are <emphasis>s</emphasis>e<emphasis>rv</emphasis>ed to
189
 
other systems.
190
 
</para>
191
 
</listitem>
192
 
</varlistentry>
193
 
 
194
 
<varlistentry><term><filename>/sys</filename></term>
195
 
<listitem>
196
 
<para>
197
 
Similar to the /proc filesystem, but contains <emphasis>sys</emphasis>tem
198
 
information not related to running processes.
199
 
</para>
200
 
</listitem>
201
 
</varlistentry>
202
 
 
203
 
<varlistentry><term><filename>/tmp</filename></term>
204
 
<listitem>
205
 
<para>
206
 
<emphasis>t</emphasis>e<emphasis>mp</emphasis>orary files.
207
 
</para>
208
 
</listitem>
209
 
</varlistentry>
210
 
 
211
 
<varlistentry><term><filename>/usr</filename></term>
212
 
<listitem>
213
 
<para>
214
 
Applications and read-only files that are mostly available for all
215
 
<emphasis>us</emphasis>e<emphasis>r</emphasis>s to access.
216
 
</para>
217
 
</listitem>
218
 
</varlistentry>
219
 
 
220
 
<varlistentry><term><filename>/var</filename></term>
221
 
<listitem>
222
 
<para>
223
 
<emphasis>var</emphasis>iable files such as logs and databases.
224
 
</para>
225
 
</listitem> 
226
 
</varlistentry>
227
 
</variablelist>
228
 
 
229
 
</sect1>
230
 
 
231
 
<!-- PERMISSIONS -->
232
 
<sect1 id="permissions" status="complete">
233
 
<title>Permissions</title>
234
 
 
235
 
<para>
236
 
All of the files on a Linux system have permissions that allow or prevent others
237
 
from viewing, modifying or executing them. The superuser "root" has the ability
238
 
to access any file on the system. Each file has access restrictions, user
239
 
restrictions, and an owner/group association.
240
 
</para>
241
 
 
242
 
<para>
243
 
Every file is secured by the following three layers of permissions, in order of
244
 
importance:
245
 
</para>
246
 
 
247
 
<variablelist>
248
 
<varlistentry><term>user</term>
249
 
<listitem>
250
 
<para>
251
 
Applies to the user who is the owner of the file.
252
 
</para>
253
 
</listitem>
254
 
</varlistentry>
255
 
 
256
 
<varlistentry><term>group</term>
257
 
<listitem>
258
 
<para>
259
 
Applies to the group that is associated with the file.
260
 
</para>
261
 
</listitem>
262
 
</varlistentry>
263
 
 
264
 
<varlistentry><term>other</term>
265
 
<listitem>
266
 
<para>
267
 
Applies to all other users.
268
 
</para>
269
 
</listitem>
270
 
</varlistentry>
271
 
</variablelist>
272
 
 
273
 
<para>
274
 
Inside each of the three sets of permissions are the actual permissions.  The
275
 
permissions, along with the way they apply differently to files and directories,
276
 
are outlined below:
277
 
</para>
278
 
 
279
 
<variablelist>
280
 
<varlistentry><term>read</term>
281
 
<listitem>
282
 
<para>
283
 
Files or directory contents that can be <emphasis>viewed</emphasis> only.
284
 
</para>
285
 
</listitem>
286
 
</varlistentry>
287
 
 
288
 
<varlistentry><term>write</term>
289
 
<listitem>
290
 
<para>
291
 
Files or directory contents that can be modified or deleted.
292
 
</para>
293
 
</listitem>
294
 
</varlistentry>
295
 
 
296
 
<varlistentry><term>execute</term>
297
 
<listitem>
298
 
<para>
299
 
Files that can be run as a program or directories that can be entered.
300
 
</para>
301
 
</listitem>
302
 
</varlistentry>
303
 
</variablelist>
304
 
 
305
 
<para>
306
 
To view and edit the permissions on files and directories, first open
307
 
<application>Konqueror</application> in file manager mode by selecting
308
 
<guilabel>Home Folder</guilabel> from the <guimenu>System Menu</guimenu> located
309
 
next to the <application>KMenu</application> icon in the bottom left corner of
310
 
your display. To display the dialog to allow permission editing,
311
 
<mousebutton>right</mousebutton> click on a file or directory, then select
312
 
<guimenu>Properties</guimenu>. The permissions are found under the
313
 
<guilabel>Permissions</guilabel> tab and allow for the editing of all
314
 
permission levels, if you are the owner of the file.
315
 
</para>
316
 
</sect1>
317
 
 
318
 
<!-- ROOT AND SUDO -->
319
 
<sect1 id="root-and-sudo" status="complete">
320
 
<title>Root And Sudo</title>
321
 
 
322
 
<para>
323
 
The root user in Linux is the user which has administrative access to your
324
 
system. Normal users do not have this access for security reasons. 
325
 
Kubuntu does not enable the root user. Instead, administrative access is given
326
 
to individual users, who may use the "sudo" application to perform
327
 
administrative tasks. The first user account you created on your system during
328
 
installation will, by default, have access to sudo <emphasis>s</emphasis>uper
329
 
<emphasis>u</emphasis>ser <emphasis>do</emphasis>. You can restrict and enable
330
 
sudo access to users with the <application>Users and Groups</application>
331
 
application (review the <ulink type="help"
332
 
url="help:/kubuntu/keeping-safe/">Keeping Safe</ulink> documentation for more
333
 
information).
334
 
</para>
335
 
 
336
 
<para>
337
 
When you run an application that requires root privileges, sudo will ask you to
338
 
input your normal user password. This ensures that rogue applications cannot
339
 
damage your system, and serves as a reminder that you are about to perform
340
 
administrative actions which require you to be careful!
341
 
</para>
342
 
 
343
 
<para>
344
 
To use sudo when using the command line, simply type "sudo" before the command
345
 
you wish to run. Sudo will then prompt you for your password.
346
 
</para>
347
 
 
348
 
<para>
349
 
Sudo will remember your password for a set amount of time (15 minutes by
350
 
default). This feature was designed to allow users to perform multiple
351
 
administrative tasks without being asked for a password each time.
352
 
</para>
353
 
 
354
 
<warning>
355
 
<para>
356
 
Be careful when doing administrative tasks -- you could very well damage your
357
 
system!
358
 
</para>
359
 
</warning>
360
 
 
361
 
<para>
362
 
Some other tips for using sudo:
363
 
</para>
364
 
 
365
 
<itemizedlist>
366
 
<listitem>
367
 
<para>
368
 
To use a &quot;root&quot; terminal, type "sudo -i" at the command line
369
 
</para>
370
 
</listitem>
371
 
 
372
 
<listitem>
373
 
<para>
374
 
The entire group of default graphical configuration tools in Kubuntu already
375
 
uses sudo, so you will be prompted for your password if needed using
376
 
<application>kdesu</application>, which is a graphical frontend to
377
 
<application>sudo</application>.
378
 
</para>
379
 
</listitem>
380
 
 
381
 
<listitem>
382
 
<para>
383
 
For more information on the <application>sudo</application> program and the
384
 
absence of a root user in Kubuntu, read the <ulink url="&wiki-RootSudo;">sudo
385
 
page</ulink> on the Ubuntu wiki.
386
 
</para>
387
 
</listitem>
388
 
</itemizedlist>
389
 
 
390
 
<sect2 id="run-application-root" status="complete">
391
 
<title>Start a Program Manually with Root Privileges</title>
392
 
 
393
 
<para>
394
 
Sometimes it is necessary to run a program with root privileges. This is easy to
395
 
do with the <application>Run Command</application> dialog.
396
 
</para>
397
 
 
398
 
<warning>
399
 
<para>
400
 
Be careful when doing administrative tasks -- you could very well damage your
401
 
system!
402
 
</para>
403
 
</warning>
404
 
 
405
 
<procedure>
406
 
<step>
407
 
<para>
408
 
Open the <application>Run Command</application> dialog by typing:
409
 
<keycombo>
410
 
<keycap>Alt</keycap>
411
 
<keycap>F2</keycap>
412
 
</keycombo>
413
 
</para>
414
 
</step>
415
 
 
416
 
<step>
417
 
<para>
418
 
Enter the name of the program you wish to run, <emphasis>prefixed</emphasis>
419
 
with <application>kdesu</application> and press <keycap>Enter</keycap>. For
420
 
example, to launch the file manager <application>Konqueror</application>
421
 
with root privileges, type <screen>kdesu konqueror</screen>
422
 
</para>
423
 
</step>
424
 
</procedure>
425
 
 
426
 
</sect2>
427
 
</sect1>
428
 
 
429
 
<!-- USER MANAGEMENT -->
430
 
<sect1 id="user-mgmt" status="complete">
431
 
<title>User Management</title>
432
 
 
433
 
<procedure><title>Adding a user</title>
434
 
<step>
435
 
<para>
436
 
Open <application>KUser</application>, &kde;&apos;s <guilabel>User Manager</guilabel> by going to &menukuser;.
437
 
</para>
438
 
</step>
439
 
<step>
440
 
<para>
441
 
If a dialog appears asking you for a password, enter your user password.
442
 
</para>
443
 
</step>
444
 
<step>
445
 
<para>
446
 
<mousebutton>Click</mousebutton> the <guibutton>Add</guibutton> located in the top left hand corner of the window.
447
 
</para>
448
 
</step>
449
 
<step>
450
 
<para>
451
 
Type the username for the new user.
452
 
</para>
453
 
</step>
454
 
<step>
455
 
<para>
456
 
Enter the user's details in the dialog presented to you and create a password for the new user by selecting the <guilabel>Password Management</guilabel> tab located at the top of the window.
457
 
<example><title>New User <guilabel>Details</guilabel></title>
458
 
<mediaobject>
459
 
<imageobject>
460
 
<imagedata fileref="../../images/C/adduser_details.png" format="PNG" />
461
 
</imageobject>
462
 
</mediaobject>
463
 
</example>
464
 
<example><title>New User <guilabel>Password &amp; Security</guilabel></title>
465
 
<mediaobject>
466
 
<imageobject>
467
 
<imagedata fileref="../../images/C/adduser_security.png" format="PNG" />
468
 
</imageobject>
469
 
</mediaobject>
470
 
</example>
471
 
</para>
472
 
</step>
473
 
</procedure>
474
 
 
475
 
<procedure><title>Removing a user</title>
476
 
<step>
477
 
<para>
478
 
Open <application>Kuser</application> as noted in the previous procedure for adding a user.
479
 
</para>
480
 
</step>
481
 
<step>
482
 
<para>
483
 
Highlight the user that you would like to delete.
484
 
</para>
485
 
</step>
486
 
<step>
487
 
<para>
488
 
<mousebutton>Click</mousebutton> on the <guibutton>Delete...</guibutton> button.
489
 
</para>
490
 
</step>
491
 
<step>
492
 
<para>
493
 
When prompted with the <guilabel>Delete User</guilabel> dialog, you have two options:
494
 
<itemizedlist>
495
 
<listitem>
496
 
<para>
497
 
<guilabel>Delete home folder: /home/username</guilabel> - this will remove
498
 
the user's home directory, therefor clearing up space on your hard drive. If
499
 
there is information you would like to backup, do so before deleting this
500
 
directory.
501
 
</para>
502
 
</listitem>
503
 
<listitem>
504
 
<para>
505
 
<guilabel>Delete mailbox: /var/mail/username</guilabel> - this will remove the
506
 
user's mailbox.
507
 
</para>
508
 
</listitem>
509
 
</itemizedlist>
510
 
</para>
511
 
</step>
512
 
</procedure>
513
 
 
514
 
<procedure><title>Changing a user's password</title>
515
 
<step>
516
 
<para>
517
 
Open <application>KUser</application> by going to &menukuser;.
518
 
</para>
519
 
</step>
520
 
<step>
521
 
<para>
522
 
Highlight the user whose password you would like to change.
523
 
</para>
524
 
</step>
525
 
<step>
526
 
<para>
527
 
<mousebutton>Click</mousebutton> on the <guibutton>Edit</guibutton> button if the dialog does not open immediately upon highling that user.
528
 
</para>
529
 
</step>
530
 
<step>
531
 
<para>
532
 
After the <guilabel>User Properties</guilabel> dialog has opened,
533
 
<mousebutton>click</mousebutton> the <guibutton>Set Password...</guibutton> button in the top right corner of the window. After entering in the new password, press the <guibutton>OK</guibutton> button to finish.
534
 
</para>
535
 
</step>
536
 
</procedure>
537
 
</sect1>
538
 
 
539
 
<!-- TERMINALS -->
540
 
<sect1 id="terminals" status="complete">
541
 
<title>Terminal</title>
542
 
 
543
 
<para>
544
 
Working at the command line is not as daunting a task as you would think. There
545
 
is no special knowledge needed to use the command line as it is a program like
546
 
everything else. Most things in Linux can be done using the command line.
547
 
Although there are graphical tools for most programs, sometimes they are just
548
 
not enough. This is where the command line comes in handy.
549
 
</para>
550
 
 
551
 
<para>
552
 
The terminal is often called the command prompt or the shell.  In days gone by,
553
 
this was the way the user interacted with the computer; however, Linux users
554
 
have found that the use of the shell can be quicker than a graphical method and
555
 
still holds some merit today. Here you will learn how to use the terminal.
556
 
</para>
557
 
 
558
 
<para>
559
 
The original use of the terminal was as a file browser, and indeed it is still
560
 
used as a file browser. You can use the terminal as a file browser to navigate
561
 
your files and undo the changes that have been made.
562
 
</para>
563
 
 
564
 
<sect2 id="starting-konsole" status="complete">
565
 
<title>Starting the Terminal</title>
566
 
 
567
 
<para>
568
 
The <application>Konsole</application> can be started by going to &menukonsole;.
569
 
</para>
570
 
</sect2>
571
 
 
572
 
<sect2 id="common-commands" status="complete">
573
 
<title>Common Commands</title>
574
 
 
575
 
<variablelist>
576
 
<varlistentry><term>View Directories: - ls</term>
577
 
<listitem>
578
 
<para>
579
 
The <application>ls</application> (LiSt) lists files in different colors with
580
 
full formatted text.
581
 
</para>
582
 
</listitem>
583
 
</varlistentry>
584
 
 
585
 
<varlistentry><term>Create Directories: - mkdir (directory name)</term>
586
 
<listitem>
587
 
<para>
588
 
The <application>mkdir</application> (MaKeDIRectory) command will create a
589
 
directory.
590
 
</para>
591
 
</listitem>
592
 
</varlistentry>
593
 
 
594
 
<varlistentry><term>Change Directories: - cd (/directory/location)</term>
595
 
<listitem>
596
 
<para>
597
 
The <application>cd</application> (Change Directory) command will change from
598
 
your current directory to any directory you specify.
599
 
</para>
600
 
</listitem>
601
 
</varlistentry>
602
 
 
603
 
<varlistentry><term>Copy Files/Directories: - cp (file or directory name) (to
604
 
directory or filename)</term>
605
 
<listitem>
606
 
<para>
607
 
The <application>cp</application> (CoPy) command will copy any files you
608
 
specify. The <application>cp -r</application> command will copy any directories
609
 
you specify.
610
 
</para>
611
 
</listitem>
612
 
</varlistentry>
613
 
 
614
 
<varlistentry><term>Remove Files/Directories: - rm (file or directory
615
 
name)</term>
616
 
<listitem>
617
 
<para>
618
 
The <application>rm</application> (ReMove) command will delete any filename you
619
 
specify. The <application>rm -r</application> command will remove any directory
620
 
you specify, and all its contents.
621
 
</para>
622
 
</listitem>
623
 
</varlistentry>
624
 
 
625
 
<varlistentry><term>Move/Rename Files/Directories: - mv (file or directory
626
 
name)</term>
627
 
<listitem>
628
 
<para>
629
 
The <application>mv</application> (MoVe) command will move/rename any file or
630
 
directory you specify.
631
 
</para>
632
 
</listitem>
633
 
</varlistentry>
634
 
 
635
 
<varlistentry><term>Find Files/Directories: - locate (file or directory
636
 
name)</term>
637
 
<listitem>
638
 
<para>
639
 
The <application>locate</application> command will search for any filename you
640
 
specify. It uses an index of the files on your system to work quickly. To update
641
 
this index, run the command <application>sudo updatedb</application>. This
642
 
command is run automatically each day if you leave your computer on. It needs to
643
 
be run with administrative privileges (see <xref linkend="root-and-sudo"/>).
644
 
</para>
645
 
</listitem>
646
 
</varlistentry>
647
 
</variablelist>
648
 
 
649
 
<para>
650
 
You can also use wildcards to match one or more files, such as "*" (for all
651
 
files) or "?" (to match one character).
652
 
</para>
653
 
</sect2>
654
 
 
655
 
<sect2 id="switch-to-console" status="complete">
656
 
<title>Switching to Console mode</title>
657
 
 
658
 
<para>
659
 
The usual method of command-line access in Kubuntu is to start a terminal (see
660
 
<xref linkend="starting-konsole"/> above), however sometimes it is useful to
661
 
switch to the real console:
662
 
</para>
663
 
 
664
 
<procedure>
665
 
<step>
666
 
<para>
667
 
Use the &ctrlaltf1; shortcut keys to switch to the first console.
668
 
</para>
669
 
</step>
670
 
 
671
 
<step>
672
 
<para>To switch back to Desktop mode, use the &ctrlaltf7; shortcut keys.
673
 
</para>
674
 
</step>
675
 
</procedure>
676
 
 
677
 
<note>
678
 
<para>There are six consoles available. Each one is accessible with the
679
 
shortcut keys &ctrlaltf1; to &ctrlaltf6;.
680
 
</para>
681
 
</note>
682
 
</sect2>
683
 
 
684
 
<sect2 id="disable-terminal-beep" status="complete">
685
 
<title>Disabling the beep sound in Terminal mode</title>
686
 
 
687
 
<procedure>
688
 
<step>
689
 
<para>
690
 
Start a <application>Konsole</application> session, select by going to
691
 
&menukonsole;.
692
 
</para>
693
 
</step>
694
 
 
695
 
<step>
696
 
<para>
697
 
Go to 
698
 
<menuchoice>
699
 
<guimenu>Settings</guimenu>
700
 
<guisubmenu>Bell</guisubmenu>
701
 
<guimenuitem>None</guimenuitem>
702
 
</menuchoice>
703
 
 to disable the system bell.
704
 
</para>
705
 
</step>
706
 
</procedure>
707
 
</sect2>
708
 
</sect1>
709
 
 
710
 
<!-- RESTART X SERVER -->
711
 
<sect1 id="restart-x" status="complete">
712
 
<title>Restart Kubuntu without rebooting</title>
713
 
 
714
 
<para>
715
 
Prior to your system having the ability to simply restart Kubuntu without rebooting, you will need to enable this option in <application>System Settings</application>. Go to &menusysset; and then press the <guibutton>Display</guibutton> icon. At the very bottom of the window, just above the <guibutton>Help</guibutton>, <guibutton>Defaults</guibutton>, and <guibutton>Reset</guibutton> buttons, there is a checkbox. Make sure to select the checkbox that says <guilabel>Ctrl+Alt+Backspace restarts the xserver</guilabel>. Press the <guibutton>Apply</guibutton> to apply your changes. You will have to log out and then back in prior to this option takes into effect.
716
 
</para>
717
 
 
718
 
<para>
719
 
Once you have configured your system to allow this option, to simply restart Kubuntu, or the <productname>X Window System</productname>, simply press <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>Backspace</keycap>
720
 
</keycombo>. This will take you to a blank screen momentarily and then bring
721
 
you back to the login screen (<acronym>KDM</acronym>).
722
 
</para>
723
 
</sect1>
724
 
 
725
 
<!-- TEXT EDITING -->
726
 
<sect1 id="text-editing" status="complete">
727
 
<title>Text Editing</title>
728
 
 
729
 
<para>
730
 
All of the configurations and settings in Linux are saved in text files. Even
731
 
though you most often can edit configurations through the graphical interface,
732
 
you may occasionally have to edit them by hand. <application>Kate</application>
733
 
is the default Kubuntu text editor, which can be launched by going to
734
 
&menukate;.
735
 
</para>
736
 
 
737
 
<para>
738
 
At times in this guide, <application>Kate</application> is run from the command
739
 
line using <application>kdesu</application>, as most configuration files require
740
 
root privileges to alter them. It is recommended that you also run
741
 
<application>kdesu</application> from the command line when shown in this guide.
742
 
</para>
743
 
 
744
 
<para>
745
 
If you need to use a text editor from the command line, you can use
746
 
<application>nano</application>, which is a simple to use text editor. When
747
 
running it from the command line, always use the following command, which
748
 
ensures that the editor will not introduce line breaks:<screen>nano -w</screen>
749
 
</para>
750
 
 
751
 
<para>
752
 
For more information about how to use <application>nano</application>, refer to
753
 
the <ulink url="&wiki-Nano;">guide on the wiki</ulink>.
754
 
</para>
755
 
 
756
 
<para>
757
 
There are also quite a few other terminal-based editors available in Kubuntu,
758
 
popular ones include <application>VIM</application> and
759
 
<application>Emacs</application> (the pros and cons of each are cause for much
760
 
friendly debate within the Linux community). These are often more complex to use
761
 
than <application>nano</application>, but are also more powerful.
762
 
</para>
763
 
</sect1>
764
 
 
765
 
</article>
766