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 > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to view files in a particular directory under /opt its.simron UNIX for Dummies Questions & Answers 1 05-21-2008 10:02 AM
Unable to view files in a particular directory under /opt its.simron Linux 1 05-21-2008 09:59 AM
View lastest content in the file Lauran Kerry AIX 3 01-10-2008 11:46 AM
view user permissions on directory 99miles UNIX for Dummies Questions & Answers 1 01-05-2002 05:59 PM
Unable to view contents of a directory maddave UNIX for Dummies Questions & Answers 13 10-25-2001 01:50 AM

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 06-26-2006
nhatch nhatch is offline
Registered User
  
 

Join Date: Aug 2002
Location: London, England
Posts: 84
Can't view directory content - SUNOS

Hi,

The app I support has a directory used for debugg files. It has just come to light there are no files in there. Or is there


Changing into the directory and completing an ls -lta you get no files. This is truly not right for the application. If I go up one directory the directory size is
drwxrwxr-x 2 user bin 71168 Jun 26 00:03 logdebug

If you cat ./logdebug you get the following nonsense (actually not nonsense these are the names of the files I should be able to see. I can link the name PID to other logs, the yare new), This just stream for pages as there a lot of log files.
cftp-19517-trans.log@cftp-25712-trans.log cftp-21911-trans.log¬dcs_cftp_flx-19487.logŒcftp-1897-trans.log cftp-22
468-trans.log cftp-10589-trans.log0cftp-11166-trans.log.logans.log.............

If you do a file logedug it comes up as a directory. I can't figure out how this one directory has totally screwed up.

SunOS prod002 5.8 Generic_117350-13 sun4u sparc SUNW,Sun-Fire-15000

Any idea where the files really are?

Cheers,
Neil
  #2 (permalink)  
Old 06-26-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Well, the cat command should not be working on directories. Check below:
HTML Code:
/$ uname -a
SunOS xxxxxx 5.8 Generic_117350-24 sun4u sparc SUNW,Ultra-Enterprise
/$ cat /tmp
cat: input error on /tmp: Invalid argument
/$ less /tmp
/tmp is a directory
/$ more /tmp

*** /tmp: directory ***
Also, don't go by the size field for a directory. The directory size increases as more files are added (this is the size field in the directory that I am talking about and not 'size of directory'='total size of all files'), but it may not decrease if you remove files.
  #3 (permalink)  
Old 06-27-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Are you using wildcards for the "ls"? The fact that you have a large amount of files inside, could affect the use of wildcards.

Try to "cd" to the directory and give:
Code:
find . -ls
Chek perms also

Regards.
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 05:50 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