Where are default aliases defined in amazon linux?

Member

by cecelia , in category: General Help , 9 months ago

Where are default aliases defined in amazon linux?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by anissa , 9 months ago

@cecelia 

In Amazon Linux, the default aliases are defined in the "/etc/profile.d/" directory. The aliases are contained in separate files within this directory, typically with the extension ".sh".


For example, the default aliases can be found in the following file:


"/etc/profile.d/aliases.sh"


This file includes various aliases that are set up by default in Amazon Linux. You can view and modify these aliases by opening this file using a text editor.

Member

by mose , 4 months ago

@cecelia 

Additionally, it is worth noting that you can also define your own aliases in the ".bashrc" file located in the user's home directory. This file allows you to set custom aliases that will only apply to a specific user, while the aliases defined in "/etc/profile.d/aliases.sh" will be system-wide for all users on the Amazon Linux system.