Need AIX command


 
Thread Tools Search this Thread
Operating Systems AIX Need AIX command
# 1  
Old 07-15-2010
Need AIX command

1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB

2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h.

Thanks in advance
# 2  
Old 07-15-2010
1. Read the manpage

2.
Code:
df -g

can (and read the manpage). Are you sure -h works in Solaris? Seems like the Linux human readable option to me.

Last edited by Scott; 07-15-2010 at 06:39 PM..
# 3  
Old 07-15-2010
Quote:
Originally Posted by scottn
Are you sure -h works in Solaris? Seems like the Linux human readable option to me.
"df -h" works since solaris 9 (afair).
# 4  
Old 07-15-2010
Quote:
Originally Posted by DukeNuke2
"df -h" works since solaris 9 (afair).
You're right.. Sorry for that Smilie
# 5  
Old 07-15-2010
And for getting the file sizes in GB format, you can use du -g <file-name>
# 6  
Old 07-16-2010
Thankyou for your reply.

du -g <filename> is not working. My os version is AIX 5.3.


Code:
/home/oracle/bin> du -g export_edw_daily.sh
0.00    export_edw_daily.sh

# 7  
Old 07-16-2010
Hi.

It looks to be working to me.

Your .sh file is just too small, so du -g wouldn't show anything to two decimal places. i.e.:

Code:
$ bc
scale=2
4/1024
0

where it would to three:
Code:
$ bc
scale=3
4/1024
.003

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies

2. AIX

I need help on AIX command

I'm new for aix...I need a command or script to check the high usage of cpu process and the physical cpu utilization... TIA Sumanth (9 Replies)
Discussion started by: sumanthupar
9 Replies

3. AIX

at command in aix

Hi I use this "at" command to unmount 12 filesystems in my aix server echo "ksh /usr/local/bin/umount.sh" | at now i want to schedule it on a daily basis. I know that it can be done via crontab. But Im just curious to know if daily wise scheduling can also be done via the "at" command ?... (1 Reply)
Discussion started by: samsungsamsung
1 Replies

4. AIX

help ma aix command

I don't know to aix command to check number of cpu, speed of cpu memory, size, memory type (ex. memory type chipkill) internal harddisk, size how many to seial I/O ? fibre network interface raid controller, raid type DVD-rom, speed DVD-rom aix version... (1 Reply)
Discussion started by: lovenid
1 Replies

5. UNIX for Dummies Questions & Answers

Need AIX command

1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB 2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h. Thanks in advance (0 Replies)
Discussion started by: e263041
0 Replies

6. AIX

AIX - 'at' command

I am working on AIX 5.2 platform and working with AIX command 'at' . May I am getting a weird problem . I have a script which is scheduled to run everyday.It uses 'at' command to call one java program. Most of the times 'at' command works fine without any issue but sometimes 'at' command... (10 Replies)
Discussion started by: techi_0408
10 Replies

7. AIX

Which command in AIX 5L is replace updatelv in AIX 4.3?

When I import VG, it shows: 0516-622 synclvodm: Warning, cannot write lv control block data. I found AIX V4.3 have updatelv command can recovery LVB from VG, however, updatelv is not existed on AIX 5L, which command to replace it? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

8. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

9. UNIX for Advanced & Expert Users

AIX command help

I have this command in my script and it's working fine with AIX: ls init?*.ora 2>/dev/null | egrep -i -e "" the same command is failing in Solaris 10. does anyone have better idea how to make it work for both ? Thanks (2 Replies)
Discussion started by: talashil
2 Replies

10. Programming

command for hp-ux and aix

is there is any command for obtaining System manfuture detail lke Dell, IBM etc from HP-UX and AIX command. (0 Replies)
Discussion started by: janki0111
0 Replies
Login or Register to Ask a Question