s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
8. Tailoring the System
8.1 System Initialisation Files
Two important files under DOS are Under Linux there are lots of initialisation files, some of which you had better not tamper with until you know exactly what you are doing; they reside in the /etc tree. All configuration can be done editing plain text files. If all you need is setting the PATH and other environment variables, or you want to change the login messages or automatically launch a program on login, have a look at the following files:
If the latter file exists (note that it is a hidden file), it will be read after the login, and the commands therein will be executed. Example---look at this
# I am a comment echo Environment: printenv | less # 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 the path is "$PATH echo "Today is `date`" # use the output of the command 'date' echo "Have a good day, "$LOGNAME # The following is a "shell function" ctgz() # List the contents of a .tar.gz archive. { for file in $* do gzip -dc ${file} | tar tf - done } # end of .profile
Putting this line in your /etc/profile will provide the rough
equivalent of
8.2 Program Initialisation Files
Under Linux, virtually everything can be tailored to your needs. Most
programs have one or more initialisation files you can fiddle with, often as
a
For all of these and the others you'll come across sooner or later, RMP. Perhaps I could interest you in the Configuration HOWTO, http://www.linuxdoc.org/HOWTO/Config-HOWTO.html?
Next Previous Contents |