Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux get oldest file in directory

$ find /home/sk/ostechnix/ -type f -printf '%T+ %p
' | sort | head -n 1
Source by ostechnix.com #
 
PREVIOUS NEXT
Tagged: #linux #oldest #file #directory
ADD COMMENT
Topic
Name
6+6 =