HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- du -sk reports files not found
Operating System - HP-UX
1837937
Members
3092
Online
110124
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-04-2004 07:12 PM
10-04-2004 07:12 PM
du -sk reports files not found
Hi,
I issued du -sk of filesystem and it reports:
du: ./work_root/bpi2/psc-dstep: A file or directory in the path name does not exist.
Those files/dir are there:
root@pgfs1>ls -alrt ./work_root/bpi2/psc-dstep
total 32
drwxrws--- 6 bhchua psc 512 Aug 20 2003 bhchua
drwxrws--- 4 bhchua psc 512 Aug 26 2003 .
drwxrws--- 5 cong5 psc 512 Oct 21 2003 cong5
drwxrws--- 7 pscda psc 512 Jan 19 2004 ..
The real mystery is, it reports different files/dirs when in different subdir. Pls. advise what's the cause and how to fix this. Thank you very much.
regards
-rosli-
I issued du -sk of filesystem and it reports:
du: ./work_root/bpi2/psc-dstep: A file or directory in the path name does not exist.
Those files/dir are there:
root@pgfs1>ls -alrt ./work_root/bpi2/psc-dstep
total 32
drwxrws--- 6 bhchua psc 512 Aug 20 2003 bhchua
drwxrws--- 4 bhchua psc 512 Aug 26 2003 .
drwxrws--- 5 cong5 psc 512 Oct 21 2003 cong5
drwxrws--- 7 pscda psc 512 Jan 19 2004 ..
The real mystery is, it reports different files/dirs when in different subdir. Pls. advise what's the cause and how to fix this. Thank you very much.
regards
-rosli-
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2004 07:32 PM
10-04-2004 07:32 PM
Re: du -sk reports files not found
It is problem with format you have used as,
du -ks ./work_root/bpi2/psc-dstep so that it will try to check from current directory there.
Example:
[/] # /tmp/test/okie
pwd is /
[/] # du -ks ./tmp/test/okie
will work there,
but
[ /home/muthu] # du -ks ./tmp/test/okie
will try to search
/home/muthu/tmp/test/okie not /tmp/test/okie there.
du -ks ./work_root/bpi2/psc-dstep so that it will try to check from current directory there.
Example:
[/] # /tmp/test/okie
pwd is /
[/] # du -ks ./tmp/test/okie
will work there,
but
[ /home/muthu] # du -ks ./tmp/test/okie
will try to search
/home/muthu/tmp/test/okie not /tmp/test/okie there.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2004 07:54 PM
10-04-2004 07:54 PM
Re: du -sk reports files not found
Try to use full path name as,
du -sk /from root directory to that file/
If you try as ./pathname then it will try to search from current directory ( . ) and if you try as ../pathname then it will search from parent direcrory ( .. )
Any system command with file / directory operation then use full path name there to avoid confusion.
du -sk /from root directory to that file/
If you try as ./pathname then it will try to search from current directory ( .
Any system command with file / directory operation then use full path name there to avoid confusion.
Easy to suggest when don't know about the problem!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP