Location: on the road for work; home is private time
Posts: 456
Thanks Given: 10
Thanked 108 Times in 100 Posts
Hi Bakunin (looks funny with a cap ),
Although I am getting close to 20 years professionally with AIX (and nearly 10+ more while it was not my favorite) - I have never had access to the labs.
Back in 1978 - is when I started with UNIX v6 and v7 on PDP, and "college access to the kernel". The deep stuff I learned back then.
As to things like the meaning of -h - like anyone (or perhaps I am alone) not starting in GNU/Linux, I fell over it. From AIX I was used to df -g, and when coreutils are first in my PATH that does not work. I requested it (support for -g) as a feature - and got turned down "because we have -h". That was the day I learned about "-h" and how it relates to du and ds. Looking at Maddy's question - it seems he is looking for a specific layout - with the letters K, M or G behind the number, rather than as a counter.
Maddy,
Working the way it has been in UNIX for years and years (du -sk goes back to 1978 and earlier perhaps) - is not going to work for you.
If I understand you correctly - what you are asking is not standard in UNIX aka POSIX systems. It is not even standard in Linux, because it is GNU - not Linux - who makes these choices. And GNU stands for GNU Not Unix - which they take seriously. If they feel they have a better idea, then they do it that way. They are "not UNIX/POSIX" and are free to make any change they wish. Fortunately, they also try to be compatible with POSIX behavior most of the time.
POSIX does not have -h - so GNU can define that anyway they wish. And so the following outputs show - if you need/want file system stats as you describe - either you will need to write an awk script (or something compareable) to convert the first number that AIX/POSIX du behavior is providing - OR - install coreutils.
Happy hunting!
Both AIX and COREUTILS versions give the same output for the arguments -k, (-sk to sum directories), -m or -sm.
Note the full path of the command:
AIX
COREUTILS
COREUTILS using -h
I think this is what you seem to be looking for - with the letters behind the size. However, note the very very different results when using sort!
Now my largest file is not showing up at the end - because numerically "sort" 500K is larger than 59M. So, just be careful when using sort!
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.
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)
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)
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)
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)
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)
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)
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)