From ae452653172b26042de5b28b14ea1de17319ed19 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Fri, 19 Jun 2015 23:18:59 +0530 Subject: [PATCH] Two new cheats in date and ln sheets --- cheat/cheatsheets/date | 5 ++++- cheat/cheatsheets/ln | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cheat/cheatsheets/date b/cheat/cheatsheets/date index aa3a767..05cebbf 100644 --- a/cheat/cheatsheets/date +++ b/cheat/cheatsheets/date @@ -1,2 +1,5 @@ -# Printout date in format suitable for affixing to file names +# Print date in format suitable for affixing to file names date +"%Y%m%d_%H%M%S" + +# Convert Unix timestamp to Date +date -d @1440359821 diff --git a/cheat/cheatsheets/ln b/cheat/cheatsheets/ln index 441c3a9..5a02f76 100644 --- a/cheat/cheatsheets/ln +++ b/cheat/cheatsheets/ln @@ -1,2 +1,5 @@ # To create a symlink: ln -s path/to/the/target/directory name-of-symlink + +# Symlink, while overwriting existing destination files +ln -sf /some/dir/exec /usr/bin/exec