User Tools

Site Tools


bash:aliases:local_vs_global_aliases

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash:aliases:local_vs_global_aliases [2020/05/05 20:21] – created peterbash:aliases:local_vs_global_aliases [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== BASH - Aliases - Local vs Global ======+====== BASH - Aliases - Local vs Global Aliases ======
  
 Aliases can be global, i.e. apply by default to every user on the system. Aliases can be global, i.e. apply by default to every user on the system.
  
-However each user can also have their own aliases which only apply to them.+However each user can also have their own aliases which only apply to them, i.e. local aliases.
  
 ---- ----
Line 12: Line 12:
  
 We use **/etc/profile.d/bash_aliases.sh**. We use **/etc/profile.d/bash_aliases.sh**.
 +
  
 <WRAP info> <WRAP info>
Line 17: Line 18:
  
 For example 644. For example 644.
 +
 </WRAP> </WRAP>
 +
  
 ---- ----
Line 38: Line 41:
  
 To apply the changes immediately to your bash profile without having to log out: To apply the changes immediately to your bash profile without having to log out:
 +
 +<code bash>
 +source ~/.bashrc
 +</code>
 +
 +or
  
 <code bash> <code bash>
bash/aliases/local_vs_global_aliases.1588710109.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki