PLUG-discuss Digest, Vol 59, Issue 10
Amit Nepal
amit.n at phoenixinternet.net
Mon May 10 13:09:17 MST 2010
Yeah,
rm -i by itself means interactive ( i is for interactive rm which
means, it will ask for confirmation every time) for users rm means just
rm without i but for root user, it is aliased to rm -i which you can
see in .bashrc file . So you are by your command telling the shell to
ask for y/n every time. If you are looking to remove without
confirmation , rm -f is what you are looking for , as mentioned by Dan.
Thanks
Amit
plug-discuss-request at lists.plug.phoenix.az.us wrote:
> Send PLUG-discuss mailing list submissions to
> plug-discuss at lists.plug.phoenix.az.us
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> or, via email, send a message with subject or body 'help' to
> plug-discuss-request at lists.plug.phoenix.az.us
>
> You can reach the person managing the list at
> plug-discuss-owner at lists.plug.phoenix.az.us
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PLUG-discuss digest..."
>
>
> Today's Topics:
>
> 1. Udev rules and built-in kernel modules (John)
> 2. Command Line Question (Eric Cope)
> 3. Re: Command Line Question (Dan Dubovik)
> 4. Re: Command Line Question (James Finstrom)
> 5. Re: Command Line Question (Eric Shubert)
> 6. Re: Command Line Question (tjones136 at cox.net)
> 7. Re: Command Line Question (Eric Cope)
> 8. Re: Command Line Question (Dan Dubovik)
> 9. Re: Command Line Question (Eric Shubert)
> 10. Re: Command Line Question (James Finstrom)
> 11. Re: Command Line Question (Eric Cope)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 9 May 2010 15:50:21 -0700 (PDT)
> From: John <jharitos at yahoo.com>
> Subject: Udev rules and built-in kernel modules
> To: Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
> Message-ID: <446422.33022.qm at web51003.mail.re2.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> My computer setup needs two RS232 (serial) interfaces. I have the motherboard one and I also have a separate PCI card (4348:3253). The separate card has been going on the fritz since sometimes it just stops working. I bought another PCI serial card and I thought I could swap them out. Unfortunately, the new card (5372:6872) doesn't load the serial kernel driver like the old card. When I do a lspci -v for the old card it says kernel driver=serial and for the new card nothing is listed. I do an udevadm for both and the old one says serial and the new one says serial8250. Not sure why it doesn't say serial8250 when I do a lspci -v for the new card. Can you write a udev rule to load the correct built-in driver? Also, I did a cat on the modules.builtin and it shows serial_core.ko, 8250.ko, 8250_pnp.ko, 8250_pci.ko. I thought I would see a serial.ko and serial8250.ko as well. Any suggestions or am I out of luck on the serial card?
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 10 May 2010 09:35:15 -0700
> From: Eric Cope <eric.cope at gmail.com>
> Subject: Command Line Question
> To: Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
> Message-ID:
> <AANLkTin8pgF6Qr9bjCKs3xB2WJLUXOfXsz6Y7UV-soyd at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Good morning all,
> I have a question that I don't know how to google. When I issue a command
> like "rm -i *.txt", it responds with a question that I type 'y' for every
> line. I recall a way to issue a 'y' to every question. I thought it was 'y!'
> but that doesn't seem to work. Does anyone know this trick.
>
> Thanks,
> Eric
>
> p.s. yes, I know I can use \rm *.txt or rm -f *.txt for this specific trite
> case, but there are other situations where this would be helpful.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100510/a0a08dba/attachment.html>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 10 May 2010 09:40:57 -0700
> From: Dan Dubovik <dandubo at gmail.com>
> Subject: Re: Command Line Question
> To: Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
> Message-ID:
> <AANLkTil0KfotGPCGU-BGq1RqdlAto2ZqanrUt1lQ5vte at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> rm -i *.txt | yes
>
> may work for you?
>
> [root at localhost]# yes --help
> Usage: yes [STRING]...
> or: yes OPTION
> Repeatedly output a line with all specified STRING(s), or `y'.
>
> --help display this help and exit
> --version output version information and exit
>
>
> On Mon, May 10, 2010 at 9:35 AM, Eric Cope <eric.cope at gmail.com> wrote:
>
>
>> Good morning all,
>> I have a question that I don't know how to google. When I issue a command
>> like "rm -i *.txt", it responds with a question that I type 'y' for every
>> line. I recall a way to issue a 'y' to every question. I thought it was 'y!'
>> but that doesn't seem to work. Does anyone know this trick.
>>
>> Thanks,
>> Eric
>>
>> p.s. yes, I know I can use \rm *.txt or rm -f *.txt for this specific trite
>> case, but there are other situations where this would be helpful.
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100510/528628d8/attachment-0001.htm>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 10 May 2010 09:51:13 -0700
> From: James Finstrom <jfinstrom at rhinoequipment.com>
> Subject: Re: Command Line Question
> To: Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
> Message-ID:
> <x2j2d1e9c1f1005100951s5c2c0b63ra95882a14343f79d at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> man rm:
> -f, --force
> ignore nonexistent files, never prompt
>
> Dangerous sometimes but it is what you seek
>
> On Mon, May 10, 2010 at 9:40 AM, Dan Dubovik <dandubo at gmail.com> wrote:
>
>
>> rm -i *.txt | yes
>>
>> may work for you?
>>
>> [root at localhost]# yes --help
>> Usage: yes [STRING]...
>> or: yes OPTION
>> Repeatedly output a line with all specified STRING(s), or `y'.
>>
>> --help display this help and exit
>> --version output version information and exit
>>
>>
>> On Mon, May 10, 2010 at 9:35 AM, Eric Cope <eric.cope at gmail.com> wrote:
>>
>>
>>> Good morning all,
>>> I have a question that I don't know how to google. When I issue a command
>>> like "rm -i *.txt", it responds with a question that I type 'y' for every
>>> line. I recall a way to issue a 'y' to every question. I thought it was 'y!'
>>> but that doesn't seem to work. Does anyone know this trick.
>>>
>>> Thanks,
>>> Eric
>>>
>>> p.s. yes, I know I can use \rm *.txt or rm -f *.txt for this specific
>>> trite case, but there are other situations where this would be helpful.
>>>
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>
>>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>>
>
>
>
>
--
Thank you
Amit Nepal
Systems Administrator
Phoenix Internet
602-385-0731
602-234-0917 # 112
More information about the PLUG-discuss
mailing list