创建带有当前时间戳的目录mkdir test`date +%y-%m-%d-%H:%M` The result is created a file named: te
创建带有当前时间戳的目录
mkdir "test`date +"%y-%m-%d-%H:%M"`"
The result is created a file named: test14-01-12-22:03.
注意,"`"是与"~"一起的同一个键, 不是单引号, 另外, date与+符号之间有空格.
创建带有当前时间戳的目录
mkdir "test`date +"%y-%m-%d-%H:%M"`"
The result is created a file named: test14-01-12-22:03.
注意,"`"是与"~"一起的同一个键, 不是单引号, 另外, date与+符号之间有空格.