how to use 'alias' in linux

Many a times, you might need to create new commands from existing
commands. Sometimes, existing commands have complex options to
remember. In such cases, we can create new commands as follows:
$ alias ll='ls –l'
$ alias copy='cp –rf'
To list all declared aliases, use the following command:
$ alias
To remove an alias, use the following command:
$ unalias copy

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch