Are there any drawbacks to using the alias command?

If I understand from this lesson correctly, creating aliases makes like easier on the programmer. Are there any drawbacks to creating them? Say for example I create numerous aliases, wouldn’t that defeat the purpose of learning what the shell commands do and what they really mean?

I tend to use aliases for commands I use frequently and have high complexity such as those with many flags or options with them. I have a few Git aliases for example that customize the log function or shortened status to st because I run the command so frequently.

I would suggest remembering how and why you developed your aliases rather than the underlying commands themselves since you can always run alias to get a list of what you have created to revisit the underlying commands if you forget what they do.

3 Likes