The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to List out the Files based on the file Size...? psiva_arul Shell Programming and Scripting 6 04-08-2008 10:06 PM
Total file size of a subset list tekster757 UNIX for Dummies Questions & Answers 3 03-21-2008 01:27 PM
command to find out total size of a specific file size (spread over the server) abhinov SUN Solaris 3 08-08-2007 06:48 AM
List File size komputersman UNIX for Dummies Questions & Answers 10 06-13-2007 04:39 PM
Command to list Files less than or equal to 2k size bache_gowda UNIX for Advanced & Expert Users 3 12-26-2003 12:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-05-2006
rgordon rgordon is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 1
command to list file size

I'm new to HP-UX and am looking for the command that will allow to me determine the total size of listed files. I'm being told that my backup selection is exceeding my tape drive size and need to determine how much information is being backed up.

Help?
  #2 (permalink)  
Old 01-05-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Try either ls or du command from the directory you are starting on
ls -lR will list all files and du -s will list total usage. Look at the man pages for those commands for more options and the man page for the df command for complete filesystems.

Example:

[localhost ~]$ pwd
/home/hunter
[localhost ~]$ du -s .
49864 .
[localhost ~]$ ls -l
total 252
-rw-rw-r-- 1 hunt staff 33 Nov 25 07:09 asfile
-rwxr--r-- 1 hunt staff 179 Sep 21 10:53 control
-rwxr--r-- 1 hunt staff 210 Sep 27 18:02 cutjunk
drwxr-xr-x 4 hunt staff 4096 Dec 2 21:23 Desktop
-rwxr--r-- 1 hunt staff 1197 Jul 19 12:26 ds
-rw-rw-r-- 1 hunt staff 33 Nov 25 07:08 ebfile
-rw-rw-r-- 1 hunt staff 0 Dec 19 13:40 fall
-rw-rw-r-- 1 hunt staff 0 Dec 19 13:40 f-all
-rw-rw-r-- 1 hunt staff 57 Nov 18 08:24 file
  #3 (permalink)  
Old 12-03-2007
mvictorvijayan mvictorvijayan is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 29
File Size

Try this command if you want to display the file size alone.

ls -l | head -1 | cut -c7-
or
ls -l | head -1
  #4 (permalink)  
Old 12-05-2007
"wolverine"'s Avatar
"wolverine" "wolverine" is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 2
#du -ks *
it will give you the actual size of the file.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0