/*系統及路徑*/
我使用的系統是 RedHat 7.0
而whoami這個指令是放在 /usr/bin 下
/*shared library*/
whoami這個指令所用到的shared library有
libc.so.6,ld-linux.so.2
/*主要用途說明*/
可以確定目前你使用的process是哪個user,醬如果有人被你hack的話,可以確定那個
倒楣鬼是誰:p
//因為如果沒設定的話,只會show出"#",所以要用whoami確定
/*支援的參數及其意義*/
[northstar@FROZENN ~]$ whoami --help
Usage: whoami [OPTION]...
Print the user name associated with the current effective user id.
Same as id -un.
--help display this help and exit
--version output version information and exit
Report bugs to
//show出whoami這個指令的求救(help)畫面,包含可加的參數
[northstar@FROZENN ~]$ whoami --version
whoami (GNU sh-utils) 2.0
Written by Richard Mlynarik.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[northstar@FROZENN ~]$ whoami --version
whoami (GNU sh-utils) 2.0
Written by Richard Mlynarik.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
//show出此RedHat的版本