![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 4 Weeks Ago 05:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 01:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 06:44 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
what about \command?
I learned something new today, anyone tell me what this is:
\rm -rf mydir I was having a hard time deleting a directory with just the standard rm -rf mydir command and someone told me to put a backslash in front of the rm command! and it worked, didn't ask me any questions, just did. SO why is that? what else does that work on? Thanks |
| Forum Sponsor | ||
|
|
|
||||
|
The person you were talking thought of the possibility that you have an alias by the name of "rm" that is doing something other than what the original "rm" command does.
By typing "\rm -rf mydir", you were bypassing any aliases and just using the original "rm" command. For example, I could set up an alias like so: alias rm 'rm -i' and then every time I use rm, I'll automatically be using the -i flag. But if I don't want to use the alias with the -i flag, I can type "\rm" instead of "rm". Check out this link: BU -Making Life Easy with Aliases Last edited by oombera; 03-06-2003 at 10:21 AM. |
||||
| Google UNIX.COM |