creating alias in solaris


Creating Alias in Solaris

Format to create alias:
alias  aliasname='command'

Steps to create alias:
For Example:
Step: 1 
Step: 2
Next type only h:
Step: 3
Then type ‘pwd’ and see the output:











Example 2: (Another Way)
Step: 1
I am in root:



Step: 2
I create one alias:
Step: 3

# If you want to view all the alias:
  Type only 'alias'
# If you want to remove some 'alias' means:
   Type unalias ‘alias name’















#  If you want to permanent mount(alias) means:
    First create one .bashrc file in root(/) directory














# Now if you restart the server also ‘no problem’, automatically alias will mount.
# If you want to delete the entire alias:Command is : unalias –a
# After delete entire alias you should remove the .bashrc file (in root (/)  directory):












# That’s all guys.

No comments:

Post a Comment