Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My /usr/bin/ls command is trashed

Status
Not open for further replies.

gallows

Technical User
Jun 12, 2004
223
US
Someone trashed /usr/bin/ls by doing:
cat textfile > \ls
Now when you ls I can see his text.
Long story, but how can I get it back? I saw ls in /usr/ucb, /usr/xpg4/bin and /usr/bin/sparcv9.

I copied the one in /usr/bin/sparcv9 to /usr/bin and it seemed liked it worked ok. I can ls, and use other programs that use it. But, when I did a truss on it, it looks like there is still a line of trash in there.

Any help is greatly appreciated,

Thanks,
 
Thanks coffeysm.
I would prefer copying from CD but don't know what it's called. Isn't it part of a package?
 
Just copy it off the mini-root of the first cd-rom. It should be under /cdrom/Solaris_8/Tools/Boot/usr or something like that.
 
look into /var/sadm/install/contents it will tell you the name of the package and type (hardlink?)

Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top