23.04.2024, 19:16 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

kanotix.com FAQ (häufig gestellte Fragen)

Kategorie: Index ->

Frage

Antwort

What is a terminal/ console and how do I use it?


A terminal, also called console, is a program that makes it possible to interact directly with the Linux operating system by issuing various commands which are then executed immediately. Also often referred to as a 'shell' or 'command line', the terminal is a very powerful tool and it's well worth the effort to gain some basic understanding of it's use.

In KANOTIX you can find the terminal/ console close to the K-menu symbolized by a PC monitor. Depending o­n your theme it may or may not also contain the image of a shell. You will also find the same icon in the K-menu under �System�.

When you open a terminal window you will be presented with the terminal prompt which will have the format of:

username@hostname:~$

You should recognize the username as your own login name. The ~ (tilde) indicates that you are in your home directory and $ indicates that you are logged in with user privilege. At the end you will have your cursor. This is your command line where you will enter the commands you want to execute.

A lot of commands need to be run with root privileges. To achieve this you type �sux� at the prompt and press enter. You will then be asked for your root password. Type your password and hit enter again (note that when you type your password, nothing will show o­n the screen).

If your password is correct the prompt will change to:

root@hostname:/home/username#

WARNING: While you are logged in as root, the system will not stop you from doing potentially dangerous things like deleting important files etc., you have to be absolutely sure about what you are doing, because it's fully possible to seriously harm your system.

Note that the $ sign has changed into a # (hash). In a terminal/ console the # always indicates that you are logged in with root privileges. Throughout this FAQ we will omit everything in front of the $ or the #. So a command like

# apt-get install something

Means: Open a terminal, become root (sux) and enter the command at the # prompt. (Don't type the #)

A little note o­n “sux”: The common command for becoming root is 'su' but using 'sux' instead also lets you run X11 applications from the command line.




nach oben
Is there any help available for the various commands?

Yes there is. Most Linux commands/ programs comes with it's own manual called a “man page” or “manual page” accessible from the command line. The syntax is:

$ man "command"

This will bring up the manual page for that command. Navigate up and down with the cursor keys. As an example try:

$ man apt-get

Another useful utility is the “apropos” command. Apropos basically enables you to search the man pages for a command if you e.g. don't remember the complete syntax. As an example you can try

$ apropos apt-

This will list all commands for the package manager 'apt'. The 'apropos' utility is a quite powerful tool, but describing it in detail is way beyond the scope of this FAQ. For details of it's use, see it's man page.


nach oben
What is a script and how do I use them?


A script is basically multiple commands bundled together in a file. By entering the filename of the script every command will be executed in turn just like an ordinary program. KANOTX comes with several useful scripts made by Kano in order to make life a little easier for the users.


nach oben
This is interesting, where can I learn more?


There are numerous tutorials o­n the Internet. A very good o­ne aimed at the beginner is: A Beginner's Bash.
Or use your favourite search engine to find more.


nach oben
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.