Useful shortcuts for vi editor

Showing posts with label alias. Show all posts
Showing posts with label alias. Show all posts

Friday 10 October 2014

How to add a alias for using by all users in Linux?

Please edit /etc/bash.bashrc, for example;
  • alias c='cd' 
  • alias a='dir'
  • alias l='ls -l'
  • alias p='cd -'
  • alias '..'='cd ..'