dos win to linux howto 7 6M7PY2N3F5PRV2AVOJVX3F36UJY2DMYGRWIJWVA


From DOS/Windows to Linux HOWTO : Tailoring the System 7. Tailoring the System7.1 System Initialisation FilesTwo important files under DOS are AUTOEXEC.BAT and CONFIG.SYS, which are used at boot time to initialise the system, set some environment variables like PATH and FILES, and possibly launch a program or batch file. 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. I'll tell you what the most important are, anyway: FILES NOTES /etc/inittab don't touch for now! /etc/rc.d/* dittoIf all you need is setting the $PATH and other environment variables, or you want to change the login messages or automatically launch a program after the login, have a look at the following files: FILES NOTES /etc/issue sets pre-login message /etc/motd sets post-login message /etc/profile sets $PATH and other variables, etc. /etc/bashrc sets aliases and functions, etc. /home/your_home/.bashrc sets your aliases + functions /home/your_home/.bash_profile or /home/your_home/.profile sets environment + starts your progsIf the latter file exists (note that it is a hidden file), it will be read after the login and the commands in it will be executed.Example---look at this .bash_profile: # 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 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$PATH and $LOGNAME, you guessed right, are environment variables. There are many others to play with; for instance, RMP for apps like less or bash.7.2 Program Initialisation FilesUnder Linux, virtually everything can be tailored to your needs. Most programs have one or more initialisation files you can fiddle with, often as a .prognamerc in your home dir. The first ones you'll want to modify are:.inputrc: used by bash to define key bindings;.xinitrc: used by startx to initialise X Window System;.fvwmrc: used by the window manager fvwm..joerc: used by the editor joe;.jedrc: used by the editor jed;.pinerc: used by the mail reader pine;.Xdefault: used by many X programs.For all of these and the others you'll come across sooner or later, RMP. As a final note, let me suggest that you check out the Configuration HOWTO on http://sunsite.unc.edu/mdw/HOWTO/Config-HOWTO.html . ?

Wyszukiwarka

Podobne podstrony:
dos win to linux howto 6
dos win to linux howto
dos win to linux howto 10
dos win to linux howto 5
dos win to linux howto 9 iq2a3cn73r5fitbqq3jmuyddd552pzckbve6mni
dos win to linux howto 4
dos win to linux howto 2
dos win to linux howto 1
dos win to linux howto 8
vms to linux howto 6 orpzzxmiy5oizudwzslh4p4kfunjtgy6prdxrwi orpzzxmiy5oizudwzslh4p4kfunjtgy6prdxrwi
vms to linux howto 5zv2dnz24mcm6ujoqsm4mrsb6v5tbjxddhtqu5a 5zv2dnz24mcm6ujoqsm4mrsb6v5tbjxddhtqu5a
vms to linux howto 14 cm5l4wlt7qtalypc34eimd4eyk3x4un7tij3hty cm5l4wlt7qtalypc34eimd4eyk3x4un7tij3ht
vms to linux howto 1 wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy
vms to linux howto 1 wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy
vms to linux howto 10 bmuwkvga2iufcvv6gjnuyaleagqv3xj3qwihrlq bmuwkvga2iufcvv6gjnuyaleagqv3xj3qwihrl
vms to linux howto 7 l7kbq6xnrrkkazl2tvmbvm25fe7zo7v4mctzfnq l7kbq6xnrrkkazl2tvmbvm25fe7zo7v4mctzfnq
vms to linux howto 5 5gnldmqe4ayl45wuhxe72clxgmyt3dmyl2nhuza 5gnldmqe4ayl45wuhxe72clxgmyt3dmyl2nhuza
vms to linux howto 4 rbjwb2i6cf666xqwnvyy27m6ng2p5mcva5iwuji rbjwb2i6cf666xqwnvyy27m6ng2p5mcva5iwuji
vms to linux howto 13 vodijua4gjnr2qhakcvaroutkbkmgr6citxjlsq vodijua4gjnr2qhakcvaroutkbkmgr6citxjls

więcej podobnych podstron