For example is it possible if I could something like below.alias sd='sudo su - <parameter>'if I write like below in command prompt.$sd parameterIt would sudo me to given ID as parameter.Also,alias chdr='cd /dir1/dir2/dir3/<parameter>'$chdr parameter
parameter aliases
shell;alias
Simply definealias sd='sudo su -'and writesd usernameYou can't pass parameters to an alias, but once the alias has been expanded, the words after it become arguments to the command.Instead of sudo su - username, you could use sudo -u username -i (unless your sudo configuration is restricted to running su, which doesn't bring any security benefits whatsoever).If you want anything more complicated, use a function instead of an alias.chdr () {  cd /dir1/dir2/dir3/$1}You can pass arguments to a function. In the function definition, $1 is replaced by the first parameter, $2 by the second parameter, etc. Don't forget to put double quotes around variable expansions.For this specific case, you may like CDPATH, if your shell supports this feature (check your shell's manual).Any for the sudo use case, you may prefer this function which runs a login shell if it isn't passed any arguments except the user name, or runs the specified command if passed more arguments. $# is replaced by the number of arguments, and $@ passes all arguments through unchanged.sd () {  if [ $# -eq 1 ]; then    sudo -i -u $1  else    sudo -u $@  fi}(I assume you use a Bourne-style shell, such as sh, ksh (any variant), bash, zsh, etc. (T)csh works differently.)