How to do it...

  1. We will create a alias for the pwd command. Run this command:
$ alias p=pwd
  1. Now, we will create an alias for the ls command. Run the following command:
$ alias l=”ls -l”

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.