unix

What shell am I using on Unix?

To check the shell currently being used on a Unix system enter:

echo $0  

or

ps -p $$  

The above always returns the current shell as the above prints the current process.

What's the difference between the shell currently being used and the shell assigned to the user?

To check the shell assigned to your user account enter:

Unix file permissions

There are three levels of security associated with every directory and file.

  • The first is the "owner".
  • The next is the "group". You are assigned to the appropriate group when you get your account.
  • The last level is "other" which is everyone on the system.

You can give or take away permission to read, write, or execute to any of user, group, or other. To see what permissions are set, use the command

  ls -l

Here are two lines of example output