emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15423: closed (error while executing du -shc)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15423: closed (error while executing du -shc)
Date: Fri, 20 Sep 2013 16:18:03 +0000

Your message dated Fri, 20 Sep 2013 10:17:10 -0600
with message-id <address@hidden>
and subject line Re: bug#15423: error while executing du -shc
has caused the debbugs.gnu.org bug report #15423,
regarding error while executing du -shc
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15423: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15423
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: error while executing du -shc Date: Fri, 20 Sep 2013 18:28:09 +0530
Hi,

I am getting the following error while executing the following command:

 [/home]# du -shc *
du: invalid option -- r
du: invalid option -- w
du: invalid option -- -
du: invalid option -- r
du: invalid option -- -
du: invalid option -- -
du: invalid option -- r
du: invalid option -- -
du: invalid option -- -
Try `du --help' for more information.

[/home]# cat /etc/redhat-release 
CloudLinux Server release 5.9 (Sergey Oleynikov)

Please help me.

--
AJEESH B KANNAN


--- End Message ---
--- Begin Message --- Subject: Re: bug#15423: error while executing du -shc Date: Fri, 20 Sep 2013 10:17:10 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8
tag 15423 notabug
thanks

On 09/20/2013 06:58 AM, Ajeesh B Kannan wrote:
> Hi,
> 
> I am getting the following error while executing the following command:
> 
>  [/home]# du -shc *

You have a file in your current directory with a name beginning with -.

The usual solutions to this are:

du -shc ./*

or

du -shc -- *

either of which forces the glob to no longer be interpreted as options
(the former by guaranteeing no leading - in file names, the latter by
telling du the end of options and start of filenames).

> 
> Please help me.
> 

This is a FAQ:
https://www.gnu.org/software/coreutils/faq/#I-have-a-file-_0027_002df_0027-and-it-affects-rm_002e

I'm closing this as not a bug, but feel free to ask more questions in
this thread as needed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]