home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.mandriva      Somewhat decent but also getting bloated      29,919 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 29,161 of 29,919   
   unruh to Daniel47@teranews.com   
   Re: Linux equivelant of "Del *.*"   
   16 Mar 13 15:37:09   
   
   From: unruh@invalid.ca   
      
   On 2013-03-16, Daniel47@teranews.com  wrote:   
   > unruh wrote:   
   >> On 2013-03-15, Daniel47@teranews.com  wrote:   
   >>> Bit Twister wrote:   
   >>>> On Thu, 14 Mar 2013 22:11:36 +1100, Daniel47@teranews.com wrote:   
   >>>>>   
   >>>>> In Linux (as root), I seem to be issuing lots of rm *.*'s and hitting   
   >>>>> "Y" heaps with the occasional rd (directory). Back in DOS or Win3/95/98,   
   >>>>> I'd probably have just entered something like "Del *.*" and "job done".   
   >>>>>   
   >>>>> Is there something like this for Linux??   
   >>>>   
   >>>> Two command line methods follow:   
   >>>>   
   >>>> 1    /bin/rm -r whatever_you_did_before   
   >>>> 2    \rm -r whatever_you_did_before   
   >>>>   
   >>>> Reason you have the problem, run the following command:   
   >>>>        type rm   
   >>>> and run this command   
   >>>>        man rm   
   >>>>   
   >>>   
   >>> O.K., so when I enter "type rm", I'm told that rm is aliased as "rm -i"   
   >>> (so that's what Jim Kerr was talking about, and what Chris Johnson is   
   >>> arguing against) which is telling Linux that I want to reply to each and   
   >>> every directory/file removal.   
   >>>   
   >>> rm -r or rm -R or rm -f would remove directories and files recursively.   
   >>> (cut and paste into my "useful Linux Commands" file!!)   
   >>   
   >> No. rm -r wil remove them recursively. rm -f will force removal without   
   >> asking for permission.   
   >> YOu were told to do   
   >> man rm   
   >> you have not done so. Do so.   
   >   
   > Bad guess, unruh, I did "type rm" and then "man rm", just as BT   
   > suggested, but, as I think I've said here once or ninety-four times   
   > before, I find reading "man" bloody difficult, which, I think, is why   
   > I'm more likely to ask here!!   
      
   ?? man rm is very straightforward (compared to some man pages). It   
   simply lists the options.   
      
   The key point about man pages is that they list the options. Read them.   
      
      
   >   
   > So rm -f is what I'm after then. "Just do it, don't ask!!"   
      
   Yes, that is what rm -f does. But it will NOT erase any subdirectories (   
   which you indicated you wanted to do). Also do not do   
   rpm -f *.* since that will only erase files with a . in them ( and not   
   all filenames have a . in them)   
      
   >   
   > Daniel   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca