Tag: tarball

  • Ubuntu: How to create a file or folder using today’s date

    Ubuntu: How to create a file or folder using today’s date

    This is a useful little trick to use in your scripts – particularly for things like periodic backups.   For a file:   touch $(date +%F)   creates the file 2012-11-18   For a folder, let’s add the time after the date:   mkdir $(date +%F-%H:%M)   creates the folder 2012-11-18-09:00   We can use…