Last active
August 29, 2015 14:05
-
-
Save c0ldlimit/6228e8d63dc34c71a552 to your computer and use it in GitHub Desktop.
#linux commands cheatsheet
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
# copy an entire directory | |
cp -R dirtocopy/ newdir/ | |
# view the last modified file in a directory | |
less $(ls -t *.out | head -1) | |
# redirection | |
# http://superuser.com/questions/480599/with-regards-to-piping-commands-what-are-the-greater-than-and-less-than | |
# http://en.wikipedia.org/wiki/Redirection_%28computing%29 | |
> "output to" | |
>> "append to" | |
< "input from" | |
| "pipe" | |
#http://stackoverflow.com/a/11856575 | |
nohup node server.js > /dev/null 2>&1 & | |
# http://stackoverflow.com/a/11856575 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment