- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file not found
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
тАО02-04-2009 02:34 PM
тАО02-04-2009 02:34 PM
I have a doubt in ls command.
In '/var/stm/logs' directory, When i run 'ls -al' : all dir and files are showing but it says tool_stat.txt is not found.
Again I run only 'ls' command under the same directory, all are shown inclusing the tool_stat.txt file.
Please clarify my doubt, why is it so?
What does tool_stat.txt file do?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 02:45 PM
тАО02-04-2009 02:45 PM
Re: file not found
Try running:
# ls -lb
And see what shows up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 02:57 PM
тАО02-04-2009 02:57 PM
Re: file not found
2. What does tool_stat.txt do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 08:51 PM
тАО02-04-2009 08:51 PM
Re: file not found
>I run only 'ls' command under the same directory, all are shown including the tool_stat.txt file.
ll(1) does a stat(2) on each file. So if there is something wrong with tool_stat.txt, you'll see it. If your directory has read but not execute access, you can see the files with ls(1) but not ll(1) but you said you saw other files.
So you could try cksum on tool_stat.txt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 11:41 PM
тАО02-04-2009 11:41 PM
SolutionI tried to simulate the same in our LAB server
#ls -la
total 144
..
..-rw-r--r-- 1 root sys 763 Jan 8 13:23 conlog.log
drwxr-xr-x 2 root root 96 Jan 8 03:54 decode
drwxr-xr-x 2 root other 96 Feb 1 19:51 monitor
drwxr-xr-x 2 root root 8192 Feb 1 19:50 os
drwxr-xr-x 2 root sys 96 Feb 1 19:41 sys
-rw------- 1 root root 0 Feb 1 20:54 tool_stat.txt
..
..
#ls -al tool_stat.txt
tool_stat.txt not found
#ls -al tool_stat.txt*
-rw------- 1 root root 0 Feb 1 20:54 tool_stat.txt
#ls -bl tool_stat.txt*
-rw------- 1 root root 0 Feb 1 20:54 tool_stat.txt\032
You could see \032 added which is ^Z.
You could try to move the file via
#mv tool_stat.txt* tool_stat.txt
#ll tool_stat.txt
# ls tool_stat.txt
Also note the permission of tool_stat.txt is
-rw-rw-rw- 1 root root
PS: Please assign points if you find your answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2009 03:27 AM
тАО02-05-2009 03:27 AM
Re: file not found
$ ls -i /var/stm/logs
6341 conlog.log 6336 monitor 6342 pvsuinitlog 39368 tool_stat.txt 6411 ui_activity_log
32287 decode 6403 os 6343 sys 6348 tools 32318 utilities
This will give you the inode number of tool_stat.txt
In this example it is 39368
Then run
find /var/sym/logs -inum 39368 -exec mv {} tools_stat.txt +
This will move the file for you.
- Tags:
- unprintable chars