- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ls -l error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 12:34 AM
тАО11-05-2009 12:34 AM
I came across a strange scenario. When i do a long listing on a directory it gives me the files.
However, when i do long listing on a file in that directory, it says no file found.
#pwd
/u02/TST/olapex
#ls -ltr
total 17204
-rwx------ 1 oratst dba 209117 Oct 30 06:56 FPAPJP.eif
-rwx------ 1 oratst dba 8485638 Oct 30 07:38 ODPCODE.eif
-rwx------ 1 oratst dba 2247440 Oct 30 07:39 XWDEVKIT.eif
-rwx------ 1 oratst dba 6610847 Oct 30 07:42 ZPBCODE.eif
#ll ZPBCODE.eif
ls: ZPBCODE.eif: No such file or directory
I tried creating a new file and list it. It works fine. But the above 4 files seem to be nonexistent.
These files are under a local FS and i am working under the directory /u02/TST/olapex
I am not able to figure out the issue here.
Please help
Sunny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 12:54 AM
тАО11-05-2009 12:54 AM
Solutionis it possible that there are some "hidden" character in the name of the file, so the real name is not only the name you can see.
Try ls -l | xd or ls -l | xd -c and you will be able to seeif there is any special character.
Also using bash can help.
Regards,
Lovro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 01:03 AM
тАО11-05-2009 01:03 AM
Re: ls -l error
May be these filenames contain some special character.
Try with:
# ll ZPBCODE*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 01:05 AM
тАО11-05-2009 01:05 AM
Re: ls -l error
Yes, you both are right... the filename has special characters.
#ls -l ZPBCODE.eif*
-rwxrwxrwx 1 orabig dba 6610847 Nov 5 07:42 ZPBCODE.eif
ls -l | xd doesn't work
what is xd. There is no man page for xd.
How can i find out the special characters in the filename.
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 01:30 AM
тАО11-05-2009 01:30 AM
Re: ls -l error
check the man pages 'man ls':
Options:
-b List nonprinting characters in the octal \ddd notation.
So use 'ls -b'
Another possibility is the file manager.
It shows such characters, too.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 01:31 AM
тАО11-05-2009 01:31 AM
Re: ls -l error
-q List nonprinting characters in file names as the character (?).
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 01:38 AM
тАО11-05-2009 01:38 AM
Re: ls -l error
total 17200
-rwxrwxrwx 1 orabig dba 209117 Nov 5 07:42 FPAPJP.eif\
-rwxrwxrwx 1 orabig dba 8485638 Nov 5 07:42 ODPCODE.eif\
-rwxrwxrwx 1 orabig dba 2247440 Nov 5 07:42 XWDEVKIT.eif\
-rwxrwxrwx 1 orabig dba 6610847 Nov 5 07:42 ZPBCODE.eif\
#ls -lq
total 17200
-rwxrwxrwx 1 orabig dba 209117 Nov 5 07:42 FPAPJP.eif
-rwxrwxrwx 1 orabig dba 8485638 Nov 5 07:42 ODPCODE.eif
-rwxrwxrwx 1 orabig dba 2247440 Nov 5 07:42 XWDEVKIT.eif
-rwxrwxrwx 1 orabig dba 6610847 Nov 5 07:42 ZPBCODE.eif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 01:52 AM
тАО11-05-2009 01:52 AM
Re: ls -l error
there seems to be a ' ' (space) at the end.
Do you have an application which takes access to these files?
Else you can rename it or leave it as it is.
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 02:47 AM
тАО11-05-2009 02:47 AM
Re: ls -l error
You need "xd -c". Or you can use vis: ll | vis -t
Or as Volkmar said, use "ls -b".
>what is xd? There is no man page for xd.
Sure there is, right there with od(1):
http://docs.hp.com/en/B2355-60130/od.1.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2009 09:21 PM
тАО11-05-2009 09:21 PM
Re: ls -l error
There was a blank space after the filename