- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Junk files in Root directory
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
07-11-2004 06:10 PM
07-11-2004 06:10 PM
All of these files are 0 bytes and are created on the same date (ls -l is attached).
How they have been created?
How they can be removed? Because what is display is differnt then what actually is?
I hope could clearly state my problem.
sks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2004 06:20 PM
07-11-2004 06:20 PM
Re: Junk files in Root directory
Perhaps move all files to a directory, move files back to / that should be there. Might be a good idea if you haven't already and move root's home directory to say /root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 07:45 PM
07-12-2004 07:45 PM
Re: Junk files in Root directory
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 01:11 AM
07-13-2004 01:11 AM
SolutionTo remove them, I'd do
ls -l|awk '{printf "rm -f %s\n",$9}'>clean_up
_THEN_ edit clean_up _very_ _VERY_ carefully to make sure it only had the files that I wanted to remove. Maybe have a collegue check the file to make sure that you got it right.
chmod 700 clean_up
then ./clean_up and remove clean_up when I was done
rm -i * would work well too, but if you get punchy during the deletion of 50 files you might just hit the wrong one.
--Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 01:21 AM
07-13-2004 01:21 AM
Re: Junk files in Root directory
Do you have a Windows box with a ftp client - like WSFTP?
I would ftp to that server, and see what the files look like - you might be able to delete with ftp.
The fact that there hasn't been a re-occurrance means they are not required.
They could have been created by someone by accidently cut'n'pasting some garbage on the command line...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 02:52 AM
07-13-2004 02:52 AM
Re: Junk files in Root directory
it looks like someones shell script went wrong but it's hard to say.
As if someone was trying to create a script that looped through a file and created sub-files or whatever and then accidently fed it a binary file.
I would look for whatever else was changed on that date that may give you a clue ...
find / -exec ll {} \; | grep 'Jun 2 2003'
I might not have the spaces correct in the grep there.
Hope you work it out. If they've been there for a year with no modifications, and the fact, that the other systems don't have them then I would try and remove them.
In cases like these I tend to find the ll that works and then make it an rm. Try an ll of the unusual chars ... ll '*[!@#$%^&*]*'
Regards,
PK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 02:59 AM
07-13-2004 02:59 AM
Re: Junk files in Root directory
I have a standard procedure for things like this:
1. Move the offending files to a directory called /safe.
2. If anyone screams that their job is failing because of a missing file, move it/them back.
3. If no one has screamed after a year, delete the files.
Mark Syder (like the drink but spelt different)