Last active
February 6, 2021 07:23
-
-
Save brianpeiris/6165618 to your computer and use it in GitHub Desktop.
Bash Cheatsheet
This file contains hidden or 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
# Because I always forget this stuff | |
# Run a command in the background with its output redirected | |
<command> > /dev/null 2>&1 & | |
# A while loop | |
while true; do | |
echo 'hi'; | |
sleep 1; | |
done | |
# On one line | |
while true; do echo 'hi'; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment