Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 08:57:45 -0800 (PST)
From:      Ken Bolingbroke <hacker@bolingbroke.com>
To:        ann kok <annkok2001@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: command ls question
Message-ID:  <20020117084947.I5440-100000@fremont.bolingbroke.com>
In-Reply-To: <20020117155836.46800.qmail@web20109.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 17 Jan 2002, ann kok wrote:

> display a char #ls ? doesn't work

Works fine over here.  Of course, a single character filename has to
actually exist:

 % ls ?
 ls: No match.
 % touch a b c
 % ls ?
 a b c


> remove the files temp1 temp2 temp3
>
> #rm temp [1-5 7-9] doesn't work

Right, it won't work with spaces.  You need it like this:

 rm temp[1-5,7-9]

Note no space between "temp" and "[", and a comma instead of a space
between "5" and "7".


> ls doesn't accurate to display disk space
> because some files are link by command ln
> it counts double
>
> is it right?

That's correct.  You'll want to use "df" for checking disk space usage.

Ken Bolingbroke
hacker@bolingbroke.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020117084947.I5440-100000>