Sponsored Content
Full Discussion: How to find time
Top Forums UNIX for Dummies Questions & Answers How to find time Post 302090293 by blowtorch on Sunday 24th of September 2006 11:07:21 PM
Old 09-25-2006
dakid,
Could you take a look at the man page of ls?
Code:
     -l    Lists in long format,  giving  mode,  ACL  indication,
           number of links, owner, group, size in bytes, and time
           of last modification for each file

What you are seeing is the time the file was last modified.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can any how we can find the time diffrence...?

Hi, I am trying to caluate the time elasped by the job to run.For that i have used the following command: I have one file which contains the following more start.txt 991 STARTED Fri Aug 10 14:04:20 2007 Starting Job JOB_NAME. (...) 1036 STARTED Fri Aug 10 14:04:31 2007 ... (1 Reply)
Discussion started by: Amey Joshi
1 Replies

2. Solaris

find files by time

I'm working on a SunOS 5.8 box and I have to search recursively in directories matching a certain pattern for files with a .log extension that have changed within the last n-minutes, and than select the least recently used file and open it for reading, preferrably with tail. Does anyone know how I... (3 Replies)
Discussion started by: rein
3 Replies

3. Shell Programming and Scripting

how to find the time before 30 minutes

Hi All, I want to find out the time before 30 minutes. I am able to do with in hours limit. date Fri Aug 21 06:50:00 BST 2009 TZ=CST+1 date Fri Aug 21 04:50:02 CST 2009 Can any one please help me (6 Replies)
Discussion started by: vikash_k
6 Replies

4. AIX

How to find time difference between 2 timestamps?

HI All, can some one please help me how to fine the difference between two time stamps say a= Nov 10, 2009 9:21:25 AM b= Nov 10, 2009 10:21:25 AM I want to find difference between the a & b I googled and tried with some options but no luck. My OS is AIX (1 Reply)
Discussion started by: bandlan9
1 Replies

5. Shell Programming and Scripting

Find and Convert UTC Time to PST Time

Hello All - I have a script that grabs data from the net and outputs the following data 46029 46.144 -124.510 2010 07 26 22 50 320 4.0 6.0 2.2 9 6.8 311 1012.1 -0.9 13.3 13.5 13.3 - - 46041 47.353 -124.731 2010 07 26 22 50 250 2.0 3.0 1.6 8 6.4 - 1011.6 - ... (0 Replies)
Discussion started by: drexnefex
0 Replies

6. Linux

Find last system shut down time

Hi, I need to find the last system shutdown time. I got a command last that is used for this.But the command is not give the year. Below i posted the sample output last -x |grep shutdown shutdown system down 2.6.31.5-server- Tue Jan 11 11:45 - 11:46 (00:00) shutdown system down ... (6 Replies)
Discussion started by: maruthu
6 Replies

7. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

8. Shell Programming and Scripting

How to find time difference?

I have a file wich contains time formats and i need to get the time difference TIME1 TIME2 ================================== 20120624192555.6Z 20120624204006.5Z which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (1 Reply)
Discussion started by: wnaguib
1 Replies

9. UNIX for Dummies Questions & Answers

Find time difference

I have a file wich contains time formats and i need to get the time difference TIME1 TIME2 =============== =================== 20120624192555.6Z 20120624204006.5Z which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (23 Replies)
Discussion started by: wnaguib
23 Replies

10. Programming

Find gaps in time data and replace missing time value and column 2 value by interpolation in awk

Dear all, I am kindly seeking assistance on the following issue. I am working with data that is sampled every 0.05 hours (that is 3 minutes intervals) here is a sample data from the file 5.00000 15.5030 5.05000 15.6680 5.10000 16.0100 5.15000 16.3450 5.20000 16.7120 5.25000... (4 Replies)
Discussion started by: malandisa
4 Replies
setacl(1)						      General Commands Manual							 setacl(1)

