![]() |
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
![]() |
To access the contents, click the chapter and section titles.
Complete Idiot's Guide to Linux
File NamingYou can name a file nearly anything you like. However, there are a few restrictions youll need to observe. The new filename cannot be in use by another file in the same directory. If this is the case, the existing file will be replaced with the new file. Filenames are case sensitive; in other words, Linux considers introduction.txt and Introduction.txt to be different files. Certain characterssuch as the asterisk (*), question mark (?), ampersand (&), vertical bar (|), circumflex (^), double quote (), and apostrophe ()should never be used, as these characters are special to the shell. Characters such as the dash (-) and spaces should not be used because they will be hard to work with and delete when using a shell. The dash is used to specify program arguments. Some tools will not run properly when the name of a file begins with a dash, as the tools will behave as though you are specifying arguments instead of a filename. The space will make the shell think that you are specifying two different files (surround such names with quotes to access them from a shell). You should avoid these characters even if you only intend to work through KDE or another graphical environment. Filenames will typically have an extension that indicates what type the file is. This extension is important because it tells KFM what application to use when opening the file by clicking on it. Some common file types follow:
Saving Changes to Your DocumentsIf you modify a file after you create it, youll need to save it again to store the new modifications. For this purpose, you use the Save command under the applications File menu. You should save your files often during your work session to protect your work from being lost due to a program bug or power failure. Saving a New VersionMany times while creating documents, its easier to create a new document based on an existing one. You can reuse and modify an existing document while still maintaining the old document by using the Save As command to save the document to a different file. You can also use the Save As command to create different versions of your document. This way, you can revert to a previous version of your edits. Text Editing BasicsBesides typing, there are a few editing basics that you should learn in order to work more effectively with the computer. Keep in mind that some of the actions described here wont work on all applications. Most text editing works on the premise of a selection. A selection is text that has been highlighted by clicking and dragging. Normally when you highlight text, it is because it will be the target for other commands. Read on for more details on selecting text. Selecting TextTo select text, click the cursor where youd like to begin the selection and drag the mouse where you want to end the selection (see the next figure). The highlighted area is the selection. You can apply formatting and editing commands to the current selection.
Some applications let you define a selection by clicking where youd like to begin the selection and then Shift+clicking where youd like to end it. To select a word, you can double-click the mouse while the cursor is over a word. Some applications allow you to select a sentence if you triple-click over it, and some even allow you to select an entire paragraph if you click your mouse four times over the paragraph. Copying and Moving TextThe commands to copy and move text in your document are in the Edit menu. To copy text from your document, select the text and choose the Copy command (see the following figure).
To move text, first select the text and then choose Cut from the Edit menu. Then click your mouse where you want to place the information and choose Paste from the Edit menu. Paste will insert text that you copied or cut. You can even use this technique to move text between applications.
Text and information that you move in this way is placed in the clipboard. The clipboard is shared between running applications. This means that a selection you copy or move from one application can be inserted into another open application. Although this is true for most applications, some not-so-friendly applications dont make their clipboard available to the rest of the system.
|
![]() |
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |