10-15-2015
Quote:
Originally Posted by
Maddy123
Could you please explain above line with few examples as I feel difficult to understand it correctly.
When you use
du -sm or
du -sk or
du -sg you will get all numbers in the same unit: kilobytes, megabytes, gigabytes or whatever. You can sort this output numerically and get valid results (that is, the files sorted by their size).
When you use the GNUism
du -sh instead it will display the numbers in
differing units and because "50M" (megabytes) is bigger than "500k" (kilobytes) but numerically smaller ("50" is smaller than "500" and
sort doesn't know about units) you will get invalid results.
So, if you plan to use
sort on your results you should stick to the AIX-variant of
du anyways and not even think about using the GNU-variant
du -h.
I hope this helps.
bakunin
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey y'all,
I need some help with the nitty gritty of the ls command.
-First off in the man pages in the -l mode the first character can be "door" can anyone tell me what a door is???
-also in the -l mode the first character can be "fifo"or"pipe" can anyone tell me what a this is???
-What... (4 Replies)
Discussion started by: jacob358
4 Replies
2. UNIX for Advanced & Expert Users
System Parameters:
maximum number of processes = 2048
Network parameters:
ipqmaxlen - 512
rfc1323 - 1
sb_max - 1310720 (2*655360)
tcp_recvspace - 65536
tcp_sendspace - 65536
Udp_recvspace - 655360
Udp_sendspace 65536 (1 Reply)
Discussion started by: R00tSc0rpi0n
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code.
Please give some resolution.
SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies
4. AIX
Hi,
What is the command to get the disk adapter performance details in AIX?.
Guide me. (2 Replies)
Discussion started by: maruthu
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all ,
could anyone please help with find command in AIX. I am trying to find files but there are more than 30thousand files in there.I realise I need to use xargs somehow but dunno the correct way to pull this.
find /log_directory/* -prune -xdev -type f -mtime +20 | xargs ls -l
the... (2 Replies)
Discussion started by: erinlomo
2 Replies
6. Shell Programming and Scripting
I'm new to this and I have done a lot of research and am 99% done with my ksh script BUT I need help with. The script looks at Journal files and reports back on any that have not been updated for 15 min. Everything works but I wanted more detail (added -ls) and now I'm getting dups.
Original code:... (2 Replies)
Discussion started by: blackopz
2 Replies
7. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
8. Shell Programming and Scripting
hi,
i have a fixed width file with multiple columns and need to print data using awk command.
i use: awk -F "|" '($5 == BH) {print $1,$2,$3}' <non_AIM target>.txt for a delimiter file.
but now i have a fixed width file like below:
7518 8269511BH 20141224951050N8262
11148 8269511BH... (5 Replies)
Discussion started by: kcdg859
5 Replies
9. AIX
Hi,
Can someone help me out, how I can find the details of the Fonts installed on AIX,
details such as the font type, directory,
Non-Latin Fonts like Greek, Hebrew, or Arabic,
starting with Arabic
Objective: Oracle Reports creates PDF on AIX
we want to use ARABIC Fonts which are... (1 Reply)
Discussion started by: filosophizer
1 Replies
QUOT(8) System Manager's Manual QUOT(8)
NAME
quot - summarize filesystem ownership
SYNOPSIS
quot [ -acfguvi ] [ filesystem... ]
DESCRIPTION
quot displays the number of kilobytes in the named filesystem currently owned by each user or group. Note that this utility currently works
only for XFS.
OPTIONS
-a Generate a report for all mounted filesystems giving the number of kilobytes used by each user or group.
-c Display three columns giving file size in kilobytes, number of files of that size, and cumulative total of kilobytes in that size or
smaller file. The last row is used as an overflow bucket and is the total of all files greater than 500 kilobytes.
-f Display count of kilobytes and number of files owned by each user or group.
-g Report on groups.
-u Report on users (the default).
-v Display three columns containing the number of kilobytes not accessed in the last 30, 60, and 90 days.
-i Ignore mountpoints mounted by automounter.
-T Avoid truncation of user names longer than 8 characters.
-q Do not sort the output.
FILES
/etc/mtab mounted filesystem table
/etc/passwd default set of users
/etc/group default set of groups
SEE ALSO
du(1), ls(1).
BUGS
Currently, only the XFS filesystem type is supported.
QUOT(8)