ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix Commands
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix General interview questions  Unix General Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
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
 Question Submitted By :: Pranab
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
Answer
# 1
use touch command to change the date
 
Is This Answer Correct ?    27 Yes 3 No
Ravikumar
 
  Re: 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
Answer
# 2
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 ?    30 Yes 0 No
Deepti Shrivastava
 
 
 
  Re: 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
Answer
# 3
touch -d '14:14' emp.lst
 
Is This Answer Correct ?    7 Yes 2 No
Jin
 
  Re: 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
Answer
# 4
TOUCH -T [CCYYMMDhhmm] Filename in HP-UNIX
 
Is This Answer Correct ?    0 Yes 3 No
Anilkumar
 
  Re: 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
Answer
# 5
For linux user, use the following command.
$touch -t yyyymmddhhmm.ss filename
 
Is This Answer Correct ?    4 Yes 1 No
Ashok Shah
 
  Re: 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
Answer
# 6
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 ?    0 Yes 0 No
Sudhir
 

 
 
 
Other Unix Commands Interview Questions
 
  Question Asked @ Answers
 
distinguish between interrupts and exceptions? Infosys2
distinguish between user mode and kernel mode? Infosys4
what are processor execution levels and priorities? Infosys2
Give two UNIX kernel parameters that effect an Oracle install Oracle2
How to delete a directory containing files and folders?  3
Give Command that will change the name of a directly from paypal to eBay IBM2
How we will execute previous command in vi editor? Infosys3
distinguish between physical addresses and logical address? Infosys2
Explain iostat, vmstat and netstat.  2
What is "type" command in unix?what is the functionality??  2
what is the use of the hidden files?  3
How to view the hidden files in /etc directory?  6
Can a process kill itself in UNIX/or in its various versions?  2
In Unix file permissions what does the second field denotes?  1
How to copy multiple files and directories into some other directory?  4
What command is used to replace the existing string with some other? TCS4
what is the difference between relative path and absolute path?  2
How to get the operating system's information in unix? IBM5
What is the basic difference between unix and windows operating systems? IBM19
how will u execute a file in unix QA6
 
For more Unix Commands Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com