What Is the command to change a file's creation time. means
one file is created at the time 15:19 then time should br
changed to 14:14

Answers were Sorted based on User's Feedback



What Is the command to change a file's creation time. means one file is created at the time ..

Answer / deepti shrivastava

touch :- used to change the time stamps

Syntax :- touch options expression filename(s)
where expression consists of eight digit number
using the format MMDDhhmm(month,day,hr & min)
E.g :- $ touch 03091245 emp.lst ; ls -l emp.lst
-rw-r--r-- 1 kumar metal 870 Mar 09 12:45 emp.lst

The -m & -a options chng the modifications & access times.
$ touch -m 02281030 emp.lst ; ls -l emp.lst
-rw-r--r-- 1 kumar metal 870 Feb 28 10:30 emp.lst

Is This Answer Correct ?    42 Yes 3 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / ravikumar

use touch command to change the date

Is This Answer Correct ?    31 Yes 7 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / jin

touch -d '14:14' emp.lst

Is This Answer Correct ?    8 Yes 4 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / ashok shah

For linux user, use the following command.
$touch -t yyyymmddhhmm.ss filename

Is This Answer Correct ?    5 Yes 2 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / sudhir

The folwing command used for the above question

touch -m -a -t 08271113 abc.txt

here the format which we nee to specify is as below.
08271113
mmddhhmi

Regards,
Sudhir

Is This Answer Correct ?    1 Yes 1 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / atul khachane

Yes. Touch command update the access and modification times of each FILE to the current time.

-d, --date=STRING
parse STRING and use it instead of current time

-t STAMP
use [[CC]YY]MMDDhhmm[.ss] instead of current time

-d and -t options accept different time-date formats.

Is This Answer Correct ?    1 Yes 1 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / phil

All of the above are wrong. 'touch' can only change the
creation time to the current time. touch -t [date] does not
change creation time.

Is This Answer Correct ?    1 Yes 4 No

What Is the command to change a file's creation time. means one file is created at the time ..

Answer / anilkumar

TOUCH -T [CCYYMMDhhmm] Filename in HP-UNIX

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Unix Commands Interview Questions

A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


Which Command is Used for temprary switch User?

5 Answers   BitWise, IBM,


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


Differentiate cmp command from diff command.

0 Answers  


How to identify whether a file is normal file or directory?

3 Answers  






distinguish between user mode and kernel mode?

4 Answers   Infosys,


Explain command to display different lines that are found when compare two files?

0 Answers  


how to delete entire records in unix ?

13 Answers   Cap Gemini,


what is the use of uniq commmand?

8 Answers  


What does touch command do in unix?

0 Answers  


which command is used to change group?

5 Answers  


How to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


Categories