author | spiralman <spiralman> | 2002-07-28 19:14:13 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-07-28 19:14:13 (UTC) |
commit | 3cf3093654579932750fe82afa4504dbef96b937 (patch) (unidiff) | |
tree | a60cf10ae92038b2b9fa5cfaeff37303632a03d9 /docs/usermanual/embeddedkonsole.sgm | |
parent | 46e20578c1cf19a964d7f4591eaebb879c6f20f5 (diff) | |
download | opie-3cf3093654579932750fe82afa4504dbef96b937.zip opie-3cf3093654579932750fe82afa4504dbef96b937.tar.gz opie-3cf3093654579932750fe82afa4504dbef96b937.tar.bz2 |
moved each chapter to a separate file.
Diffstat (limited to 'docs/usermanual/embeddedkonsole.sgm') (more/less context) (ignore whitespace changes)
-rw-r--r-- | docs/usermanual/embeddedkonsole.sgm | 163 |
1 files changed, 163 insertions, 0 deletions
diff --git a/docs/usermanual/embeddedkonsole.sgm b/docs/usermanual/embeddedkonsole.sgm new file mode 100644 index 0000000..4ba0287 --- a/dev/null +++ b/docs/usermanual/embeddedkonsole.sgm | |||
@@ -0,0 +1,163 @@ | |||
1 | <chapter><title>Embedded Konsole</title> | ||
2 | <para> | ||
3 | EmbeddedKonsole is Opie's terminal emulator. From here you can do pretty much | ||
4 | anything (since Linux is actually a command line based OS by itself). I will | ||
5 | not go into much detail on using the linux command line, as that is covered in | ||
6 | many other places (http://www.tldp.org is a good place to start, or read | ||
7 | O'Reilly's <citation>Running Linux</citation> for a comprehensive look at Linux | ||
8 | for the beginner). I will, however, give a quick overview of using a Linux | ||
9 | shell. | ||
10 | </para> | ||
11 | |||
12 | <section><title>Using Embedded Konsole</title> | ||
13 | <para> | ||
14 | Along the top of the window is a row of menus and icons. The "Font" menu lets | ||
15 | you select the font size that you want the console to use, while the Options | ||
16 | menu lets you select various options. Below this row of menus and icons is a | ||
17 | pulldown list with various common commands in it. | ||
18 | </para> | ||
19 | |||
20 | <section><title>Options Menu</title> | ||
21 | <para> | ||
22 | The first submenu in the options menu is the "Command List" menu, which lets | ||
23 | you edit or hide the command list pulldown. The "Tabs on top" or "Tabs on | ||
24 | bottom" (depending on which is currently enabled) allows you to select where | ||
25 | the tabs representing multiple terminal sessions are drawn. The "Colors" | ||
26 | submenu lets you select from a color scheme, or make your own, and the "Scroll | ||
27 | Bar" submenu lets you select where or if the scroll bar is drawn. | ||
28 | </para> | ||
29 | </section> | ||
30 | <section><title>Icons</title> | ||
31 | <para> | ||
32 | The row of icons to the right of the menus allows you to type common keystrokes | ||
33 | without having an input method visible, as well as some other things. | ||
34 | </para> | ||
35 | <para> | ||
36 | The icon all the way on the left will open a new terminal session in a new tab, | ||
37 | while the icon all the way on the right will paste text from the clipboard into | ||
38 | the terminal. | ||
39 | </para> | ||
40 | <para> | ||
41 | The other icons are the same as typing (from left to right) enter, space, tab | ||
42 | (for tab completion), up, and down (for the command history). | ||
43 | </para> | ||
44 | </section> | ||
45 | <section><title>Command List</title> | ||
46 | <para> | ||
47 | The command list is a pulldown menu with a list of commonly used commands. | ||
48 | Selecting one will type the command into the terminal wherever the cursor is. | ||
49 | You can edit or hide this menu from <GUIMenu>Options</GUIMenu>&arrow; | ||
50 | <GUIMenuItem>Command List.</GUIMenuItem> | ||
51 | </para> | ||
52 | </section> | ||
53 | </section> | ||
54 | |||
55 | <section><title>What is a Shell</title> | ||
56 | <para> | ||
57 | A shell is a program that accepts input from a user, and runs commands. Each | ||
58 | "command" in the shell is actually a separate program (unless you are using a | ||
59 | shell like BusyBox, which makes some of the more common commands part of its own | ||
60 | program in order to save space). Shells can actually be very powerful, and many | ||
61 | |||
62 | of them allow you to write something called "shell scripts" which are just a | ||
63 | sequence of commands, sometimes with some flow control statements, saved to a | ||
64 | file and run each time the script is run. For the most part, the average user | ||
65 | does not need to know about any of this, though. If you are running Opie on the | ||
66 | Familiar distribution, it is advisable to install the bash shell (ipkg install | ||
67 | bash) because it offers things like tab completion, use of the backspace key, | ||
68 | and a command history, as well as offering a more advanced scripting languauge | ||
69 | than most other shells. | ||
70 | </para> | ||
71 | </section> | ||
72 | |||
73 | <section><title>Running Programs</title> | ||
74 | <para> | ||
75 | To run a program or a command (remember, a command is just another program), you | ||
76 | simply type the name of the program and hit "Return" (in Linux, program names | ||
77 | do not have a special suffix like they do in windows, in fact the "." | ||
78 | character has no special meaning unless it is at the begining of a filename, in | ||
79 | which case it makes the file "hidden"). When you type a program name and hit | ||
80 | "Return" the shell looks in a special list of directories called your | ||
81 | "path", and if it cannot find it in any of those directories, it stops looking | ||
82 | and tells you it could not find them. If you want to run a program that is not | ||
83 | in your path, you must specify an absolute or relative path to that program. | ||
84 | For instance, to run a program that is in the directory you are currently in, | ||
85 | you would type <literal>./program</literal> ("./" is a special directory that | ||
86 | is explained below), or to run a program in /home/username/ you would call | ||
87 | <literal>/home/username/program</literal>. | ||
88 | </para> | ||
89 | <para> | ||
90 | Most programs take "arguments" when run from the command line. An argument is | ||
91 | a string that contains no spaces that changes how the program behaves (a text | ||
92 | editor, for instance, might take a single argument, which would be the name of | ||
93 | the file you wish to edit). Usually, you can use the arguments "-h" or | ||
94 | "--help" to get a list of the common arguments that that program takes, along | ||
95 | with a short usage description, and a short description of what each argument | ||
96 | does. | ||
97 | </para> | ||
98 | </section> | ||
99 | |||
100 | <section><title>Basic Navigation</title> | ||
101 | <para> | ||
102 | The command that you will use most often in the shell is probably the "cd" | ||
103 | command, which stands for "change directory." With this command, you can move | ||
104 | around in the file system, by issuing the command like this: <userinput>cd | ||
105 | <replaceable>[new directory]</replaceable></userinput>, where <replaceable>[new | ||
106 | directory]</replaceable> is the directory you want to move to. | ||
107 | This directory name does not have to include the entire directory structure, but | ||
108 | can be "relative" which means it assumes you are talking about directories | ||
109 | relative to the directory you are in. For example, if you are in a directory | ||
110 | called /home/username and you want to move to the directory | ||
111 | /home/username/other/dir you could simply type <userinput>cd | ||
112 | other/dir</userinput> and you would end up in /home/username/other/dir. You can | ||
113 | also specify a full, or "absolute" path, by specifying the entire path name | ||
114 | starting with / ( / is a special directory called the "root" directory, and does | ||
115 | not have a "parent" directory, which means that it is not in any other | ||
116 | directory). There are also two special directories called "./" and "../". | ||
117 | The "./" directory is the current directory you are in, and you will probably | ||
118 | never use this in conjunction with the cd command (why would you want to move to | ||
119 | the directory you are already in?). The "../" directory represents the parent | ||
120 | directory of the directory you are currently in, so if you are in | ||
121 | /home/username, ../ is the same as /home. You can string several ../'s | ||
122 | together, so if you are in /home/username/dir/ ../../ represents /home. There | ||
123 | is one other special directory, called "~/" that points to your home | ||
124 | directory (usually /home/username or /root for the root user). | ||
125 | </para> | ||
126 | </section> | ||
127 | |||
128 | <section><title>Moving Files</title> | ||
129 | <para> | ||
130 | To move files around, you need to use the "cp" (copy) and "mv" (move) | ||
131 | commands. Both of these are run the same way: <userinput>command originalfile | ||
132 | newfile</userinput>. The only difference is that cp creates a new file without | ||
133 | touching the old one, while mv deletes the original file. The two path names | ||
134 | can be either absolute or relative. If you only specify a directory for the | ||
135 | destination, and no filename, it will use the filename for the original file. | ||
136 | </para> | ||
137 | </section> | ||
138 | |||
139 | <section><title>Deleting Files</title> | ||
140 | <para> | ||
141 | To delete a file, run the "rm" command, and to delete a directory, run the | ||
142 | "rmdir" command, each of them take the file to be removed as their only | ||
143 | argument. The rmdir command requires the directory to be empty, so if you want | ||
144 | to delete a directory that is not empty, along with all its contents, run | ||
145 | <userinput>rm -r dir</userinput>. | ||
146 | </para> | ||
147 | </section> | ||
148 | |||
149 | <section><title>Linking Files</title> | ||
150 | <para> | ||
151 | In Linux, you can have a special file called a "symbolic link" that acts just | ||
152 | like a copy of another file, except it takes up less space. This is convinient | ||
153 | if two applications are looking for the same file in two separate places, | ||
154 | because the file can be in both places at once, without taking up any extra | ||
155 | space, and any change to one is automatically applied to the other (really, | ||
156 | there is only one file, the link is just a file pointing to the original file). | ||
157 | This is also useful for naming applications independant of their version number. | ||
158 | For instance, you could have a link called "application" that points to | ||
159 | "application1.0". To create a link, use the following command: | ||
160 | <userinput>ln -s originalfile link</userinput>. | ||
161 | </para> | ||
162 | </section> | ||
163 | </chapter> \ No newline at end of file | ||