diff --git a/README.md b/README.md index 3b9548b..0750de0 100644 --- a/README.md +++ b/README.md @@ -340,6 +340,7 @@ _380 TILs and counting..._ - [Do Not Overwrite Existing Files](unix/do-not-overwrite-existing-files.md) - [File Type Info With File](unix/file-type-info-with-file.md) - [Find Newer Files](unix/find-newer-files.md) +- [Get The Unix Timestamp](unix/get-the-unix-timestamp.md) - [Global Substitution On The Previous Command](unix/global-substitution-on-the-previous-command.md) - [Grep For Files Without A Match](unix/grep-for-files-without-a-match.md) - [Grep For Multiple Patterns](unix/grep-for-multiple-patterns.md) diff --git a/unix/get-the-unix-timestamp.md b/unix/get-the-unix-timestamp.md new file mode 100644 index 0000000..10db25f --- /dev/null +++ b/unix/get-the-unix-timestamp.md @@ -0,0 +1,10 @@ +# Get The Unix Timestamp + +To get the Unix timestamp from your shell, use the `time` command with the +appropriate format: + +```bash +$ date +%s +``` + +[source](http://stackoverflow.com/questions/1092631/get-current-time-in-seconds-since-the-epoch-on-linux-bash)