NathanFriend.co.uk

Developers notebook

Month: December 2016

Send a program to run in the background and close shell

./some_long_running_process
ctrl+z
bg
disown -h
exit

Source: http://www.kossboss.com/linux—move-running-to-process-nohup

Pull files from a remote server over ssh with sudo privilege escalation

rsync -a -e “ssh” –bwlimit=10000 –rsync-path=”sudo rsync” remoteuser@remoteserver:/remotepath .

Original source: https://crashingdaily.wordpress.com/2007/06/29/rsync-and-sudo-over-ssh/

© 2017 NathanFriend.co.uk

Theme by Anders NorenUp ↑