Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to change date of file in linux

/*how to change date of file in linux*/
touch -a -m -t 201512180130.09 fileName.ext

-a = accessed
-m = modified
-t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format
Comment

linux change date and then change files ctime

$ NOW=$(date) && date -s "2030-08-15 21:30:11" && touch file.txt && date -s "$NOW"
Comment

PREVIOUS NEXT
Code Example
Shell :: scp ubuntu 
Shell :: bash get file size in mb 
Shell :: how to install wireshark on fedora 
Shell :: making a service provider in laravel 
Shell :: how to delete last push github 
Shell :: find exclude 
Shell :: change time linux 
Shell :: ssh copy folder 
Shell :: docker install python 
Shell :: using yarn in docker 
Shell :: conda install cairo 
Shell :: lenovo touchpad not working ubuntu 
Shell :: install simplejwt django 
Shell :: sh or bash validate if file no exist 
Shell :: grep without match 
Shell :: apt package info 
Shell :: linux script to clean up log files 
Shell :: brave installation ubuntu 
Shell :: winget powertoys 
Shell :: generate new ssh key 
Shell :: git rm --cached 
Shell :: current time linux 
Shell :: cmd delete folder and all contents 
Shell :: keytool export a certificate 
Shell :: remi repo 
Shell :: start logstash 
Shell :: get current working directory ubuntu 
Shell :: how to install certbot on ubuntu 
Shell :: pip install local directory 
Shell :: create pdf from images linux 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =