How I make a command short form in Red Hat Linux?

Asked By 10 points N/A Posted on -
qa-featured

I suppose to execute long command in linux shell in everyday, one of my friend told me that it can be possible to make big command in a short form. But he don’t know how to, Any one can help me please.

SHARE
Answered By 0 points N/A #133588

How I make a command short form in Red Hat Linux?

qa-featured

Hi Eartha,

You have a nice command to solve your problem in Red Hat Linux.

Aliases are shortcut names for longer command. If you want to create aliases for clear command , you need to edit a file name /home/[user name]/.bashrc

An example is given below.

Open the file name /home/[user name]/.bashrc file with vim command and edit this as follows

# vi /home/[user name]/.bashrc

alias lf=”ls -FCa “

alias c=”clear”

alias rm=”rm -I “

Here “c” is a short form for command “clear”

Britnu Salu

Related Questions