- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can ls file, but cannot read the content
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
тАО10-22-2008 08:53 PM
тАО10-22-2008 08:53 PM
I have a strange file behavour lately. I have log files that are can be listed with ls command. But when i tried to view the content of the log, it responds as if the file did not exist.
For example, the file name is dn.log.2008-10-22
#more dn.log.2008-10-22
dn.log.2008-10-22: No such file or directory
#ls dn.log.2008-10-22
dn.log.2008-10-22 not found
But, if i do:
#ls
the file name appears on the file listing.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 08:56 PM
тАО10-22-2008 08:56 PM
Re: can ls file, but cannot read the content
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 09:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 09:53 PM
тАО10-22-2008 09:53 PM
Re: can ls file, but cannot read the content
Right. List with "ls -b".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 10:14 PM
тАО10-22-2008 10:14 PM
Re: can ls file, but cannot read the content
Content could be encrypted.
Could be an invisible character in the name.
Try typing the beginning of the name and then escape K to get the rest of the name.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 10:38 PM
тАО10-22-2008 10:38 PM
Re: can ls file, but cannot read the content
Thank you Suraj for hinting the invisible character. Also, thank you Steven for giving me idea on how to go about it. Sadly, i dont understand what 'escape K' is, pardon my ignorance. But what I did was, since i use bash, i used the auto-completion using the tab key.
Dennis, I used 'ls -b' but i have the same result as 'll' or 'ls -al'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 10:50 PM
тАО10-22-2008 10:50 PM
Re: can ls file, but cannot read the content
Then you have spaces:
ll -b | vis -t
With "foo bar" you see "\s" for each space:
... mmm\sDD\sHH:MM\sfoo\sbar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 11:00 PM
тАО10-22-2008 11:00 PM
Re: can ls file, but cannot read the content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 01:35 AM
тАО10-23-2008 01:35 AM