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