Shell code snippets

Shell code snippets

Tags
Code
Created
Dec 29, 2020 12:25 PM

Remove a directory

rm -r dir_name/

Save output to file

SomeCommand > SomeFile.txt

Save errors to file

SomeCommand 2> SomeFile.txt

Run program in the background

python file.py &