Saturday, January 5, 2019

Disown process

If you want to leave a remote terminal and still want the process to continue to run in the background then disown then exit

disown -a && exit

Create Massive Folder Structure

mkdir -p folder/{1..100}/{one,two,three}

This will create a folder structure with 1 through 100 then the children of one two and three inside of it.  Noticed that the sub folder one two and three has no space separating them except the comma.