Languages
[Edit]
EN

Bash - command alias

3 points
Created by:
AnnLen
1789

Own alias for command can be created with alias command:

Example ls alias:

$ alias new_ls='ls -alh --color --time-style=long-iso'

Note: this alias will disappear after console will be closed.
To solve this problem ~/.bashrc can be used.

To remove alias use:

$ unalias new_ls


References:

  1. https://ss64.com/bash/alias.html
  2. https://en.wikipedia.org/wiki/Alias_(command)


Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.