Sunday, November 19, 2006

AIX - Handy Command - " While"

One of my favorite command in the AIX is using the "while condition". Refer to the following:

#while true
>do
>df -k ( or any commands you like e.g ls -lrt;
>sleep 10
>clear
>done

What the above command will do is actual it will display the "df -k" in every 10 sec and keep displaying it until u press the "control c" button. It is so convinience especially if you want to
monitor the progress of "data transfer" or want to monitor same command continously.

No comments: