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 :: pip uninstall all 
Shell :: mount nvme disk on aws ec2 
Shell :: command to check recent commit 
Shell :: git large files storage 
Shell :: ubuntu get list of folders one per line 
Shell :: install intellij community edition mac brew commands 
Shell :: how to check the version of vue-router you are using with yarn 
Shell :: remove debian gnu/linux - continue with install process 
Shell :: config git editor vim 
Shell :: Login to Azure CLI using Service Principal 
Shell :: how to check bash runs with sudo 
Shell :: restart rstudio 
Shell :: How to check the Redis version? 
Shell :: How to install SciPy on Anaconda 
Shell :: linux check user group list 
Shell :: linux set multiline variable 
Shell :: vim sudo write 
Shell :: rejected master - master (non-fast-forward) 
Shell :: angular cli install ubuntu 
Shell :: what process is using memory linux 
Shell :: When should you use a single dash within a Git command, as opposed to a double dash? 
Shell :: bash view system log info 
Shell :: angular install version 12 
Shell :: bash script: permission denied 
Shell :: list which process is running on specific port ubuntu 
Shell :: kubectl exec 
Shell :: angular create a service 
Shell :: install autoconf macos 
Shell :: git reset head 2 commits 
Shell :: linux mint package manager 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =