10-14-2003
Use the ls command on the file in question.
ls -l file # show mtime
ls -lc file # show ctime
ls -lu file # show atime
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to load a group of files and their last dates modified into a text file that will in turn be used with SQL*Loader to load these files into Oracle. I am using a *.ksh script. I am getting the name of the file in by using the following:
for file_ext in 'cat loaddir.ext';
do
find... (2 Replies)
Discussion started by: akpopa
2 Replies
2. UNIX for Dummies Questions & Answers
Hi EVERYONE!!...
Just a simple (yet critical from my perspective) doubt... I would like to know who had edited my file.. when I use
ls -l
command, I see my ID.. but when I edit using some other ID, I had expected that ID to be shown.. but still
ls -l
shows my ID only..
So, is there any... (4 Replies)
Discussion started by: mohanprabu
4 Replies
3. UNIX for Dummies Questions & Answers
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have the following script to delete the last modified file in a directory.
#!/bin/ksh
if file in $(ls -t /home/KOP/Purge | head -1)
then
rm -f $file
fi
But I keep getting the error
0653-901 Cannot get file status
Any suggestions or comments as to where I'm getting... (1 Reply)
Discussion started by: kingofprussia
1 Replies
5. Shell Programming and Scripting
Hi,
Is there any simple way to get the last modified file in a set of 2 or more directories? This should return one file only (not 1 file per directory)
Thanks for your help (4 Replies)
Discussion started by: m69w
4 Replies
6. Shell Programming and Scripting
I am trying to write a script to backup my laptop to a NAS drive using rsync. I want the backup to be done, only if it has been more than a week since my last backup.
Each time the rsync command executes, I also create a file backuptime.txt file, with the time at which the script completed the... (1 Reply)
Discussion started by: anandjayaraman
1 Replies
7. Shell Programming and Scripting
Hi,
I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10).
For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies
8. Shell Programming and Scripting
i have a requirement where i needed to change variable values in a properties file(first file) whenever there is change to Release details file(second file). My question is do i have to create a daemon process that always checks the modified time/inode change of the second file and then change the... (1 Reply)
Discussion started by: saikiran_1984
1 Replies
9. Shell Programming and Scripting
Hi,
I am looking for a shell script with the following.
1. It should check whether a particular file exists in a location
#!/bin/sh
if ;
then
echo "xxx.txt File Exists"
else
echo "File Not Found"
fi
2. If file exists, it should check for the modified date and run a command... (2 Replies)
Discussion started by: karthikeyan_mac
2 Replies
10. Shell Programming and Scripting
Hi All,
How to find a file modified more than once....
Thanks in advance (2 Replies)
Discussion started by: kmsekhar
2 Replies
FS(4) Kernel Interfaces Manual FS(4)
NAME
fs - file server, dump
SYNOPSIS
none
DESCRIPTION
The file server is the main file system for Plan 9. It is a stand-alone system that runs on a separate computer. It serves the Plan 9
protocol on a variety of networks including Datakit/URP, Ethernet IL/IP and Cyclone fiber direct connections. The name of the main file
server at Murray Hill is bootes.
The file server normally requires all users except to provide authentication tickets on each attach(5). This can be disabled using the
noauth configuration command (see fsconfig(8)).
The user none is always allowed to attach to bootes without authentication but has minimal permissions.
Bootes maintains three file systems on a combination of disks and write-once-read-many (WORM) magneto-optical disks.
other is a simple disk-based file system similar to kfs(4).
main is a worm-based file system with a disk-based look-aside cache. The disk cache holds modified worm blocks to overcome the write-
once property of the worm. The cache also holds recently accessed non-modified blocks to speed up the effective access time of the
worm. Occasionally (usually daily at 5AM) the modified blocks in the disk cache are dumped. At this time, traffic to the file sys-
tem is halted and the modified blocks are relabeled to the unwritten portion of the worm. After the dump, the file system traffic
is continued and the relabeled blocks are copied to the worm by a background process.
dump Each time the main file system is dumped, its root is appended to a subdirectory of the dump file system. Since the dump file sys-
tem is not mirrored with a disk cache, it is read-only. The name of the newly added root is created from the date of the dump:
/yyyy/mmdds. Here yyyy is the full year, mm is the month number, dd is the day number and s is a sequence number if more than one
dump is done in a day. For the first dump, s is null. For the subsequent dumps s is 1, 2, 3, etc.
The root of the main file system that is frozen on the first dump of March 1, 1992 will be named /1992/0301/ in the dump file sys-
tem.
EXAMPLES
Place the root of the dump file system on /n/dump and show the modified times of the MIPS C compiler over all dumps in February, 1992:
9fs dump
ls -l /n/dump/1992/02??/mips/bin/vc
To get only one line of output for each version of the compiler:
ls -lp /n/dump/1992/02??/mips/bin/vc | uniq
Make the other file system available in directory /n/bootesother:
mount -c /srv/boot /n/bootesother other
SOURCE
/sys/src/fs
SEE ALSO
yesterday(1), srv(4), fs(8)
Sean Quinlan, ``A Cached WORM File System'', Software - Practice and Experience, December, 1991
FS(4)