Tag: date
-
Seagate HDD Date Codes
On Seagate drives you may see a Date Code – e.g. 07466. What does it mean? Simply put, it’s in the format of YY:W:D, or YY:WW:D, where Y is year, W is week and D is day of week. The year is fairly self-explanatory; the weeks aren’t measured from January, though,…
-
Changing or Updating the time zone in Ubuntu Server
There are quite a few reasons you may find that you need to change your time zone – for example, if you’re using a pre-made image for a virtual machine you may find that the default timezone is not set to your country. You can change the time manually, though there is a quick…
-
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…