Solaris command needed.......


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Solaris command needed.......
# 1  
Old 07-22-2009
Solaris command needed.......

Hi can anyone tell me what command should i use to find the files which have been created within 24hrs in / .


I tried with this

find mtime 24 /

But its not working. Pls let me know to solve the issue.
# 2  
Old 07-22-2009
Hi.

-mtime works in days not hours, so you would use -mtime -1 (and incidentally, there's no way to find out when files were created - only when they were last modified)
# 3  
Old 07-22-2009
Code:
# assume "now" == Jul 22 @ noon, set a filetime to noon Jul 21
touch -t 200907211200 dummy
find / -newer dummy  -exec ls -l {} \;

This gives files modified in the last 24 hours
# 4  
Old 07-22-2009
thanks jim

---------- Post updated at 04:44 AM ---------- Previous update was at 04:44 AM ----------

thanks scott
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris Study Advice Needed

I just have a question regarding learning Solaris, I have a Linux and AIX background and I would like to learn Solaris, I have been giving some Solaris 10 Study Guides and just wondered how relevant they would be to Solaris 11 or should I try and get some study materials which are targeted towards... (1 Reply)
Discussion started by: markmorris182mx
1 Replies

2. Homework & Coursework Questions

C++ Environment needed on Solaris,Program lifecycle

Hello, I would like to build some sample C++ application on Solaris SunOS 5.8 Generic Virtual sun4v sparc. so I would like to know what are the compilation utilities and runtime utilities I need to get in my machine and will any one explain me the detaied life cycle of program like what... (1 Reply)
Discussion started by: Revathi R
1 Replies

3. Solaris

help needed new open solaris user

this is my problem i ended up with open solaris op system because i got a virus on my system and wiped out my windows os and i was advised that open solaris runs on my system so i installed it but its to complicated for me to use so i came across a program called wine that lets you run windows... (3 Replies)
Discussion started by: drdex
3 Replies

4. Solaris

Solaris 6.5 MOD disk copy help needed

Hello, we are running Irix 6.5 on our octane/sgi computers - these computers come with an external Sony MOD drive attached via a scsi cable. We have backed info to 2.3 gig MOD disks over the years and woule like to duplicate the MOD's. I believe there are 3 ways to do this: add a second... (1 Reply)
Discussion started by: drew_holm
1 Replies

5. Solaris

Help needed regarding Solaris 10 patch Management

Hello Friends.. I have not tried anything related to Solaris patch and wish to learn more about it. I just wanted to try the patchadd and patchrm commands and how they work, just for educational purpose. I tried to download Solaris 10 patches, it asked me to register at sunsolve.com and i... (5 Replies)
Discussion started by: saagar
5 Replies

6. Solaris

Help needed...solaris 10 crashing after installation

I installed solaris 10 in my amd based system with 512 mb ram. After installation it booted poping up the grub menu...after that... It showed something like....rougly syncing file systems.... ................ done (not all i/o completed) dumping kernel compreesion ratio 2:1 succeded... (1 Reply)
Discussion started by: aji1729
1 Replies

7. Shell Programming and Scripting

sftp script needed for solaris box

Hi , I have a solaris box through which i need to connect to ATM's and pull files using sftp. I did same type of scripting using ftp before but no sftp.The problem now i am facing is, i want to put the password along with this sftp (non-interactive) script. Unfortunately there is no... (3 Replies)
Discussion started by: Renjesh
3 Replies

8. Solaris

Solaris 10,audio don't work and unrar needed

Hi, I'm here again for newbie questions :) I've installed Solaris 10 but audio don't work.I've a Realtek integrated peripheral,listed in Sun Hcl.The volume control is ok also.But nothing came from speakers. I need to install unrar also,I've download it from here Freeware for Solaris with... (1 Reply)
Discussion started by: bgf0
1 Replies

9. UNIX for Dummies Questions & Answers

Sun Solaris information needed

Hello everyone. I wont waste anytime and I will get right to the point. I've been working with Linux for about 7 months and started using OpenBSD and FreeBSD for about 2 months. I have a very strong background in Microsoft (MCSE). I plan to continue working with Microsoft as it's one entity... (10 Replies)
Discussion started by: tarballed
10 Replies
Login or Register to Ask a Question