different time settings in different directories


 
Thread Tools Search this Thread
Operating Systems Solaris different time settings in different directories
# 1  
Old 10-25-2009
different time settings in different directories

When I create files (using vi) the creation date/time (ls -l) is recorded differently in different directories. There is a one-hour difference between a file created now in /usr2 and /root. In both directories, the date command shows the same (correct) date/time. But ceation date/time of a file is different in each directory Smilie

How is this possible and how can I fix it?
# 2  
Old 10-26-2009
One of the directories might be NFS mounted from a different host that has an incorrect system clock.
# 3  
Old 10-26-2009
Hi,

will you provide proper information what ur trying to do and give bref details about ur environment..?

Hari.A.

---------- Post updated at 07:24 PM ---------- Previous update was at 07:23 PM ----------

Hi,

will you provide proper information what ur trying to do and give brief details about ur environment..?

Hari.A.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Access time of files and directories

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

2. Shell Programming and Scripting

How to create tgz file for all the directories in one time?

Hi, On server there is an one folder . which contains sub folder Eg - TEST folder contains test1, test2, execr ,tt (folder). also includes some text file like abc.txt psp.txt gg.log. here iwant to create tgz file for all the folders and file in one time. I know the command... (1 Reply)
Discussion started by: aish11
1 Replies

3. UNIX for Advanced & Expert Users

Help with Calculating time difference between many directories in UNIX

A report needs to come some what similar to this No of elements Stream Batch No Load time A B C D A,B,C im able to get quite easily wc -l /usr/local/intranet/areas/prod/output/SRGW_0?/*/MESSAGE_T.dat O/P of above command. A B C ... (1 Reply)
Discussion started by: peckenson
1 Replies

4. Shell Programming and Scripting

listing directories and sub directories with time and name options

Hello all! I'm looking to list directories and sub-directories of a path, on this forum I found this command: find $path -type d -exec ls -ld {} \; The issue I have is that with a simple ls, the list is listed by name, and using -t I get it by time. How could I list directories and sub... (5 Replies)
Discussion started by: nomadvisuals
5 Replies

5. AIX

How to delete particular date directories at a time

Hi guys, Can anyone tell me how to delete hundreds of directories of particular dates at a time? By the below command I am able to list all particular date directories but unable to delete those, ls -ltr | sed -n '/Oct 07/p' Please reply ASAP, thanks :) (4 Replies)
Discussion started by: teddy2882
4 Replies

6. Shell Programming and Scripting

Time Difference between two files in two different directories

Hi, Can anyone please help me. How to write shell script for taking time difference between two files which are in two different folders. Example: Folder1 is having sample_1_*.txt with the time 13:10 hours Folder2 is having sample_1_*.txt with the time 13:17 hours Now i need the time... (6 Replies)
Discussion started by: SanjayPasum
6 Replies

7. Shell Programming and Scripting

find command takes a lot of time ( can I skip directories)

I have a file called "library" with the following content libnxrdbmgr.a libnxrdbmgr.so libnxtk.a libnxtk.so libora0d_nsc_osi.so I am trying to locate if these libraries are on my machine or not. find command runs for about few seconds and hangs after this. Can someone please help me and... (3 Replies)
Discussion started by: knijjar
3 Replies

8. Shell Programming and Scripting

How do i collect Date & Time from Different Directories in a script

How do i collect Date & Time from Different Directories in a script The script iam using for a single directory is : ls -l | grep awk '{print $8}' (2 Replies)
Discussion started by: laknar
2 Replies

9. UNIX for Dummies Questions & Answers

Copying multiple directories at the same time using Unix

Another Unix question. How would I copy multiple directories at the same time? Right now I do: cp -r -f /directory1/ ../backup/directory1/ I do that for each directory one at a time. But there are multiple directories I'd like to copy. So instead of sitting there and doing one at a time, is... (9 Replies)
Discussion started by: JPigford
9 Replies
Login or Register to Ask a Question