recently updated files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers recently updated files
# 1  
Old 09-26-2008
recently updated files

How do I find files those have been updated in the last 24 hours, sort them by size descending and then display the top of the long list?
# 2  
Old 09-26-2008
go through the man page of find you can do it..
# 3  
Old 09-26-2008
anybody can go through the man page of any command. or read books, join college. The reason why do I post it here is to get some "real" pointer towards solution. Asking the poster to go read the man page is certainly not what I expected.
# 4  
Old 09-26-2008
Quote:
Originally Posted by shantanuo
anybody can go through the man page of any command. or read books, join college. The reason why do I post it here is to get some "real" pointer towards solution. Asking the poster to go read the man page is certainly not what I expected.
its not a forum where you ask and get it.. its not a fast food center nor ready to eat center..first you have to post your effort towards that problem and here you get direction towards right direction.. if you can't follow it i don't think you are fit to do a shell script..and in find man page its clearly written how to find files modified in last 24hrs and how to display them..

Last edited by vidyadhar85; 09-26-2008 at 04:46 AM..
# 5  
Old 09-26-2008
I completely agree with Vidhyadhar.. Also I think you are asking for a favor here, and not assigning a task.

Everyone in this forum are helpful and would definitely give an answer to the question asked.The only thing that remains from your side is , try something out and ask a question in a graceful manner.

I would leave upto the moderators here, what needs to be done.

Now for your question, check the ctime or newer option of find command.
you would get this information from the man page.
# 6  
Old 09-26-2008
Quote:
Originally Posted by nua7
I completely agree with Vidhyadhar.. Also I think you are asking for a favor here, and not assigning a task.

Everyone in this forum are helpful and would definitely give an answer to the question asked.The only thing that remains from your side is , try something out and ask a question in a graceful manner.

I would leave upto the moderators here, what needs to be done.

Now for your question, check the ctime or newer option of find command.
you would get this information from the man page.
Well. I think everyone is correct.

Normally, "read the man page" is not an acceptable answer, because folks here are expected to be more helpful than that. What I often do when the answer calls for some man page research, I post (quote) the relevant part of the man page in my reply.

On the other hand, if the question is asked and the person who asked the question shows no interest in reviewing the man page, or showing that they tried on their own, there is little reason folks should take their time to answer.

So, I suggest that shantanuo should review the man page on find and then post his attempts, which is what others seem to be suggesting. At least show you read the page and tried....

Hope this helped.
# 7  
Old 09-27-2008
creation time

1) First of all sorry for being impolite.

2) I have tried the following and found that ibdata1 file is No. 1 because it is updated every day and is huge.
ls -lSh `find /var/ -mtime -1` | head
-rw-rw---- 1 mysql mysql 2.8G Sep 27 12:13 /var/lib/mysql/ibdata1
.... other usual MySQL file list....
I wanted to see the "unusal" files created during the last 24 hours (not updated like ibdata1 as shown in the example above) those are huge.

3) Is it true that Unix does not track the creation date of files?
https://www.unix.com/tips-tutorials/2...html#post79750
It means I will not be able to access the info that I am looking for. Thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy files from one drive to another, keeping most recently modified files

Hi all, I am a bit of a beginner with shell scripting.. What I want to do is merge two drives, for example moving all data from X to Y. If a file in X doesn't exist in Y, it will be moved there. If a file in X also exists in Y, the most recently modified file will be moved to (or kept) in... (5 Replies)
Discussion started by: apocolapse
5 Replies

2. UNIX for Advanced & Expert Users

List all files in subdirectories which are modifiled recently.

Hello, I wanted to list all files in subdirectories which are modifiled recently. need to display all files with full details like hpw it display with ls -l ( date, size,..) Thanks Bala (3 Replies)
Discussion started by: balareddy
3 Replies

3. UNIX for Dummies Questions & Answers

How to archive old files from the recently added 10 files?

Hi there, I am very new to unix and having trouble with a fairly simple statement: cd /user ls -t -c1 | sed -ne '11,$p' | mv xargs archive/ What I want the code to do is sort all files in a directory by timestamp, select all of the files after the 10th file, and then move those files... (3 Replies)
Discussion started by: DSIReady
3 Replies

4. Shell Programming and Scripting

how to delete the older files other than the recently added 5 files

Number of files will get created in a folder automatically daily.. so i hav to delete the older files other than the recently added 5 files.. Could u help me through this..?? (5 Replies)
Discussion started by: shaal89
5 Replies

5. Shell Programming and Scripting

Search for a recently updated file

Hi, I am looking for a command to search for a specific file which was recently modified in the current directory leaving some unwanted files to be listed. For example, when I try ls - lrt it shows the following output. I want to ommit the files with the name 'resend' and... (3 Replies)
Discussion started by: svajhala
3 Replies

6. UNIX for Dummies Questions & Answers

Find recently changed files

Hi, Can you guys tell me how do i find the most recently changed files, say an hour before, few hours before, a day before etc.... Thanks!!!! (3 Replies)
Discussion started by: raghu_shekar
3 Replies

7. Shell Programming and Scripting

find recently modified/ updated file

hi gurus, i would like to know how can i find logs files which were recently modified or updated? :confused: using this command? find . -name "*.log" -mtime ?? so what should i put for mtime? thanks. wee (9 Replies)
Discussion started by: lweegp
9 Replies

8. Shell Programming and Scripting

Find recently updated files in home directory

Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours? (e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
Discussion started by: Kain
2 Replies

9. Shell Programming and Scripting

Trying to Copy Files Changed Recently

I have been toying around with a script that will copy all files altered in a development directory over to a testing directory and have been trying to construct the command to meet my needs. Basically I am using find in a directory to see what files have changed over the past 24 hours. Then if... (4 Replies)
Discussion started by: scotbuff
4 Replies

10. UNIX for Dummies Questions & Answers

chmod command for recently modified files

hello! is there a way for me to use the chmod command to change permissions for several files all at once -based on the fact that these files were all most recently modified TODAY ? I can't use a wildcard on their filenames because the filenames are varied. But I was hoping I could somehow do... (2 Replies)
Discussion started by: polka_friend
2 Replies
Login or Register to Ask a Question