Linux

Ways how to keep a process running after logging out

There are many ways how to keep a process running after logging out. Each if them has its own advantages and disadvantages: nohup, disown, screen, tmux, ssh2go, etc. Here's how it works with screen:

ssh user@server.com # connect to server
screen # start screen
run-a-long-process # start process
CTRL+a,d # to detach from your screen session
exit # disconnect from the server

ssh user@server.com # reconnect
screen -r # resume the screen session

Directory hard links in Linux

Directory hard links in Linux are forbidden. To emulate something similar, you can mount any file system path into any other directory. However, you need to be careful because you can get the same problems as with directory hard links, namely circular and thus infinite file paths...
sudo mount --bind /home/user/Documents/Desktop/ /home/user/Desktop/
Such a link disappears after a reboot. If you want to make it permanent, you can add the mount to /etc/fstab:
/home/user/Documents/Desktop/ /home/user/Desktop none bind

Pages