how to create file name with date in linux code example Example: unix set current time in file name echo "hello" > "$(date +"%Y_%m_%d_%I_%M_%p").txt"