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
AUTOFS - Troubleshoot directory does not exist KhawHL SUN Solaris 7 03-24-2009 04:27 AM
check the directory exist ust Shell Programming and Scripting 7 09-22-2008 08:49 PM
How to check directory exist on servers weonpc Shell Programming and Scripting 2 03-06-2008 06:29 AM
how to check if directory/file exist using c/c++ steven88 High Level Programming 2 01-03-2006 02:55 AM
Recursive directory listing without listing files psingh UNIX for Dummies Questions & Answers 4 05-10-2002 10:52 AM

Reply
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-22-2009
BCJapan BCJapan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
Directory is invisible in listing but it is exist.

Hi ALL.

Can anyone could help me.

Have you had a chance to experienced that when you list (ls) a directory from ordinary execution of command, you couldn't see the directory.
However, when you list it from the directory filename itself or even changing to directory (cd), it will show to you that there is an existing folder.

Sounds weird and interesting? Please see below sample or actual snapshot.....

No issues:
men:/nas> ls -ld FilterT*
drwxrwxr-x 2 user1 user1 1024 2009-03-14 16:36 FilterTools
men:/nas> ls -ld FilterTools
drwxrwxr-x 2 user1 user1 1024 2009-03-14 16:36 FilterTools

Here's the issue:
men:/nas> ls -ld CIM_SOLSUM*
/bin/ls: CIM_SOLSUM*: No such file or directory
men:/nas> ls -ld CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY
men:/nas> cd CIM_SOLSUM*
-bash: cd: CIM_SOLSUM*: No such file or directory
men:/nas> cd CIM_SOLSUMMARY
men:/nas/CIM_SOLSUMMARY> ls -l
total 8
-rwxrwxr-x 1 user1 user1 130 2009-06-04 05:33 CIM_SOLSUMMARY.xml


Also, do you think there's an issue or has effect from NAS server?

sy1nas01:/fs/R14
113141856 100473888 12667968 89% /nas

Many thanks in advance.
  #2 (permalink)  
Old 09-22-2009
know d unknown know d unknown is offline
Registered User
  
 

Join Date: Sep 2009
Location: chennai
Posts: 24
did u try using "ls -lad" ??
  #3 (permalink)  
Old 09-22-2009
BCJapan BCJapan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
Quote:
Originally Posted by know d unknown View Post
did u try using "ls -lad" ??

Thank you for your quick reply...
Yes, it will shown with 'lad' option as same as with 'ld' if you are going to list from its full directory name otherwise, no such file or directory.

men:/nas> ls -lad CIM_SOLSUM*
/bin/ls: CIM_SOLSUM*: No such file or directory
men:/nas> ls -lad CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY

By the way, this is on Linux machine.
men:/nas> uname -a
Linux sy1nas01 2.6.5-7.282-bigsmp #1 SMP Tue Aug 29 10:40:40 UTC 2006 i686 i686 i386 GNU/Linux


Thank you again.

Last edited by BCJapan; 09-22-2009 at 02:39 PM..
  #4 (permalink)  
Old 09-22-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,839
Does 'ls -laNd' show anything suspicious?
  #5 (permalink)  
Old 09-22-2009
BCJapan BCJapan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
Quote:
Originally Posted by pludi View Post
Does 'ls -laNd' show anything suspicious?
Hello.. Thanks for your reply...

Still the same situation.
men:/nas> ls -laNd CIM_SOLSUM*
/bin/ls: CIM_SOLSUM*: No such file or directory
men:/nas> ls -laNd CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY

  #6 (permalink)  
Old 09-22-2009
Michael Safyan Michael Safyan is offline
Registered User
  
 

Join Date: May 2009
Posts: 9
This is not actually unusual. There is such a thing as hidden files and folders. Usually, only files or folders that start with dot (.) are hidden, although it is possible for distributions to make other files or folders hidden as well. Wildcard expansion will not include any hidden files or folders, so the wildcard (since there are no matches) will expand to the wildcard expression, itself (e.g. the literal 'CIM_SOLSUM*').

You can list all files and folders using the '-a' switch to 'ls'. If you need to search for a particular hidden file or folder whose name matches a specific pattern, you can always pipe the output of 'ls' to 'grep' as in 'ls -la | grep CIM_SOLSUM'.
  #7 (permalink)  
Old 09-23-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
What shell are you using and do you have globbing turned on or off?
Reply

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 03:41 PM.


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