I believe i had accidently wrote a binary file to my / filessystem.
I was trying to transfer a file over to my aix box over telnet via a software called SecureCRT.
I had logged into my aix server via SecureCRT and chosen an option from within that software to transfer a binary a file.
After i chose that option, i believe that particulary binary file got written onto / filesystem or the terminal- i am not really sure what happened!
But now i got bunch of weird looking files in my / filesystem and i am getting an error in my putty session after i type ls command. the error i get is puttyputtyputty name on the command line.
I know the reason i am getting the puttyputtyputty error is due to those weird binary files in / filesystem, and the error is only in / filesystem, every other filesystem works just fine.
[root@server] / # ls
~ .sh_history bharamount home pconsole u
óð .toc bin image.data proc unix
.TTauthority .wmrc bosinst.data lib smit.log uxm
.Xauthority TFSMOUNT cdrom lost+found smit.script var
.dt TT_DB configassist.log lpp smit.transaction websm.script
.dtprofile a.out dev mbox test
.exrc aap etc mio testmount ©$
.java abc fia mkcd tfs
.kshrc abcd gcc mnt tftpboot
.mozilla admin gcc-4.2.0-3.aix5.3.ppc.rpm notes tmp
.profile audit helloworld.c opt tsa
[root@server] / # PuTTYPuTTYPuTTY
i tried deleting whatever werid files i was able to, but i am unable to delete the remaining files, as the names are weird and broken of those files.
can someone help me undo this binary copy that i did? also tell me how i can remove all contents of a directory with one command without removing the actual directory.