- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Strange files appearing in /usr/bin
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 08:28 AM
05-15-2002 08:28 AM
I was checking my backup the other day I found that my backup had some strange characters in its content, so I thought that my backup was corrupted. After I checked the "ls -li /usr/bin" directory, I got this:
----------------------
19028 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??K??
19029 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??E_T??=??
4
19024 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ????????
19027 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ???? ??
19020 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??K???K???
19031 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??K???!K???K???K???
19022 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??JW
19025 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??K5
19026 -rw-r--r-- 1 root sys 0 Apr 15 13:13 R]7??
19023 -rw-r--r-- 1 root sys 0 Apr 15 13:13 ??H884????O??
---------------------
I have no idea why those files got created initially, they have all been created at the same time, strange...
The question I have is this:
How do I remove these files ?
since I don't know how to pass their real name to the rm command. Can I remove them based on their inode number ?
Any help, would be greatly appreciated, thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 08:31 AM
05-15-2002 08:31 AM
Re: Strange files appearing in /usr/bin
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 08:32 AM
05-15-2002 08:32 AM
Re: Strange files appearing in /usr/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 08:40 AM
05-15-2002 08:40 AM
Solutionand then edit the file /tmp/badfiles and remove the file names you DO NOT want to delete, and leave just the files to be deleted.
then you can do:
for FILE_NAME in `cat /tmp/badfiles/; do
rm -i $FILE_NAME
done
and answer y to the prompt to remove the file.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 08:51 AM
05-15-2002 08:51 AM
Re: Strange files appearing in /usr/bin
How do I check the entire system for the presence of thes strange files ?
Thank you for all your suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 09:09 AM
05-15-2002 09:09 AM
Re: Strange files appearing in /usr/bin
Just as a add on to this thread, I've found that these type files are generally created by some script gone amok.
Specifically I've seen some poorly written Expect scripts do this. Although I'm sure other type scripts could do this as well.
If you wish to track down the source you might investigate what scripts might have been run at the time these files appeared.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 09:13 AM
05-15-2002 09:13 AM
Re: Strange files appearing in /usr/bin
"-", which the shell interpreted as an invalid parameter. I finally figured out "rm ./-" works.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 11:12 AM
05-15-2002 11:12 AM
Re: Strange files appearing in /usr/bin
find . \( -name [:space:] -o -name [:print:[ -o -name [:graph:] -o -name [:cntrl:] -o -name [:blank:]\) -print
hth,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 12:47 PM
05-15-2002 12:47 PM
Re: Strange files appearing in /usr/bin
when I run this command
# find / \( -name [:space:] -o -name [:print:[ -o -name [:graph:] -o -name [:cntrl:] -o -name [:blank:]\) -exec ls -ltr {} \;
I get this error
find: bad option
By the way, what is [:space:] and [:print:] ?
What is being matched during this find command ?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 12:58 PM
05-15-2002 12:58 PM
Re: Strange files appearing in /usr/bin
You need a blank (space) character before the escaped closing parenthesis. See the man pages for 'find', its noted therein.
A regular expression of character classes is being used to match files. See 'man 5 regexp'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2002 02:32 PM
05-15-2002 02:32 PM
Re: Strange files appearing in /usr/bin
find / \( -name [:space:] -o -name [:print:] -o -name [:graph:] -o -name [:cntrl:] -o -name [:blank:] \ ) -print
Gives this output error:
syntax error: `)' unexpected
This command:
find . \( -name [:space:] -o -name [:print:] -o -name [:graph:] -o -name [:cntrl:] -o -name [:blank:] \) -print
Gives me the prompt back like nothing executed.
Either case with the space and no space none give me any results.