author and jackaroo
posted 8 years ago
The 3 commands that I would normally look at are:
whoami - as mentioned in your other related topic, there are owner, group, and world permissions. This will tell you who you are logged in as so you can see whether you are the owner of a file (note that although this is almost always the name that you logged in as, there are rare occasions that it might be some other name). groups will tell you which groups you are a member of, and as per the last point, you can then determine whether you might match on a particular group permission if you do not have owner permission. sudo -L will list the commands you are allowed to run with elevated permissions. Look at the man page for sudo for more information on this.