DOS User Study UNIX Guide [4] - Tailor-made

xiaoxiao2021-03-06  40

Section IV: Tailor-made as a OS

4.1. System initialization related files

There are two important files in DOS - Autoexec.bat and Config.sys. When DOS is started,

These two files are responsible for some system settings, such as setting environment variables Path, Files, etc., even

Calling other programs that must be loaded when booting.

There are also some similar files in Linux, but some are quite danger; you really understand

Before you have to do things, please don't touch it. In any case, I still have to tell you those who need special caution.

Archive:

FILES Notes

/ etc / inittab don't touch for now!

/etc/rc.d/* DITTO

If you want to do it, set the PATH or other environment variables, or modify the message when login, call one

Program, the following probably you want:

FILES Notes

/ etc / issue sets pre-login message setting the message before login

/ etc / motord sets post-login message sets login

/ etc / profile sets path and other variables, etc. Setting the environment

variable

/Home/your_home/.profile does whatver you want here you can join you at will

of

If the last file (~ / .profile) exists, (noted that it is a hidden file), then after you login

Its internal orchestration will be executed.

Example - see this .profile:

# I am a comment

echo environment:

Printenv | More # Equivalent of Command Set Under DOS

Alias ​​D = 'ls -l' # easy to understand what an alias is

Alias ​​Up = 'cd ..'

Echo "I Remind You That That IS" $ PATH

Echo "Have a Good Day," $ logname

Path and Logname, as you expect, it is two environment variables.

4.2. Program initialization setting file

Under Linux, all things can be arranged in accordance with your requirements. Most programs have

Their initialization settings can be modified by you. Usually, they are all .prognamerc

Type exists in the home directory. Here, first you may need to contact the setting file:

..xinitrc: Used to initialize X Window System.

..fvwmrc: Initialize FVWM this Window Manager. You can

/usr/lib/x11/fvwm/system.fvwmrc finds an example.

..xfm / *: Setting file for XFM (a File Manager).

..Xdefault: Used by RXVT - a terminal simulation program.

For these set files, or other files you will encounter, check Man Page.

转载请注明原文地址:https://www.9cbs.com/read-61271.html

New Post(0)