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
chown(1)						      General Commands Manual							  chown(1)

NAME
chown, chgrp - change file owner or group SYNOPSIS
] ] ownergroup] file ... ] ] group file ... DESCRIPTION
The command changes the owner ID of each specified file to owner and optionally the group ID of each specified file to group. The command changes the group ID of each specified file to group. Refer to usergroupname(5) to understand the functionality changes with the Numeric User Group Name feature. In order to change the owner or group, you must own the file and have the CHOWN privilege (see setprivgrp(1M)). If either command is invoked on a regular file by other than the superuser, the set-user-ID and set-group-ID bits of the file mode (04000 and 02000 respec- tively) are cleared. Note that a given user's or group's ability to use this command can be restricted by (see setprivgrp(1M)). Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. If the option is specified and a symbolic link referencing a directory is specified on the command line, the owner or group of the directory referenced by the symbolic link and all files in the file hierarchy below it are changed. If the option is specified and a symbolic link referencing a directory is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the directory referenced by the symbolic link and all files in the file hierar- chy below it are changed. If the option is specified and a symbolic link is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the symbolic link are changed. The utility shall not follow the symbolic link to any other part of the file hierarchy. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. Operands and recognize the following operands: file Target file for which the ownership is changed. group Either a decimal group ID or a group name found in the file. owner Either a decimal user ID or a login name found in the file. Access Control Lists - HFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see acl(5)). When using in conjunction with HFS ACLs, if the new owner and/or group of a file does not have an optional ACL entry corre- sponding to and/or in the file's access control list, the file's access permission bits remain unchanged. However, if the new owner and/or group is already designated by an optional ACL entry of and/or in the file's ACL, sets the corresponding file access permission bits (and the corresponding base ACL entries) to the permissions contained in that entry. Access Control Lists - JFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see aclv(5)). When using in conjunction with JFS ACLs, if the new owner and/or group of a file have optional ACL entries corresponding to and/or in the file's access control list, those entries remain in the ACL but no longer have any effect, being superseded by the file's and/or entries. Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. RETURN VALUE
and return the following values: Successful completion. An error condition occurred. EXAMPLES
The following command changes the owner of the file to The following command searches the directory and changes each file in that directory to owner and group WARNINGS
The default operation of and for symbolic links has changed as of HP-UX release 10.0. Use the option to get the former default operation. FILES
SEE ALSO
chmod(1), setprivgrp(1M), chown(2), group(4), passwd(4), acl(5), aclv(5), usergroupname(5). STANDARDS CONFORMANCE
chown(1)
All times are GMT -4. The time now is 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy