Sponsored Content
Full Discussion: 'total 0' in ls output
Top Forums UNIX for Advanced & Expert Users 'total 0' in ls output Post 302879963 by blackrageous on Monday 16th of December 2013 05:31:32 PM
Old 12-16-2013
Can you post the output of the various commands you are referencing. You're talking about a script we can't see. What is the actual output of the network mounted directory and what is the actual output of it when it's local. A mounted directory (if not actually mounted) may show 0, so I would first suspect that the mount has failed if it is showing 0 files.
 

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. Solaris

What does total mean in ls -l output?

# 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... (2 Replies)
Discussion started by: chidori
2 Replies

8. 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

9. 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
df_vxfs(1M)															       df_vxfs(1M)

NAME
df_vxfs: df - report number of free disk blocks on a VxFS file system SYNOPSIS
[special|directory]... DESCRIPTION
prints the number of free blocks and free inodes in VxFS file systems or directories based on the counts kept in the super-blocks. VxFS dynamically allocates inodes from a pool of free blocks. The number of free inodes and blocks reported by is an estimate based on the number of free 8K or larger extents and the current ratio of allocated inodes to allocated blocks. (Extents smaller than 8K may not be usable for all types of allocation, so does not count free blocks in extents smaller than 8K.) Allocating additional blocks may therefore decrease the count of free inodes and vice versa. If the operand to is a special device name, the file system can be an unmounted or mounted file system (for example, If you specify a directoryname, displays information for the file system at that mount point. If neither special nor directory is specified, the free space on all of the mounted file systems is printed. Options recognizes the following options: Report only the number of kilobytes free. Report the number of files free. Report only an actual count of the blocks in the free list (free inodes are not reported). When this option is specified, reports on raw devices. Specify the file system type Report the entire statvfs(2) structure. Report the total number of inodes, the number of free inodes, number of used inodes and the percentage of inodes in use. Report the allocation in kilobytes. Report on local file systems only. Report the file system name. If invoked with no other options this option prints a list of mounted file system types. Print the number of free extents of each size. Free extents are always an integral power of two in length, ranging from a minimum of one block to the maximum extent size supported by the file system. Report the total allocated block figures and the number of free blocks. Report the percentage of blocks used, the number of blocks used and the number of blocks free. This option cannot be used with other options. Echo the completed command line, but performs no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. There are a number of options that specify output formats, some combinations of which are incompatible. If an incompatible combination is specified, one of the options will override the other(s). Operands recognizes the following operands: directory Name of the mount point from which the VxFS file system is accessed. special Device name, which contains a mounted or unmounted VxFS file system. EXAMPLES
Report the number of free disk blocks for all mounted file systems: Report the number of free extents of each size, for all mounted VxFS file systems: Report the number of free files for all mounted VxFS file systems: Report the total allocated block figures and the number of free blocks, for all mounted file systems: Report the total allocated block figures and the number of free blocks, for the file system mounted as FILES
File-system devices. File-system devices. Static information about the file systems. mounted-file-system table. SEE ALSO
du(1), df(1M), fsck_vxfs(1M), statvfs(2), fs_vxfs(4), mnttab(4). STANDARDS CONFORMANCE
: SVID2, XPG2, XPG3 df_vxfs(1M)
All times are GMT -4. The time now is 09:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy