Last active
August 29, 2015 14:17
-
-
Save snahor/36da9cbc701b758fd998 to your computer and use it in GitHub Desktop.
Useful commands I always forget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clear text file | |
cat /dev/null > {path to file} | |
cp /dev/null {path to file} | |
> {path to file} # works if you're not using fish | |
# clipboard to file | |
xsel -o > {path to file} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment