Command to find file system details on AIX


 
Thread Tools Search this Thread
Operating Systems AIX Command to find file system details on AIX
# 8  
Old 10-11-2015
Michale,

I think my question is not that much clear for you. Sorry for that.I will explain it again.

What OS command is used to display files under the directory along with their sizes as shown example below.

Code:
/tmp
file1 5 MB
file2 10 MB
file3 8 MB
file4 10 GB .......

Regards,
Maddy

Last edited by Don Cragun; 10-11-2015 at 07:18 PM.. Reason: Add CODE tags.
# 9  
Old 10-12-2015
Moderator's Comments:
Mod Comment Maddy123, i ask you to at least try to read what is written for you. It might be that your question is not answered in one-to-one mode, but that doesn't exempt you from having to follow an answer to the end and give an honest try in finding out what someone is trying to explain to you.


Quote:
Originally Posted by Maddy123
I think my question is not that much clear for you.
In fact, it is the other way round: it was perfectly clear to Michael what you want to do, why you failed in doing so and what you could do to rectify that.

Quote:
Originally Posted by Maddy123
What OS command is used to display files under the directory along with their sizes as shown example below.
To use Michaels own words:

Quote:
Originally Posted by MichaelFelt
The IBM versions of du and df do not know the option 'h' - which is the option GNU uses as a wildcard for sizes.
Quote:
Originally Posted by MichaelFelt
If you need/want support for the -h option you will need to get GNU coreutils for AIX.
Along with that he told you how to find out if you have these versions already installed, where you can get them if you are interested in installing them and where on your system they will be located once you indeed install them at all. Plus he gave some background information nobody else could have provided, because - to my knowledge - he is the only one with direct and personal access to the labs of the OS' manufacturer.

In my book that is not only not "confusing" at all, but rather "utterly helpful" and "accomodating to the utmost". What - save for having them installed for you - do you think he should have done for you??

I suggest you change your attitude a bit: from entitlement towards cooperation. It might not only help you here but also with properly working your systems.

bakunin

/PS:
Quote:
Originally Posted by Maddy123
What OS command is used to display files under the directory along with their sizes as shown example below.

Code:
/tmp
file1 5 MB
file2 10 MB
file3 8 MB
file4 10 GB .......

There is no such command because the output of du is the other way round, with the size in front:

Code:
# du -sm *
0.00    file1
0.00    file2
0.06    file3

These 2 Users Gave Thanks to bakunin For This Post:
# 10  
Old 10-12-2015
I use du -sk * | sort -n
Should work on any unix.

For fancy MB/GB display you can always do a little math in awk piped or a shell variable.

It should be a good practice for you to write such portable awk program using forums and search engines.

Hope that helps
Regards
Peasant.
# 11  
Old 10-12-2015
@ bakunin: I share exactly this feeling.
# 12  
Old 10-12-2015
Hi,

Thanks everyone for sharing commands.

With help of your commands I was able to find the files and it's corresponding sizes under the directory.But couldn't able to determine each file sizes as shown below.

Code:
$ du -sm *
0.00    Housekeep_test
200.01  orcl_archive.dbf
105900.18       orcladmdata.dbf
25000.01        orcladmindex.dbf
4000.01 orclconvert.dbf
3000.01 orclconvert2.dbf
3000.01 orclconvert3.dbf
3000.01 orclconvert4.dbf
11264.05        orclprd_audit_data_01.dbf
400.00  orclprd_redo_01a.rdo
400.00  orclprd_redo_01b.rdo
400.00  orclprd_redo_02a.rdo
400.00  orclprd_redo_02b.rdo
400.06  orclprd_redo_03a.rdo
400.07  orclprd_redo_03b.rdo
28.49   control01.ctl
28.49   control02.ctl
28.49   control03.ctl
20000.05        undotbs03.dbf
20000.06        undotbs04.dbf
20000.18        undotbs05.dbf
20000.15        undotbs06.dbf
20000.13        undotbs07.dbf


Code:
$ pwd
/oradata01/orclprd
$ du -sk * | sort -n

0       Housekeep_test
0       flash_recovery_area
0       lost+found
0       nohup.out
8       spacecheck.txt
29172   control01.ctl
29172   control02.ctl
29172   control03.ctl
204808  orcl_archive.dbf
307208  gelco_index.dbf
409604  orclprd_redo_01a.rdo
409604  orclprd_redo_01b.rdo
409604  orclprd_redo_02a.rdo
409604  orclprd_redo_02b.rdo
512012  users01.dbf
614408  system01.dbf
1043208 gelco_data.dbf
1536008 target_data01.dbf
2047256 temp07.dbf
2047284 temp06.cbf
2096580 temp05.dbf
10240016        temp04.dbf
11534388        orclprd_audit_data_01.dbf
15360232        undotbs25.dbf
15728696        undotbs08
16383376        temp01.dbf
20480008        dbadm_partd_orclprd.dbf
20480008        undotbs01.dbf
20480008        undotbs13.dbf
20480008        undotbs14.dbf
25600008        orcladmindex.dbf
51200008        dbadmdata.dbf
59187224        dbadmindex.dbf
108441784       orcladmdata.dbf

Regards,
Maddy

Moderator's Comments:
Mod Comment edit by bakunin: is it really sohard to use CODE-tags?

Last edited by bakunin; 10-12-2015 at 05:18 PM..
# 13  
Old 10-12-2015
Really!?!

Ref:
Code:
# man du

Code:
-k 	Calculates the block count in 1024-byte units rather than the default 512-byte units.
-m 	Calculates the block count in MB units rather than the default 512-byte units. The output values for the disk usage would be in floating point numbers as value of each unit in bytes is significantly high.

HTH
# 14  
Old 10-13-2015
Hi,

Thanks. How to calculate these file sizes into KB/MB/GB on AIX?

Regards,
Maddy
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

How to find the details of Fonts on 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

2. Shell Programming and Scripting

Print column details from fixed width file using awk command

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

3. Shell Programming and Scripting

How to find a file with a specific pattern for current sysdate & upon find email the details?

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

4. Shell Programming and Scripting

Getting file Details with find -mmin

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

5. UNIX for Dummies Questions & Answers

find command AIX

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

Command to get Disk Adapter details in 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

7. UNIX for Advanced & Expert Users

Using SCP command in IBM AIX to download file from remote to local system

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

8. UNIX for Advanced & Expert Users

How to Find AIX system parameters

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

9. UNIX for Dummies Questions & Answers

Details on the ls command and file types

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
Login or Register to Ask a Question