How it works...

The alias command is used to create a shortcut for commonly used commands.

  1. We have created an alias p for command pwd. So, we just run the p command to get the present working directory.
  2. We have created an alias l for command ls. So, we just run the l command to get the list.

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.