help with ls command

help with ls command

Baruch Siach baruch at tkos.co.il
Tue May 1 14:57:29 IDT 2012


Hi Camelia,

On Tue, May 01, 2012 at 11:49:43AM +0000, Camelia Botez wrote:
> I got the full outpu from starce ls -ltr

According to the strace output below you seem to be doing just fine.

write(1, "total 395352\n", 13total 395352
)          = 13
clock_gettime(CLOCK_REALTIME, {1335872587, 209289000}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, "-rw-r--r--  1   1000   1000     "..., 59-rw-r--r--  1   1000   1000     15086 Dec 12  2007 LICENSE
) = 59
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, "-rw-r--r--  1   1000   1000     "..., 61-rw-r--r--  1   1000   1000      6182 Nov  2  2009 mysql.sql
) = 61
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, "-rw-r--r--  1   1000   1000     "..., 63-rw-r--r--  1   1000   1000      4612 Nov 11  2009 install.bat
) = 63
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, "-rwxr-xr-x  1   1000   1000     "..., 59-rwxr-xr-x  1   1000   1000      3382 Nov 11  2009 install
) = 59
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, "-rw-r--r--  1   1000   1000     "..., 61-rw-r--r--  1   1000   1000       244 Nov 16  2009 CHANGELOG
) = 61
...

baruch

> 
> -----Original Message-----
> From: Baruch Siach [mailto:baruch at tkos.co.il] 
> Sent: Tuesday, May 01, 2012 2:12 PM
> To: Camelia Botez
> Cc: linux-il at cs.huji.ac.il
> Subject: Re: help with ls command
> 
> Hi Camelia,
> 
> On Tue, May 01, 2012 at 10:59:42AM +0000, Camelia Botez wrote:
> > I have 2 servers running Rhel5 and Centos5.
> > Around 2 weeks ago on both of them , I have specific directories on 
> > which ls command gets stuck.
> > I don't get any output from ls , I cannot stop the command - I only 
> > can close the window.
> > I rebooted the servers and when I saw that reboot didn't help I ran 
> > manually fsck.
> > No improvement.
> > Has anyone any idea what can be the cause and what to do?
> 
> Please provide the output of the following command:
> 
>     strace ls
> 
> If you don't have 'strace' on your servers, just install the strace package 
> with 'yum install strace'.
> 
> baruch



-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the Linux-il mailing list