03-16-2011
Thanks for the reply. The files are on the same partition. I am using Ubuntu 10.10. The files are in subdirectories under my home directory.
10 More Discussions You Might Find Interesting
1. HP-UX
Hi, does anyone know how to find files who have the last access time bigger than 5 min ago, in linux i use: find ./ -amin +5 -type f -maxdepth 1 -name "*.*"
but in hp-ux the find command doesn't have the -amin option.... (2 Replies)
Discussion started by: mvrk
2 Replies
2. UNIX for Dummies Questions & Answers
I thought that access time of a file is time when the file was run last time (or I read somewhere that it's time when system lookup the file -> but I'm not sure when it really is)
How is it exactly?
Thank you for help! (11 Replies)
Discussion started by: MartyIX
11 Replies
3. Shell Programming and Scripting
Hi,
I want to change the access permissions of the files whose extension is same.For example *.c but these are inside a directory and inside that other directory is there and it contains the .c files..for example--
So my aim is to search the files under src and change the access permissions... (3 Replies)
Discussion started by: smartgupta
3 Replies
4. Shell Programming and Scripting
i have file named aaaa.
The file aaaa was zipped on one particular time.
Need to know the command to find out when the file "aaaa" was actually zipped. (1 Reply)
Discussion started by: expert
1 Replies
5. UNIX for Advanced & Expert Users
Hi ,
How can I get the last access time of a file upto the precesion of seconds in Unix.
I cannot use stat as this is not supported. (10 Replies)
Discussion started by: kanus
10 Replies
6. AIX
Dear All,
I'm working as a DBA and dont have much knowledge at OS level commands.we have requirement that we need find the files which has been last accessed >= apr 2010and also access date <= apr 2010 for a large set of files.Do know some commands likeistat, ls -u.But can anyone provide me the... (4 Replies)
Discussion started by: dbanrb
4 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone
When I'm starting my script I'm giving to it two parameters:
script.sh ext1 ext2
I need to copy all files in a directory fitting ext1, to the same folder, with the same names, but with the changed extension to ext2.
Till now I've just managed to do it for only 1 file, but I... (16 Replies)
Discussion started by: vacuity93
16 Replies
8. Red Hat
Hi, I am facing a weird file access time issue on redHat5.x. I have a program which will scan the files in the NFS system and delete files which are older than 4 days, before deleting files program will print the access time of the file.
Some of the files are getting deleted which are not older... (1 Reply)
Discussion started by: Satyak
1 Replies
9. Red Hat
My query please:
What I saw how access times of a file and directories work.
1) For a file the access time is the time when I 1st access it after last modification of the file, i.e., if the file is modified at 10 AM and then I access it at 11 AM. After than whenever I access without... (7 Replies)
Discussion started by: ravisingh
7 Replies
10. UNIX for Beginners Questions & Answers
Hello... And thanks in advance for any help anyone can offer me
I was trying to work out the differences between displaying modify, access, and change times with the 'ls' command. Everything seems in order when I look at files, but the access time on a directory doesn't seem to change when I... (4 Replies)
Discussion started by: bodisha
4 Replies
LS(1) General Commands Manual LS(1)
NAME
ls, lc - list contents of directory
SYNOPSIS
ls [ -dlnpqrstuF ] name ...
lc [ -dlnqrstuF ] name ...
DESCRIPTION
For each directory argument, ls lists the contents of the directory; for each file argument, ls repeats its name and any other information
requested. When no argument is given, the current directory is listed. By default, the output is sorted alphabetically by name.
Lc is the same as ls, but sets the -p option and pipes the output through mc(1).
There are a number of options:
-d If argument is a directory, list it, not its contents.
-l List in long format, giving mode (see below), file system type (e.g., for devices, the # code letter that names it; see Intro(4)),
the instance or subdevice number, owner, group, size in bytes, and time of last modification for each file.
-n Don't sort the listing.
-p Print only the final path element of each file name.
-q List the qid (see stat(2)) of each file.
-r Reverse the order of sort.
-s Give size in Kbytes for each entry.
-t Sort by time modified (latest first) instead of by name.
-u Under -t sort by time of last access; under -l print time of last access.
-F Add the character / after all directory names and the character * after all executable files.
The mode printed under the -l option contains 11 characters, interpreted as follows: the first character is
d if the entry is a directory;
a if the entry is an append-only file;
- if the entry is a plain file.
The next letter is l if the file is exclusive access (one writer or reader at a time).
The last 9 characters are interpreted as three sets of three bits each. The first set refers to owner permissions; the next to permissions
to others in the same user-group; and the last to all others. Within each set the three characters indicate permission respectively to
read, to write, or to execute the file as a program. For a directory, `execute' permission is interpreted to mean permission to search the
directory for a specified file. The permissions are indicated as follows:
r if the file is readable;
w if the file is writable;
x if the file is executable;
- if none of the above permissions is granted.
SOURCE
/sys/src/cmd/ls.c
/rc/bin/lc
SEE ALSO
stat(2) mc(1)
LS(1)