Activity 1 - Determine User Account

Workshop Resources

Now we are at the command line. Let’s test a simple command to show us the user account.

What are user accounts?

Every user in Linux has a user account. These are used to uniquely identify each user.

For example, say you and your friend, Nuvi, share a computer. You and Nuvi might create separate user accounts to keep track of which files belong to which of you and to ensure that none of you accidentally changes anything important.

How do I find out which account I am using?

The Linux command whoami will tell you which account you are using. Try it!

home directory

In our example above, the terminal output is the name of our user, nuvi.

Now that we checked who we are, next let’s find out where we are.