NAME
setacl - modify access control lists (ACLs) for files (JFS File Systems only) SYNOPSIS
acl_entries file... acl_entries acl_entries]... file... acl_file file... DESCRIPTION
For each file specified, will either replace its entire ACL, including the default ACL on a directory, or it will add, modify, or delete one or more ACL entries, including default entries on directories. The option will set the ACL to the entries specified on the command line. The option will set the ACL to the entries contained within the file acl_file. The option will delete one or more specified entries from the file's ACL. The option will add or modify one or more speci- fied ACL entries. One of the options or must be specified. If or are specified, other options are invalid. The and options may be combined, and multiple and options may be specified. For the and options, acl_entries are one or more comma separated ACL entries selected from the following list. For the option, acl_file must contain ACL entries, one to a line, selected from the same list. Default entries may only be specified for directories. indicates that characters must be typed as specified, brackets denote optional characters, and italicized characters are to be specified by the user. Choices, of which exactly one must be selected, are separated by vertical bars. operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm operm|perm For the option, acl_entries are one or more comma separated ACL entries without permissions, selected from the following list. Note that the entries for file owner, owning group, and others may not be deleted. uid gid uid gid In the above lists, the user specifies the following: perm is a permissions string composed of the characters (read), (write), and (execute), each of which may appear at most one time, in any order. The character may be specified as a placeholder. operm is the octal representation of the above permissions, with 7 representing all permissions, or and 0 representing no permissions, or uid is a login name or user ID. gid is a group name or group ID. The options have the following meanings: Normally, recalculates the group class entry so as to ensure that permissions granted in the additional ACL entries will actually be granted, and the value specified in the entry is ignored. If the option is specified, the recalculation is not performed, and the value specified in the entry is used. Set a file's ACL. All old ACL entries are removed, and replaced with the newly specified ACL. There must be exactly one entry specified for the owner of the file, exactly one entry specified for the owning group of the file, and exactly one entry specified. If the option is not specified there must also be exactly one entry specified. There may be additional ACL entries and additional ACL entries specified, but there may not be duplicate additional ACL entries with the same uid, or duplicate additional ACL entries with the same gid. If the file is a directory, default ACL entries may be specified. There may be at most one entry for the owner of the file, at most one entry for the owning group of the file, at most one entry for the file group class, and at most one entry for other users. There may be additional entries and additional entries specified, but there may not be duplicate additional entries with the same uid, or duplicate additional entries with the same gid. never recalculates the entry, regardless of whether or not the option was specified. An entry with no permissions will result in the specified uid or gid being denied access to the file. The entries need not be in order. They will be sorted by the command before being applied to the file. Add one or more new ACL entries to the file, and/or change one or more existing ACL entries on the file. If an entry already exists for a specified uid or gid, the specified permissions will replace the current permissions. If an entry does not exist for the specified uid or gid, an entry will be created. Delete one or more existing ACL entries from the file. The entries for the file owner, the owning group, and others may not be deleted from the ACL. Note that deleting an entry does not necessarily have the same effect as removing all permissions from the entry. Specifically, delet- ing an entry for a specific user would cause that user's permissions to be determined by the entry (or the owning entry, if the user is in that group). Set a file's ACL with the ACL entries contained in the file named acl_file. The same constraints on specified entries hold as with the option. The entries are not required to be in any specific order in the file specified as acl_file. The character in acl_file may be used to indicate a comment. All characters, starting with the until the end of the line, will be ignored. Note that if the acl_file has been created as the output of the command, any effective permissions, which will have been written with a preceding will also be ignored. When the command is used, it may result in changes to the file permission bits. When the ACL entry for the file owner is changed, the file owner permission bits will be modified. When the ACL entry is changed, the file other permission bits will be modified. When additional ACL entries and/or any ACL entries are set or modified, the file group permission bits will be modified to reflect the maximum permissions allowed by the additional user entries and all the group entries. If an ACL contains no additional or additional entries, the permissions in the entry for the object owning group and the entry must be the same. Therefore, if the option is specified and results in no additional entries and no additional entries, the entry permissions will be set equal to the permissions of the owning group entry. This happens regardless of whether or not the option was specified. A directory may contain ACL entries. If a file is created in a directory which contains ACL entries, the entries will be added to the newly created file. Note that the default permissions specified for the file owner, file owning group, and others, will be constrained by the umask and the mode specified in the file creation call. If an ACL contains no additional or additional entries and a entry is specified for the object owning group, then a entry must also be specified, and the permissions in the entry for the object owning group and the permissions for the entry must be the same. This command may be executed on a file system that does not support ACLs, to set the permissions for the three base entries for the file owner, file owning group, and others. Additional entries and entries will not be allowed in this case. EXAMPLES
To add one ACL entry to file giving user read permission only, type: If an entry for user already exists, this command will set the permissions in that entry to To replace the entire ACL for file adding entries for users and allowing read/write access, an entry for the file owner allowing all access, an entry for the file group allowing read access only, and an entry for others disallowing all access, type: Note that following this command, the file permission bits would be set to Even though the file owning group has only read permission, the maximum permissions available to all additional ACL entries, and all ACL entries, are read and write, since the two additional entries both specify these permissions. To set the same ACL on file as in the above example, using the option, type: with file edited to contain: Because the option was not specified, no entry was needed. If a entry had been present it would have been ignored. FILES
user IDs group IDs SEE ALSO
acl(2), aclsort(3C), chmod(1), getacl(1), ls(1). setacl(1)
All times are GMT -4. The time now is 05:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy