Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


removing files from Solaris

removing files from Solaris

removing files from Solaris

I have files in a Solaris 9 x86 system that I can do a #ls and see certain files but if I do a ls -al I can't see the files, I am trying to remove the files and I get an I/O error any suggestions on how to remove the files.

RE: removing files from Solaris

Can you show us a sample of the output from #ls (I'm assuming the # is the prompt?).

The internet - allowing those who don't know what they're talking about to have their say.

RE: removing files from Solaris


I am trying to remove files on solaris 10 older than an hour old. I have used generic find and /usr/xpg4/bin/find but cannot seem to list the files I need.
Can you please assist with whether Solaris can handle the file manipulation in hourly format. The generic find command doesn't appear to like anything in fraction but only in number of days.


RE: removing files from Solaris

You should start your own thread for a new question normally... but since this thread seems to be an orphan anyway it was probably kind of you to adopt it.  smile

Solaris' (and most major Unix vendors') find lacks the handy -mmin and similar GNU options that give finer-grained accuracy than the -mtime style equivalents.

A workaround is to touch a temporary file with a timestamp of an hour ago, and then use the ! -newer logic.


# date
Tue Jul 12 10:39:48 EST 2011
# touch -t 07120939 /tmp/hourago
# find /somedir ! -newer /tmp/hourago

Of course, assuming this will be automated, the time subtraction introduces its own fun and games...


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close