This is regarding the alias names in .profile on your Linux servers. By adding the alias names in your .profile you can reduce the work load of typing full command.
Instead of typing ‘ls –ltr‘, you can just type ‘l’ after adding this entry in your .profile file:
alias l='ls -ltr'
Please follow this procedure to add the alias names in your .profile file.
#
# Adding the alias names
#
alias l='ls -ltr'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias dev3logs='cd /storage/DEV3/logs'
#
Save your .profile file after adding the entries and exit your session.
Re login to the server to get these changes effected.
Instead of typing ‘ls –ltr‘, you can just type ‘l’ after adding this entry in your .profile file:
alias l='ls -ltr'
Please follow this procedure to add the alias names in your .profile file.
- Login to the linux server
- Type cd (it will take you to your home path)
- Type ls -latr .profile ( It will list your .profile file)
- Using VI editor open the .profile and add the alias names to it. Here is a sample:
#
# Adding the alias names
#
alias l='ls -ltr'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias dev3logs='cd /storage/DEV3/logs'
#
Save your .profile file after adding the entries and exit your session.
Re login to the server to get these changes effected.