mirror of https://github.com/cheat/cheat.git
Two new cheats in date and ln sheets
This commit is contained in:
parent
97dd037538
commit
ae45265317
|
@ -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"
|
date +"%Y%m%d_%H%M%S"
|
||||||
|
|
||||||
|
# Convert Unix timestamp to Date
|
||||||
|
date -d @1440359821
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
# To create a symlink:
|
# To create a symlink:
|
||||||
ln -s path/to/the/target/directory name-of-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
|
||||||
|
|
Loading…
Reference in New Issue