Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash datetime in filename

$ md5sum /etc/mtab > "$(date +"%Y_%m_%d_%I_%M_%p").log"
Comment

bash date of file

# use the "stat" command to see when it was created, modified, last accessed..
stat yourFileName
Comment

shell get creation date of file

[jason@rh5 test]$ stat test.txt
  File: `test.txt'
  Size: 0               Blocks: 8          IO Block: 4096   regular empty file
Device: 802h/2050d      Inode: 588720      Links: 1
Access: (0664/-rw-rw-r--)  Uid: (  500/   jason)   Gid: (  500/   jason)
Access: 2013-03-14 01:58:12.000000000 -0700
Modify: 2013-03-14 01:58:12.000000000 -0700
Change: 2013-03-14 01:58:12.000000000 -0700
Comment

PREVIOUS NEXT
Code Example
Shell :: git clone from specific branch command 
Shell :: docker-compose command multiple 
Shell :: Command to install tailwind plugin in vue 
Shell :: how install node 14 ubuntu 
Shell :: gats gatsby-plugin-offline 
Shell :: linux script as background process 
Shell :: bash if is link simbolico 
Shell :: git alias - multiple commands 
Shell :: bash get package dependencies 
Shell :: check litespeed version command 
Shell :: You need to have the Android SDK Build-tools installed on your system 
Shell :: bash command to clean up log files 
Shell :: brave on linux 
Shell :: windows start service 
Shell :: setting docker as a non root user 
Shell :: git clone syntax 
Shell :: vscode restart window 
Shell :: openssl serial number 
Shell :: github username 
Shell :: powershell variable to string 
Shell :: symfony webpack server 
Shell :: zsh: permission denied 
Shell :: check gcp disk space usage 
Shell :: git create a new repository 
Shell :: bash remove trailing whitespace from every line 
Shell :: how to find and kill a running process on a port in mac 
Shell :: android debug keystore windows 
Shell :: instal kdenlive 
Shell :: regex match + n lines 
Shell :: kubernetes get statefulset 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =