openSUSE provides many aliases by default, among which “l” is set to the alias “ls -alF’”. As far as I know, these aliases are defined in the /etc/profile.d directory.
type l
l is aliased to `ls -alF'
But when I delete all the files in the /etc/profile.d directory and log in to the account again, I can still use the originally set alias. Why is this?
There are no relevant alias settings in my .bashrc and profile files.
I found that Leap and tumbleweed seem to have different configurations.
Tumbleweed also has a profile.d directory in the /usr/etc/ directory, which contains files for alias settings. This is why I can still use aliases even after deleting the information in the /etc/profile.d directory.
And I am also curious why the solution is searched by changing system wide settings that will work on all users (changing in /etc/ and not just on the environment of the user involved (as offered by @nrickert ).
I can understand rm = rm -i is something I would have go.
So I unalias them in the .bashrc when I am at RH machines.
I’m not a baby. I also copy PS1 of root there too. However,
the inital question talks about ‘l’ being an alias. So what about just not executing ‘l’ the first place…
So I am wondering what his take on this is. And like mentioned, do in your profile(s)…
I started using unix before there was a linux. So I am used to the non-alias versions of the commands.
Additionally, the typical linux aliases have the annoying habit of using various colors for the output. And for those of us who have atypical color vision, that can make it hard to read.
Hi
Since I just recently joined openSUSE, the distributions I used before usually placed the alias settings in .bashrc, so just changing .bashrc can get the desired results.
However, since the alias of openSUSE is stored in /etc/profile.d, I wanted to move the files in this directory to another place first, but I didn’t expect that the alias was still in effect, and that’s why I had this problem.
But as discussed above, it seems to be a bit boring question.
This is not of my invention, but it was there when the user was created (long, long time ago, thus I am not sure if user creation now still provides the same).
This suggests that a good way to manage your aliases is creating the file ~/.alias and set your alias preferences (maybe unalias -a ) there.
This is of course for the user to set his/her preferences.
I am not a fan of some of the methods above where the system manager (root) changes things in the systems configuration, thus setting (changing) things for all users.
There may of course be a reason to to something to affect all users, but I doubt that was the argument here. My interpretation from the original post and some of he others is that people are only talking about their personal preferences.