Sponsored Content
Operating Systems Solaris What does total mean in ls -l output? Post 302533534 by chidori on Friday 24th of June 2011 02:49:42 AM
Old 06-24-2011
What does total mean in ls -l output?

Code:
# ls -l | more
total 12861
drwxr-xr-x   3 root     root         512 Jun 20 21:57 Desktop
drwxr-xr-x   2 root     root         512 Oct 16  2010 Documents
lrwxrwxrwx   1 root     root           9 Oct 16  2010 bin -> ./usr/bin
drwxr-xr-x   7 root     sys          512 Oct 16  2010 boot
drwxr-xr-x   4 root     nobody       512 May 29 11:25 cdrom
-rw-------   1 root     root     6394517 Jun  2 21:42 core
drwxr-xr-x  19 root     sys         4608 Jun 23 22:32 dev
drwxr-xr-x   2 root     sys          512 Jun 21 22:12 devices
drwxr-xr-x   2 root     root         512 Nov 29  2010 dummy
drwxr-xr-x  87 root     sys         4608 Jun 23 19:26 etc
drwxr-xr-x   3 root     sys          512 Oct 16  2010 export
drwxr-xr-x   3 root     root         512 Jun 24 11:24 hi
dr-xr-xr-x   1 root     root           1 Jun 21 22:12 home
-rw-r--r--   1 root     root           0 Jun 23 21:35 imqadmin.c
drwxr-xr-x  18 root     sys          512 Oct 16  2010 kernel
drwxr-xr-x   8 root     bin         5632 Oct 16  2010 lib
drwx------   2 root     root        8192 Oct 16  2010 lost+found
drwxr-xr-x   2 root     sys          512 May 29 11:29 mnt
drwxr-xr-x   2 root     root         512 Jun 19 22:32 mydir
dr-xr-xr-x   1 root     root           1 Jun 21 22:12 net
drwxr-xr-x   2 root     root         512 Oct 26  2010 newpartion

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep running total/ final total across multiple files

Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Discussion started by: MrAd
5 Replies

2. UNIX for Dummies Questions & Answers

du total

Hi All Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom. Thanks Ed (9 Replies)
Discussion started by: C3000
9 Replies

3. Shell Programming and Scripting

total output from a file created in a while loop

I have a while loop which looks for files and then sets a variable to give me the record count of each file: current_members=`wc -l ${DATA_DIR}/$MEMBERS_FILENAME | nawk '{ printf "%d\n", $0}'` I am out putting the totals into a file: echo $current_members >> ../data/out_total_members.dat ... (7 Replies)
Discussion started by: Pablo_beezo
7 Replies

4. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

5. Shell Programming and Scripting

Output no. of rows and total value of a file to a new file

I am relatively new to Unix and I would be grateful if someone could help me with the syntax of a script. I am trying to write a Unix script against the file ‘ajtest.dat’ (see below) so that it outputs the number of rows and total value of column 3 in a file called ‘aj1’ as follows: No. of... (11 Replies)
Discussion started by: ajmutley
11 Replies

6. UNIX for Dummies Questions & Answers

Explanation of "total" field in "ls -l" command output

When I do a listing in one particular directory (ls -al) I get: total 43456 drwxrwxrwx 2 root root 4096 drwxrwxrwx 3 root root 4096 -rwxrwxr-x 1 nobody nobody 3701594 -rwxrwxr-x 1 nobody nobody 3108510 -rwxrwxr-x 1 nobody nobody 3070580 -rwxrwxr-x 1 nobody nobody 3099733 -rwxrwxr-x 1... (1 Reply)
Discussion started by: proactiveaditya
1 Replies

7. Shell Programming and Scripting

Help with sum total number of record and total number of record problem asking

Input file SFSQW 5192.56 HNRNPK 611.486 QEQW 1202.15 ASDR 568.627 QWET 6382.11 SFSQW 4386.3 HNRNPK 100 SFSQW 500 Desired output file SFSQW 10078.86 3 QWET 6382.11 1 QEQW 1202.15 1 HNRNPK 711.49 2 ASDR 568.63 1 The way I tried: (2 Replies)
Discussion started by: patrick87
2 Replies

8. Solaris

Total

i want to list Total HDD count in any soalris machine..can someone suggest some commands or combinations of commands (6 Replies)
Discussion started by: omkar.jadhav
6 Replies

9. UNIX for Advanced & Expert Users

'total 0' in ls output

I have a Linux box, where some NAS shares are mounted. One script is running on it and failing because it first looks at second line of 'ls -l', when it says 'total 0', it fails. If that directory is on local disk, it says 'total 38' and when same data is on NAS share, it says 'total 0' and it... (2 Replies)
Discussion started by: solaris_1977
2 Replies
SYSTEMD-VOLATILE-ROOT.SERVICE(8)			   systemd-volatile-root.service			  SYSTEMD-VOLATILE-ROOT.SERVICE(8)

NAME
systemd-volatile-root.service, systemd-volatile-root - Make the root file system volatile SYNOPSIS
systemd-volatile-root.service /lib/systemd/systemd-volatile-root DESCRIPTION
systemd-volatile-root.service is a service that replaces the root directory with a volatile memory file system ("tmpfs"), mounting the original (non-volatile) /usr inside it read-only. This way, vendor data from /usr is available as usual, but all configuration data in /etc, all state data in /var and all other resources stored directly under the root directory are reset on boot and lost at shutdown, enabling fully stateless systems. This service is only enabled if full volatile mode is selected, for example by specifying "systemd.volatile=yes" on the kernel command line. This service runs only in the initial RAM disk ("initrd"), before the system transitions to the host's root directory. Note that this service is not used if "systemd.volatile=state" is used, as in that mode the root directory is non-volatile. SEE ALSO
systemd(1), systemd-fstab-generator(8), kernel-command-line(7) systemd 237 SYSTEMD-VOLATILE-ROOT.SERVICE(8)
All times are GMT -4. The time now is 01:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy