setting global alias for all users howto??? Fedora 18
in the past i have just edited the .bash_profile for the user and added my alias's i want for each user.
under Fedora 18 i have done so for both the user of the laptop and for root (for me) with the following alias: alias d='ls -laF' real simple. nothing fancy, nothing crazy. When i start the terminal withing Gnome the user has no access to the alias, but if i su - then root does. what gives? More importantly what file(s) do i need to edit to make this simple alias for all users including new users created down the line? Thanks. Code:
$ cat .bash_profile Code:
# cat .bash_profile |
Define a universal /etc/bash_profile in the system effective and readable for all users; or, declare the aliases at the /etc/profile. This is what directory '/etc' is for.
Hope that helps. Goodluck. |
Better
Code:
echo "alias d='/bin/ls -laF'" > /etc/profile.d/z_local_aliases.sh |
Quote:
|
All times are GMT -5. The time now is 10:59 PM. |