|
||||||||||||||||||||||||||||
| ISBN: 3453181794 ISBN: 3453181794 ISBN: 3453181794 ISBN: 3453181794 | ||||||||||||||||||||||||||||
|
|
Wir empfehlen: | |||||||||||||||||||||||||||
A free Basic UNIX-training with muLinuxNotes: This Text is roughly translated (German to English) by a translating program. Sorry, but I have not time for the translation. Maybe you can do this?
People who use DOS, knows the files CONFIG.SYS and AUTOEXEC.BAT.
These files are processed when starting of the system. CONFIG.SYS is
particularly responsible for merging the necessary drivers for the hardware,
during AUTOEXEC.BAT more the working environment adjusts.
Unix is naturally substantially more complex as multi-user operation system and it
becomes when starting substantially more files (/etc) processed.
|
||||||||||||||||||||||||||||
date
~
~
~
~
~
~
~
|
When logging in thus the current date is to be displayed. We store this file and test these by logging in on another console (e.g. also Alt + F2). The date would have to be displayed now.
Now we can see also the file.
/# ls -a
One knows by the way also the options of LS combine:
/# ls -la
We can add another beautiful message and simulate a DOS-Prompt. For example:
/# vi profile
date echo "Have a lot of fun!" PS="C:\>" ~ ~ ~ ~ ~ ~ |
We have to naturally again log in, in order to see the modification.
The file .profile is thus a script file, which is called when logging in. One can enter here instruction and variable definitions, which are executed automatically.
Who wants to again use the file, she must naturally store on the work diskette.
We look at ourselves times this file.
/# cd /etc /# less profiles
Surely we are something confused over the many things there in it are now.
Everything was described in the paragraph " simple shell Skripte ".
First some shell variables are assigned here.
TERM defines the type of display. This is usually linux .
PS1 is the Shell prompt
PS2 Secondary prompt for interactive shell Skripte (in addition it wiil come later)
ingoreeof meaning has only if the Shell runs interactively. At the value 10 each EOF character (end to OF file) leads to leaving the Shell.
PATH Paths to the executable programs. This variable gives it also for DOS. Here the separation of the directories with a colon takes place.
Then this variables become also export as generally accepted variables explains. That is, this variables apply also to the child processes.
Then a query comes whether with this diskette is for the first time gebootet. This takes place with the conditional request if... fi :
if [ condition ]; then call these commands fi
If the condition applies, then call the commands up to fi. We will concern ourselves later with these possibilities of shell script programming.
Here thus the instruction becomes with first boats welcome executed. You can start these also by hand. welcome outputs the greeting information. welcome is by the way also a shell script and can also less are regarded. In addition one must it only also find with which.
Further become in the file /etc/profiles the colours for the display output defines. We define these however with muLinux with the instruction setup - f misc . We must have all thing in addition a color monitor.
/# setup -f misc DO you want some miscellaneous setting?: y Enter MY_BOOKMARKS: ... [Enter] Enter LISTING [multi column] > colored Enter LYNX_LISTING: ... [Enter] Do you want Shell history? [y]: ... [Enter] Do you want push/pop support into the shell (y/n)? [Enter] Enter TIMEZONE [ +0 ]: ... [Enter] Enter SIGNATURE: ... [Enter] Enter Editor [elvis]: [Enter] Enter WINDOW_MANAGER [ fvwm95 ]: ... [Enter] This terminal support colors (TRUE/FALSE)? TRUE
Now the command ls shows a colored listing. Directories are e.g. blue represented.
/# ls
a cdrom home mnt root setup tmp bin dev lib nfs samba startup usr c etc linuxrc proc sbin swap var
If we are content thereby, we store the configuration.
/# setup -s tutorial01
The color values become with muLinux in the file /etc/color stored. Into the file /etc/colors.conf TRUE is entered. Both files become of /etc/profiles analysed.
In the end of the file /etc/profiles the program fortune will be called. Thus a wisdom appears when each logging in. Unfortunately I do not understand these. Who wants to do without these messages, put a # at the begiining of this line. Or you can put your own wisdoms in the file /usr/game/lib/fortune.db.
Note: In the "right" Unix or Linux become in the file /etc/profiles preset rights of access with the command umask determined. Likewise leave themselves also ulimit max. storage areas for processes which can be started from the user assign.
Robert.Warnke@giso.de (copyleft) Robert Warnke, Berlin (Germany) - You can write me in English. | http://rowa.giso.de|
Markt & Technik bei Heyne, Bd.87, Linux (Broschiert)
von Marc A. Selig | |
| Sonstige Artikel: | |
| Loriot - Gesammelte Werke aus Film und Fernsehen (6 DVDs) von Evelyn Hamann | |
| Saved (Methuen Modern Plays) (Taschenbuch) von Edward Bond | |
| Magister Negi Magi - Vol. 5 von Nishikiori Hiroshi | |
