Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Ls directory size reporting byte size instead of file count Post 302881853 by jmgibby on Thursday 2nd of January 2014 10:24:38 AM
Old 01-02-2014
Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.

Recently, my virtual server switched storage devices and I think the problem may be related to that change. Previously when I did an "ls -ld" on a directory, the size column would report the number of files and/or directories contained in that directory. Now it is reporting a byte size. An empty directory is reporting 4096. If this is a configurable option, I would like to be able to request my admins adjust the option back to showing number of files & directories.

Thanks,
John
 

10 More Discussions You Might Find Interesting

1. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

2. UNIX for Dummies Questions & Answers

Preserve byte size of fields while pasting it to other file

Hello I want to set two fields in a text file to be of size 20. how to do it using unix ? eg: ABC.txt Name | City I want Name and City both to be of size 20. Also If I am pasting it in other file the byte size should be preserved.i.e. If I want to append content of ABC.txt to other... (0 Replies)
Discussion started by: dashing201
0 Replies

3. Shell Programming and Scripting

Preserve byte size of fields while pasting it to other file in unix

Preserve byte size of fields while pasting it to other file Hello I want to set two fields in a text file to be of size 20. how to do it using unix ? eg: ABC.txt Name | City I want Name and City both to be of size 20. Also If I am pasting it in other file the byte size should be... (1 Reply)
Discussion started by: dashing201
1 Replies

4. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

5. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

6. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

7. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

8. Shell Programming and Scripting

Calculate byte size of string

Hi, I have task to merge multiple XML's to one big XML. In doing this i have to calculate the byte size of each XML which i will be recieving as a string from a code and append all the recieved XML's to single file. The reason being the byte size and the offset will help me to extract only... (7 Replies)
Discussion started by: chetan.c
7 Replies

9. Shell Programming and Scripting

How to get the file size and count of a table using shell scripting?

Hi there, im a beginner to the shell scripting.i trying to extract a table from a db(IMD) and i have to get the count of that table and size of the file. can you help me out how to write the shall scriping for the above query. (2 Replies)
Discussion started by: pawanmamidi
2 Replies

10. Solaris

Df reporting double size of du after fsck & reboot

Solaris 8 running on a Sparcstation 5 (Aurora) with 170MHz processor and 256MB ram This is AFTER doing fsck and reboot. 820030k vs 385252k All other files in /usr/asm not in /usr/asm/sys or /usr/asm/data amount to 43k. The /usr/asm/lost+found is 8k. somehow df and other applications... (3 Replies)
Discussion started by: lcoreyl
3 Replies
DH_BUGFILES(1)							     Debhelper							    DH_BUGFILES(1)

NAME
       dh_bugfiles - install bug reporting customization files into package build directories

SYNOPSIS
       dh_bugfiles [-A] [debhelperoptions]

DESCRIPTION
       dh_bugfiles is a debhelper program that is responsible for installing bug reporting customization files (bug scripts and/or bug control
       files and/or presubj files) into package build directories.

FILES
       debian/package.bug-script
	   This is the script to be run by the bug reporting program for generating a bug report template. This file is installed as
	   usr/share/bug/package in the package build directory if no other types of bug reporting customization files are going to be installed
	   for the package in question. Otherwise, this file is installed as usr/share/bug/package/script. Finally, the installed script is given
	   execute permissions.

       debian/package.bug-control
	   It is the bug control file containing some directions for the bug reporting tool. This file is installed as
	   usr/share/bug/package/control in the package build directory.

       debian/package.bug-presubj
	   The contents of this file are displayed to the user by the bug reporting tool before allowing the user to write a bug report on the
	   package to the Debian Bug Tracking System. This file is installed as usr/share/bug/package/presubj in the package build directory.

OPTIONS
       -A, --all
	   Install debian/bug-* files to ALL packages acted on when respective debian/package.bug-* files do not exist. Normally, debian/bug-*
	   will be installed to the first package only.

SEE ALSO
       /usr/share/doc/reportbug/README.developers.gz

       debhelper(1)

       This program is a part of debhelper.

AUTHOR
       Modestas Vainius <modestas@vainius.eu>

11.1.6ubuntu2							    2018-05-10							    DH_BUGFILES(1)
All times are GMT -4. The time now is 06:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy