1

I'm a CentOS user. In my machine, some aliases are available, they were previously defined in the past. I want to add new aliases to function as shortcuts to frequently used commands.

I don't know where to define them, since I'd like them to be in the same file as the already defined aliases. I've searched files like bashrc, /.rc, but it wasn't there.

I've checked the already defined aliases are available to all users, not just mine.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232

2 Answers2

1

Some shell command aliases are built in. Define your own by putting them in the relevant rc file for the shell you're using (i.e. .bashrc if your shell is bash)

imabug
  • 171
  • In this case, the commands I'm refering to are custom. They are like little shortcuts to some local scripts. Now I'd like to add new shortcuts to other scripts. Or it could be also to edit the current alias in case they needed an update. – Jairo Alves Nov 13 '18 at 13:14
1

Thanks to the tips on this question as suggested by JigglyNaga.

I tried the bash -v / bash - x and found out that the place the my aliases were defined is: /etc/profile.d/login.sh