The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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
  #2 (permalink)  
Old 03-06-2003
oombera's Avatar
Have a day :|
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
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
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0