Hello guys I am Dr Hack Virus coming with new topic of Kali Linux Command.
Many users have problems that how to find the current user in Kali Linux, so i show you how to find the current user in Linux Operating System & this is basic command in Linux so then all users learn this command.
So let Start !
Syntax
" whoami [options] "
- whoami
This command display the username of the current user which are the currently login in the system.
whoami command is used both in Unix Operating System & Window Operating system.
"Command"
whoami
Display the name of the user [root] who runs the command.
Options
--help [ Display a help message and exit]
--version [ Display version information and exit]
these both command use the two times hyphen[ - ] symbol
We have more command find out the who the current login in the system
1. id -un
" This command is works as a whoami command "
2. users
" Users command in Linux system is used to show the user currently logged in the current host "
These all commands show you the current user and tell you the who control the system. I hope you like my post and tell which type content you need comment in the box .
Thank you !
Comments
Post a Comment