- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: what's mean of total :,when i use ll command
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
Forums
Discussions
Discussions
Discussions
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
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
01-18-2005 10:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:10 PM
01-18-2005 10:10 PM
Re: what's mean of total :,when i use ll command
You may want to run whence ll
This will tell you whether you have a binary ll or not. On older systems we used to create an alias command so that when the usr ran ll ls -la or some other variation actually executed.
Simple answer: Yes. total file size in bytes.
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
01-18-2005 10:12 PM
01-18-2005 10:12 PM
Re: what's mean of total :,when i use ll command
Total is the total number of files of the directory (files . and .. are hiden with ll command)
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:22 PM
01-18-2005 10:22 PM
Re: what's mean of total :,when i use ll command
Noe I'm confused since I get 19Gb for a directory (TST) with:
#du -k TST
19163064 TST
And something close to the double with ll:
#ll TST|more
total 38326120
What is your interpretation of this results?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:26 PM
01-18-2005 10:26 PM
Re: what's mean of total :,when i use ll command
du -k is in Kb
ll reports in blocks of 512 bytes
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:30 PM
01-18-2005 10:30 PM
Re: what's mean of total :,when i use ll command
-k Gives the block count in 1024-byte blocks
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:33 PM
01-18-2005 10:33 PM
Re: what's mean of total :,when i use ll command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:49 PM
01-18-2005 10:49 PM
Re: what's mean of total :,when i use ll command
the answer from man is:
"The first entry printed is the total number of blocks in the directory" @ 512 bytes/block
You can check this by using "ls -ls"
The total number is the sum of the entries in column 1.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 10:58 PM
01-18-2005 10:58 PM
Re: what's mean of total :,when i use ll command
It's not even my thread and I've learnt from it!
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 11:00 PM
01-18-2005 11:00 PM
Re: what's mean of total :,when i use ll command
but of course in units of the blocksize of your filesystem.
On HP-UX an
e.g.
# fstyp -v $(bdf /|awk 'NR>1{print$1}')
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 311296
f_bfree: 252742
f_bavail: 236946
f_files: 67728
f_ffree: 63184
f_favail: 63184
f_fsid: 1073741827
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0
f_fsindex: 6
f_size: 311296
would show, but I could be wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 11:20 PM
01-18-2005 11:20 PM
Re: what's mean of total :,when i use ll command
First line of the output of ll command shows total number of blocks used or that directory.
The command 'll' with the flag '-s' will give you a ore detailed view. The -s flag gives the block size of the individual usage.
See man page ll.
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2005 11:33 PM
01-18-2005 11:33 PM
Re: what's mean of total :,when i use ll command
My "man ll" gives me this:
"man ll
ls(1) ls(1)
NAME
ls, lc, l, ll, lsf, lsr, lsx - list contents of directories
SYNOPSIS
ls [-abcdefgilmnopqrstuxACFLR1] [names]
lc [-abcdefgilmnopqrstuxACFLR1] [names]
l [ls_options] [names]
ll [ls_options] [names]
lsf [ls_options] [names]
lsr [ls_options] [names]
lsx [ls_options] [names]
DESCRIPTION
For each directory argument, the ls command lists the contents of the
directory. For each file argument, ls repeats its name and any other
information requested. The output is sorted in ascending collation
order by default (see Environment Variables below). When no argument
is given, the current directory is listed. When several arguments are
given, the arguments are first sorted appropriately, but file
arguments appear before directories and their contents.
...
"
No info. about those 512bytes...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 12:42 AM
01-19-2005 12:42 AM
Re: what's mean of total :,when i use ll command
-s List size in blocks, including indirect blocks, for each
entry. The first entry listed is the total number of blocks
in the directory. When used in multicolumn output, the
number of blocks precedes the file name in each column. The
number of indirect blocks in a file is filesystem dependent.
If you do a ll -s, it will print the individual blocks for each file:
# ll -s
total 11800
2 -rw-r--r-- 1 root sys 168 Jan 15 14:08 OLDsyslog.log
11734 -r--r--r-- 1 root root 6007049 Jan 19 06:06 mail.log
0 -rw-r--r-- 1 root sys 0 Nov 6 2002 swlist
64 -rw-r--r-- 1 root root 24243 Jan 19 04:44 syslog.log
Rgds...Geoff