Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
A possible file in which to write a system wide alias.
A possible file in which to write a system wide alias.
Hi: I used a non Debian linux distribution and, writing an alias in /etc/profile had system wide effect. Now with Debian 9 an alias in that file has effect only under root. A possible file in which to write an alias such that it is valid for all users including root?
Re: A possible file in which to write a system wide alias.
bw123 is correct. For example, in ~/.bashrc I have added alias sx="startx" under # some more ls aliases. It looks like this:
Code: Select all
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
alias sx="startx"
- None1975
- df -h | participant
- Posts: 1398
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 68 times
Re: A possible file in which to write a system wide alias.
You may want to put all your additions into a separate file likeBulkley wrote:bw123 is correct. For example, in ~/.bashrc I have added alias sx="startx" under # some more ls aliases.
Code: Select all
~/.bash_aliases
Code: Select all
.bashrc
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
Re: A possible file in which to write a system wide alias.
FYI:
there is a user by that alias on linuxquestions.org.
people have been very patient and polite for decades (since 2007), but recently more and more complaints came in that stfu92 is actually some sort of troll, never doing the slightest bit of research, indulging in complainerism etc.
i think it's no coincidence that we find the same alias here right now at this juncture in the train of events...
there is a user by that alias on linuxquestions.org.
people have been very patient and polite for decades (since 2007), but recently more and more complaints came in that stfu92 is actually some sort of troll, never doing the slightest bit of research, indulging in complainerism etc.
i think it's no coincidence that we find the same alias here right now at this juncture in the train of events...
Re: A possible file in which to write a system wide alias.
If I use ~/.bashrc then the alias will have effect for the user to which that file belongs. I.e., suppose I am user_1. Then writing the alias in /home/user_1/.bashrc will have effect only for user_1 and not for root. Isn't the meaning of "system wide" not known here?