Getting Information about Your Userid with id
Occasionally, you may need to find out information about your userid, such as your userid's numeric value and to what groups you belong. This information is essential when you're sharing files (as discussed in Chapter 5) because you'll need it to let people access your files and to access theirs. You can easily get information about your userid with id, as shown in Code Listing 7.13.
To check userid information using id:
Code Listing 7.13. Use id to get information about userids and group memberships.