[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 570
  • Last Modified:

Is there away to create files with old date in Solaris

Is there away to create files with old date in Solaris?
If yes; How ?
1 Solution
OranewAuthor Commented:
Is there a way to create files with old date in Solaris.
It looks fishy but I like to create some files with the Old dates.
On our unix system i used  the  touch command to set back the origal timestamp of files after migration to a new unix system.   The touch command has an optional extra argument to do so.
But I don't know if it available in the same way on solaris.
Paul MacDonaldDirector, Information SystemsCommented:
Change the system date, create the file, change the system date back...?
Joseph GanSystem AdminCommented:
flow01 is right, in Solaris you can also use touch command, ie:

/usr/bin/touch -t yyyymmddhhmm filename

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now