The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to chmod a file/directory lyonsd SUN Solaris 12 04-27-2009 05:08 AM
unable to create any directory that uses numbers as the directory name fed.linuxgossip UNIX for Advanced & Expert Users 16 01-13-2008 08:54 PM
check the current date file in directory pallvi SUN Solaris 2 01-04-2008 05:57 PM
rm: Unable to remove directory xxxx/xxxx: File exists deejay UNIX for Dummies Questions & Answers 1 11-07-2005 12:17 AM
Finding largest file in current directory? AusTex High Level Programming 1 03-13-2005 01:03 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
Unable to see all file in a current directory

Hi,

I am unable to see all files in a current directory when use "ls -lrt" command
it is giving error message as below ( I think this current directory is having about 500 files)

<CONTROL /home/ckanth/sri>ls -lrt
UX:ls: ERROR: Out of memory: Insufficient or invalid memory

But when i give specific argument it is working
<CONTROL /home/ckanth/sri>ls -lrt *PRINT

-rw-rw-rw- 1 logic sri 51153 Sep 25 08:55 560PRINT
-rw-rw-rw- 1 logic sri 47045 Sep 26 10:07 561PRINT
-rw-rw-rw- 1 logic sri 48704 Sep 27 11:03 562PRINT

I will be very gladful if you give a solution of same.

thanks
  #2 (permalink)  
Old 09-27-2006
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
seems like there are too many files in that directory and the Operating System ran out of memory when sorting the list of files.
Try ls -f instead.
Or you may have to solve the memory problem at kernel level.
  #3 (permalink)  
Old 09-27-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
Hi yogesh,

command "ls -f" is not working and giving same error message.
any remedy of same.
  #4 (permalink)  
Old 09-27-2006
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
see if this helps: http://groups.google.co.in/groups?q=...n&lr=&filter=0
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0