bug-coreutils
[Top][All Lists]
Advanced

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

bug#15423: error while executing du -shc


From: Eric Blake
Subject: 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


reply via email to

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