GreenLake Administration
Operating System - HP-UX
1848816
Members
7826
Online
104037
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
Forums
Discussions
back
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
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
08-07-2000 10:26 AM
08-07-2000 10:26 AM
du
I am trying to find out the total size of serveral files in a directory.
du -sk att*
this gives me each files size instead of its total, any ideas?
du -sk att*
this gives me each files size instead of its total, any ideas?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2000 10:34 AM
08-07-2000 10:34 AM
Re: du
du -s will show you the grand total of all files in the current directory. The number on the left is the number of 512 byte blocks. Multiply this number by 512 and the result will give you total size in bytes. Leave off the -u argument and you will see a breakdown of directory size contents.
Use the -x option if you do not want to go beyond filesystem boudaries.
Tony
Use the -x option if you do not want to go beyond filesystem boudaries.
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2000 10:35 AM
08-07-2000 10:35 AM
Re: du
Use different options fo the du command.
There is an option to give individual file size as well as the size of the directories.
There is an option to give individual file size as well as the size of the directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2000 10:45 AM
08-07-2000 10:45 AM
Re: du
du -sk att* | awk '{total = total + $1;} END {print total;}'
nobody else has this 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 2026 Hewlett Packard Enterprise Development LP