Category Archives: Linux - Page 11

How to list your sudo rights on a Linux machine

Sometimes you need to check your sudoer rights on a machine. It could be to check that you have the necessary rights for a certain operation or files
To check your sudoer rights just type

sudo -l # l as in list

How to list environment variables in Linux

To get all list of keys and values of the systems environment variables use the command:

env

With this command you can also remove environment variables. To do that use the following syntax:

env --unset= variable #or -u for short