[kanchilug] Re: [Tip] Escape any command from aliases

  • From: Ramachandran V <v.ramcool.ramachandran@xxxxxxxxx>
  • To: kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 27 Jan 2011 16:52:50 +0530

Hi,

Escape any command from aliases
>
> $ \[command]
>
>  Ex:
>
> if "ls" is aliased for 'ls -ll', you can escape the alias by prepending a
> backslash:
>
> $ ls
>
> WILL prompt for confirmation per the alias
>
> $ \ls
>
> will NOT prompt for confirmation per the default behaviour of the command.
>
>
> Ex:
>
>
> [suresh@mercury ~]$ alias ls="ll"
>
> [suresh@mercury ~]$ ls
> total 52
> drwxrwxr-x. 13 suresh suresh 4096 Jan 26 12:08 aaa
> drwxr-xr-x.  4 suresh suresh 4096 Jan 26 19:09 Desktop
> drwxr-xr-x.  2 suresh suresh 4096 Jan 24 12:23 Documents
> drwxr-xr-x.  7 suresh suresh 4096 Jan 26 18:44 Downloads
> drwxrwxr-x. 13 suresh suresh 4096 Jan 26 11:37 exa
> drwxrwxr-x. 13 suresh suresh 4096 Jan 26 11:37 exam
>
>
> [suresh@mercury ~]$ \ls
> aaa     Documents  exa   Music     Public  Templates  zzz
> Desktop  Downloads  exam  Pictures  qqq     Videos
>
> Nice tip..
>
   Keep rocking..

>
> --
> Regards,
> Tha.Suresh
>


   Regards
   Ramachandran

>
> Cooool Linux Tips & Tricks,
> http://gnutips.wordpress.com
>
> My experiences with Linux are here,
> http://thasulinux.wordpress.com
>
>

Other related posts: