Diffstat (limited to 'docs/usermanual/embeddedkonsole.sgm') (more/less context) (ignore whitespace changes)
-rw-r--r-- | docs/usermanual/embeddedkonsole.sgm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/usermanual/embeddedkonsole.sgm b/docs/usermanual/embeddedkonsole.sgm index 4ba0287..838e705 100644 --- a/docs/usermanual/embeddedkonsole.sgm +++ b/docs/usermanual/embeddedkonsole.sgm @@ -38,48 +38,50 @@ while the icon all the way on the right will paste text from the clipboard into the terminal. </para> <para> The other icons are the same as typing (from left to right) enter, space, tab (for tab completion), up, and down (for the command history). </para> </section> <section><title>Command List</title> <para> The command list is a pulldown menu with a list of commonly used commands. Selecting one will type the command into the terminal wherever the cursor is. You can edit or hide this menu from <GUIMenu>Options</GUIMenu>&arrow; <GUIMenuItem>Command List.</GUIMenuItem> </para> </section> </section> <section><title>What is a Shell</title> <para> A shell is a program that accepts input from a user, and runs commands. Each "command" in the shell is actually a separate program (unless you are using a shell like BusyBox, which makes some of the more common commands part of its own program in order to save space). Shells can actually be very powerful, and many + + of them allow you to write something called "shell scripts" which are just a sequence of commands, sometimes with some flow control statements, saved to a file and run each time the script is run. For the most part, the average user does not need to know about any of this, though. If you are running Opie on the Familiar distribution, it is advisable to install the bash shell (ipkg install bash) because it offers things like tab completion, use of the backspace key, and a command history, as well as offering a more advanced scripting languauge than most other shells. </para> </section> <section><title>Running Programs</title> <para> To run a program or a command (remember, a command is just another program), you simply type the name of the program and hit "Return" (in Linux, program names do not have a special suffix like they do in windows, in fact the "." character has no special meaning unless it is at the begining of a filename, in which case it makes the file "hidden"). When you type a program name and hit "Return" the shell looks in a special list of directories called your "path", and if it cannot find it in any of those directories, it stops looking and tells you it could not find them. If you want to run a program that is not in your path, you must specify an absolute or relative path to that program. For instance, to run a program that is in the directory you are currently in, you would type <literal>./program</literal> ("./" is a special directory that @@ -125,39 +127,39 @@ directory (usually /home/username or /root for the root user). </para> </section> <section><title>Moving Files</title> <para> To move files around, you need to use the "cp" (copy) and "mv" (move) commands. Both of these are run the same way: <userinput>command originalfile newfile</userinput>. The only difference is that cp creates a new file without touching the old one, while mv deletes the original file. The two path names can be either absolute or relative. If you only specify a directory for the destination, and no filename, it will use the filename for the original file. </para> </section> <section><title>Deleting Files</title> <para> To delete a file, run the "rm" command, and to delete a directory, run the "rmdir" command, each of them take the file to be removed as their only argument. The rmdir command requires the directory to be empty, so if you want to delete a directory that is not empty, along with all its contents, run <userinput>rm -r dir</userinput>. </para> </section> -<section><title>Linking Files</title> +<section id=symlink><title>Linking Files</title> <para> In Linux, you can have a special file called a "symbolic link" that acts just like a copy of another file, except it takes up less space. This is convinient if two applications are looking for the same file in two separate places, because the file can be in both places at once, without taking up any extra space, and any change to one is automatically applied to the other (really, there is only one file, the link is just a file pointing to the original file). This is also useful for naming applications independant of their version number. For instance, you could have a link called "application" that points to "application1.0". To create a link, use the following command: <userinput>ln -s originalfile link</userinput>. </para> </section> -</chapter>
\ No newline at end of file +</chapter> |