Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dredmorbius
on Dec 16, 2011
|
parent
|
context
|
favorite
| on:
The Command Line Crash Course Controlling Your Com...
It's handy in a multi-user environment when you're sudo/su -ing to various users. I'll use it reasonably frequently to test that sudo works as anticipated. "sudo whoami" should return "root".
atsaloli
on Dec 16, 2011
[–]
Yup. "id" is pretty good for that too, and is shorter to type. Give it a whirl.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: