AIX unix

I need help on AIX unix .

How to handle vi editor
How to find disk space
how to use find command to find a file
What is -a flag means - (if -a $filename)
What is type means , eg : type scriptname

Thanks
LVL 5
magentoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

andreasSystem AdminCommented:
vi is a world of its own. read a tutorial for it like this one:

http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html (very simple beginner steps, vi can do much more than this)

df -k

find ./ -name filename will search for filname in current directory

-a is test if a file does exist

type is telling you what type a command is. (file, script, built in shell command, etc...)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andreasSystem AdminCommented:
All those are simple linux/unixs basics. If you want to learn about, install yourself a linux in a virtual machine and play around with it. If you are really technical interested you will find it amazing, what can be done with it ;)

And its much more easy to understand as the internals of windows ;)
0
CSIA ANCommented:
To see total disk size of disks on your system?
lspv|while read a b;do echo "In MB $a has  \c" ;getconf DISK_SIZE /dev/$a; done

Open in new window


To see which disk belong to which VG?
lsvg -o|while read a b;do lsvg -p $a; echo; done|grep -v PV_NAME|awk '{print $1}'

Open in new window


To see total and free MB in every VG?\
lsvg -o|while read a b;do echo "VG=$a " ;lsvg $a|egrep 'TOTAL PPs:|FREE PPs:'|awk '{print $4 "space in MB""--"  $7}'|sed 's/(//';echo;done

Open in new window


To see which LV are on which VG?
lsfs|grep -v proc|egrep -v 'nfs|cdrom|'|sed 's/\/dev//'|sed 's/\///'|awk '{print $1" " "--" $3}'|while read a b;do echo "LV=$a is on \c";lslv  $a|egrep 'VOLUME GROUP:'|awk '{print $6}';done

Open in new window


This is my workaround ;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.