Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

linux

How do I kill all a user’s processes using their UID

August 10, 2022 by Magenaut

I want to kill all running processes of a particular user from either a shell script or native code on a Linux system.

Categories Q&A, Unix & Linux Tags c#, linux, proc Leave a comment

How can I create a swap file?

August 10, 2022 by Magenaut

I know how to create and use a swap partition but can I also use a file instead?

Categories Q&A, Unix & Linux Tags linux, swap Leave a comment

How to determine the maximum number to pass to make -j option?

August 10, 2022 by Magenaut

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?

Categories Q&A, Unix & Linux Tags cpu, linux, make, multiprocessor, parallelism Leave a comment

Daemonize a process in shell?

August 10, 2022 by Magenaut

http://linuxg.net/how-to-transform-a-process-into-a-daemon-in-linux-unix/ gives an example of daemonizing a process in bash:

Categories Q&A, Unix & Linux Tags bash, daemon, linux Leave a comment

How can I reserve a block of memory from the Linux kernel?

August 10, 2022 by Magenaut

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?

Categories Q&A, Unix & Linux Tags hardware, kernel, linux, memory Leave a comment

Why does Linux show both more and less memory than I physically have installed?

August 10, 2022 by Magenaut

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:

Categories Q&A, Unix & Linux Tags linux, linux-kernel, memory Leave a comment

Unmount a rbind mount without affecting the original mount

August 10, 2022 by Magenaut

Asked on serverfault but didn’t get enough attention, so reposted here, with the hope some people here know the answer.

Categories Q&A, Unix & Linux Tags bind-mount, linux, linux-kernel, mount, unmounting Leave a comment

Integration of afuse user-level automounter with sshfs as a systemd service spawned from login for local users

August 10, 2022 by Magenaut

Edit 2020: I’ve been using the systemd-answer posted below for several years now, and am quite happy with it.

Categories Q&A, Unix & Linux Tags automounting, linux, scripting, sshfs, systemd Leave a comment

How to remove LUKS encryption?

August 10, 2022 by Magenaut

I tried removing LUKS encryption on my home directory using the following command:

Categories Q&A, Unix & Linux Tags encryption, linux, luks Leave a comment

ssh_exchange_identification: Connection closed by remote host (not using hosts.deny)

August 10, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags key-authentication, linux, ssh Leave a comment
Older posts
Newer posts
← Previous Page1 … Page14 Page15 Page16 … Page63 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress