Customise Red Hat Linux
Changing Key User Files
Startup Files
How to Run User Commands & Programs at Startup (in Bash)
- The system wide startup file is /etc/rc.local
- Most startup scripts run from /etc/rc.d/init.d/ use chkconfig to control them
- The user specific file is $HOME/.bash_profile
- System wide environment and startup programs are in /etc/profile
- System wide functions and aliases go in /etc/bashrc
- To change your startup shell edit /etc/passwd. The last entry is the shell.
Creating Aliases
Command Shortcuts
The sytem wide aliases are in /etc/bashrc
The user specific aliases are in @HOME/.bashrc
The files are self explanitory. To create a lsl command which is equivilent to ls -aFl|less, add
alias
lsl='ls -aFl|less'
Now you can run lsl instead of ls -aFl | less
original document created by Pete Nesbitt, March 2000