Usernames and processes most used

I need a command that returns the usernames that have ran the 10 processes that have taken the most time to execute on a machine.

I also need a command that returns only those directories that have read/execute permissions for all the users.

now that we all know what your needs are.... what have you tried to accomplish yourself so far?

Not much as I�m fairly new to this:

ps -ef

find . -type d -perm u=rx, o=rx

You pretty much got it.

ps -ef

. Now that will output a column named STIME or something to that effect. This is the time that the process started running. If you are using BSD or any of its flavours, use

ps aux

to get the 'STARTED' column.

And in the find command, use the below syntax to provide the perm value. The octal representation is much easier to use. Also check the man page to understand the usage of the '-' sign in front of the 0005.

find . -type d -perm -0005 -exec ls -ld {} \;

Many thanks for the quick response Blowtorch.