How do I kill all a user’s processes using their UID
I want to kill all running processes of a particular user from either a shell script or native code on a Linux system.
I want to kill all running processes of a particular user from either a shell script or native code on a Linux system.
I know how to create and use a swap partition but can I also use a file instead?
I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script?
http://linuxg.net/how-to-transform-a-process-into-a-daemon-in-linux-unix/ gives an example of daemonizing a process in bash:
I have a device that needs a block of memory that is reserved solely for it, without the OS intervening. Is there any way to tell BIOS or the OS that a block of memory is reserved, and it must not use it?
I know about swap – this question isn’t about that. In dmesg, the Linux (x86-64) kernel tells me this about how much memory I have:
Asked on serverfault but didn’t get enough attention, so reposted here, with the hope some people here know the answer.
Edit 2020: I’ve been using the systemd-answer posted below for several years now, and am quite happy with it.
I tried removing LUKS encryption on my home directory using the following command:
I’m not using hosts.allow or hosts.deny, furthermore SSH works from my windows-machine (same laptop, different hard drive) but not my Linux machine.