1833781 Members
2550 Online
110063 Solutions
New Discussion

Re: ls problem

 
SOLVED
Go to solution
iambluegary
Advisor

ls problem

data is a dir,/home/pin/data
when i use ll command:-rw-rw-rw- 1 pin pin 0 Feb 8 09:11 core.1000
-rw-rw-rw- 1 pin pin 0 Feb 8 11:09 core.123
drwxrwxrwx 2 pin pin 1024 Apr 19 01:31 data
-rwxrwxrwx 1 pin pin 399 Jan 22 18:07 del.line
-rwxrwxrwx 1 pin pin 1960 Apr 12 16:07 demo

but when i use :ll data,there is alos display what are in data :
tsrad 78> ll data
total 4
-rw-rw-rw- 1 pin pin 0 Apr 19 01:25 112002
-rw-rw-rw- 1 pin pin 0 Apr 18 22:50 200201
-rw-rw-rw- 1 pin pin 0 Apr 18 22:49 200204
-rw-rw-rw- 1 pin pin 0 Apr 18 22:50 200210
-rwxrwxrwx 1 pin pin 110 Apr 19 01:21 b
-rw-rw-rw- 1 pin pin 260 Apr 19 01:26 bb
-rw-rw-rw- 1 pin pin 0 Apr 19 01:31 user_fee_2002

but what i need is just :
drwxrwxrwx 2 pin pin 1024 Apr 19 01:31 data

and i wanna use ls to do it:
ls -? data

help ,help,help :-)
7 REPLIES 7
Deepak Extross
Honored Contributor

Re: ls problem

Why not do a
ll | grep data
Steven Sim Kok Leong
Honored Contributor
Solution

Re: ls problem

Hi,

# ll -d data

Hope this helps. Regards.

Steven Sim Kok Leong
Deepak Extross
Honored Contributor

Re: ls problem

or try
ll -d data
Clemens van Everdingen
Honored Contributor

Re: ls problem

Hi,

You can do ll|grep data

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Steven Sim Kok Leong
Honored Contributor

Re: ls problem

Hi,

Btw, your directory permissions do not look too healthy to me.

If this is not a test system, it would be advisable for you to set the umask in your .profile to at least the following:

umask 077

Hope this helps. Regards.

Steven Sim Kok Leong
John Strang
Regular Advisor

Re: ls problem

ls -ld data
should give you what you want - the dtails of the directory itself without the contents of the directory.

John
If you never make a mistake you'll never make anything.
iambluegary
Advisor

Re: ls problem

i just think about why i dont use ll |grep data:) ,however i know i cant use it even if i dont remember why just now.

right,cause if there is other things ,like somedata,onedata, ll |grep data also will find it,but i dont need.
help ,help,help :-)