Skip to content

Commit bdc7cd2

Browse files
Merge pull request #6 from jedfonner/master
Adding a 3 commands I use frequently
2 parents 3120c45 + 5fa796c commit bdc7cd2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cheat_sheet.org.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ nice [process name]
115115
# Kill misbehaving process (use sparingly, last resort, try 'nice' command first):
116116
pkill [process name]
117117

118+
# Start a process in the background
119+
[command] &
120+
121+
# Start a process in the background and have it keep running after you log off
122+
nohup [command] &
123+
118124
**** Compression and Encryption:
119125

120126
# Make a simple compressed backup of a file or directory:
@@ -175,6 +181,9 @@ gpg-zip -o encrypted-filename.tgz.gpg -c -s file-to-be-encrypted
175181
# Works like |, but it writes output to both target and terminal:
176182
tee [target]
177183

184+
# Redirect standard output and error into a black hole
185+
[command] > /dev/null 2>&1
186+
178187
**** Controlling Execution:
179188
# Wait until [command 1] is finished to execute [command 2]
180189
[command 1] ; [command 2]

0 commit comments

Comments
 (0)