Shell acquisition time

Generally use:
time ='+%m-%d-%Y_%H:%M:%S' to
get the time accurate to the second.
- The need to generate a new log daily log
the
File = '$ the HOME / logs / the HOME / logs /H O M E / l o g s / time.log'
time format can be adjusted by yourself

I encountered ambiguous path today and found that sometimes the copy and paste command to get the time cannot be executed.

Guess you like

Origin blog.csdn.net/keep_learn/article/details/45578221