11-02-2012
Maybe the AU is different, since that is one place where du and df differ. I think du thinks we still have 512 byte sectors. I recall that du multi-counts hard links, too. Find picks up directory hard links .. and ., running that line count up.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Solaris
Hello everyone.
I beg your guys pardon please.
I try to ls -al in many path/directories. So, I put the code in text file which look like below;
ls -al /
ls -al /etc
ls -al /etc/default
...
however, when I paste it to Solaris over SecureCRT, it seems the code was escaped from "-" to... (0 Replies)
Discussion started by: Smith
0 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Red Hat
Hello all, perhaps this is an odd request, but I have the requirement none the less. Every time I mount a filesystem (at least an ext4 filesystem), I get a line indicating such in the syslog:
Oct 9 22:26:28 sulaco kernel: EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts:
I... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies
5. Solaris
Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies
6. Solaris
Hi,
I am trying to get an HPz420 workstation instaled (zfs root pool) via a jump-start server.
I have a zfs image (from this workstation) the Solaris release is 10 1/13 update 11.
I use a sparc U25 install server, upgraded to the same solaris build 10 1/13.
This server is configured to install... (8 Replies)
Discussion started by: sc0rpie
8 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
DU(1) BSD General Commands Manual DU(1)
NAME
du -- display disk usage statistics
SYNOPSIS
du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m | -g] [-x] [-I mask] [file ...]
DESCRIPTION
The du utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each direc-
tory argument. If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed.
The options are as follows:
-a Display an entry for each file in a file hierarchy.
-c Display a grand total.
-d depth
Display an entry for all files and directories depth directories deep.
-H Symbolic links on the command line are followed, symbolic links in file hierarchies are not followed.
-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
-I mask
Ignore files and directories matching the specified mask.
-g Display block counts in 1073741824-byte (1-Gbyte) blocks.
-k Display block counts in 1024-byte (1-Kbyte) blocks.
-L Symbolic links on the command line and in file hierarchies are followed.
-m Display block counts in 1048576-byte (1-Mbyte) blocks.
-P No symbolic links are followed. This is the default.
-r Generate messages about directories that cannot be read, files that cannot be opened, and so on. This is the default case. This
option exists solely for conformance with X/Open Portability Guide Issue 4 (``XPG4'').
-s Display an entry for each specified file. (Equivalent to -d 0)
-x File system mount points are not traversed.
The du utility counts the storage used by symbolic links and not the files they reference unless the -H or -L option is specified. If either
the -H or -L options are specified, storage used by any symbolic links which are followed is not counted or displayed. If more than one of
the -H, -L, and -P options is specified, the last one given is used.
Files having multiple hard links are counted (and displayed) a single time per du execution. Directories having multiple hard links (typi-
cally Time Machine backups) are counted a single time per du execution.
ENVIRONMENT
BLOCKSIZE If the environment variable BLOCKSIZE is set, and the -k option is not specified, the block counts will be displayed in units of
that size block. If BLOCKSIZE is not set, and the -k option is not specified, the block counts will be displayed in 512-byte
blocks.
LEGACY DESCRIPTION
In legacy mode, only one of the -H, -L, or -P options may be specified.
The command will detect and report a SYMLOOP error (loop involving symbolic links). In legacy mode, this is not the case.
For more information about legacy mode, see compat(5).
SEE ALSO
df(1), fts(3), compat(5), symlink(7), quot(8)
HISTORY
A du command appeared in Version 1 AT&T UNIX.
BSD
June 2, 2004 BSD