How to Check your login and Find Yourself in which directory you are in Linux

How to check your Login in Linux

 

If you have forgotten whether you are logged in as root or another user, you can use the command to see which user you are logged in as:
 kali > whoami
 > root
if your are logged in with another user then the out is your username mine is user2  then the output is 
kali > whoami
>user2

Find yourself in which directory you are currently:

The command line in Linux does not always make it apparent which directory you are presently in.
 Enter pwd in your terminal to see where you are:
kali >pwd
/root

2 comments: