Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
RE: [SLE] cron not recognizing changes to /etc/cron.d files [SOLVED] - OT
  • From: "Greg Wallace" <gregwallace@xxxxxxxxxxx>
  • Date: Mon, 10 Apr 2006 18:11:06 -0500
  • Message-id: <!&!AAAAAAAAAAAYAAAAAAAAABYv/fsiAbFHuuseWu7lbHnCgAAAEAAAAEADyvr191pCgBnUI/yXIMgBAAAAAA==@xxxxxxxxxxx>
On Monday, April 10, 2006 @ 3:17 PM, Leendert Meyer wrote:

<snip>
>> I know that with the ls command you say -c to get the status
>> (I guess the same as state) modification time and without the -c you get
(I
>> think) modification time. It would be nice if there was a simple command
>> that would show you all 3 dates for a particular file/directory.

>There is: stat. Look at my output below:

>> >> Here's the output from test I did:
>> >> ---<cut>---
>> >> leen@ws-03:~> f="test.txt"; rm -f $f; echo "a" > $f; stat $f; sleep
10;
>> >> touch $f; stat $f File: `test.txt'

>output from 1st stat cmd:

>> >> Size: 2 Blocks: 8 IO Block: 4096 regular
file
>> >> Device: 308h/776d Inode: 326689 Links: 1
>> >> Access: (0644/-rw-r--r--) Uid: ( 1000/ leen) Gid: ( 100/
users)
>> >> Access: 2006-04-10 21:33:33.000000000 +0200
>> >> Modify: 2006-04-10 21:33:33.000000000 +0200
>> >> Change: 2006-04-10 21:33:33.000000000 +0200
>> >> File: `test.txt'
>> >> Size: 2 Blocks: 8 IO Block: 4096 regular
file

>output from 2nd stat cmd:

>> >> Device: 308h/776d Inode: 326689 Links: 1
>> >> Access: (0644/-rw-r--r--) Uid: ( 1000/ leen) Gid: ( 100/
users)
>> >> Access: 2006-04-10 21:33:44.000000000 +0200
>> >> Modify: 2006-04-10 21:33:44.000000000 +0200
>> >> Change: 2006-04-10 21:33:44.000000000 +0200
>> >> leen@ws-03:~>
>> >> ---<cut>---

>Have a look at 'man stat' too, it shows all kinds of nice formatting
>options. ;)

>Cheers,

>Leen

Nice! I didn't realize it was that easy. I'll have to look at some files on
my system using this. Have you seen any files with all 3 dates being
different?

Greg Wallace



< Previous Next >
Follow Ups
References