How do I add a directory to the $PATH
in Ubuntu and make the changes permanent?
I thought tar archive.tar /users/mylocation
would work, but it doesn't. How can I do that?
How can I find and replace specific words in a text file using command line?
I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them.
The first method I found is update-rc.d
to add new services to startup, which aims on the /etc/init.d
folder and its contents.
The other one I found is to edit .conf
files in the /etc/init
folder.
What's the recommended way to enable / disable / add services and why?
Could you please give a short bulletproof step by step example on how to add a service in Ubuntu and enable and disable it?
Let's say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine?