When I was entering the command
su > echo "sachin"
it was asking for a password. When I gave my password, some strange things happened as you can see:
One more thing: there is another user, Hadoop, on my laptop, but when I do
su > echo "Hadoop"
it says
no passwd entry for Hadoop
What does this mean?
Best Answer
Ah! Nice puzzle!
Just say "
exit
", and all your files will be there (and the output you miss in a file calledecho
).Explication:
is the same as
So you are starting a (sub)shell with
su
(switch user) to your user, with all output redirected to a file calledecho
!Look: