Attention Shell Scripters

Hi mates,

Hope this is very simple for those who r well versed wth scripting but I'm literally new to scripting so please guys help me out in writing these basic scripts.I'm using Bash and Vi editor.

1 ....How to write a script that takes a file as an argument. The script should be able to determine what permissions the owner, group and everybody has for the file passed in. The output should be displayed similar to this.

READ WRITE EXECUTE
OWNER RICKY YES YES NO
GROUP USERS YES NO NO
EVERYBODY NO NO NO

2....Write a script to determine the percentage of system disk space you are using.

3 .....How to create a script which will allow you to find all users currently logged on to the system and display the processes they are running. The heading for each user must be their real name not their log in name.
I.e. my login name is lee.ballancore but my real name is Lee Ballancore
The users must not be displayed more than once.

cheers

See the rules