Skip to content

Magenaut

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

Unix & Linux

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

Why doesn’t my blockdev config change execute from rc.local on reboot

August 10, 2022 by Magenaut

I am (probably obviously) a relatively new Linux user, so I’m already bracing for the barrage of “why aren’t you doing it this way instead…” comments. I’d love to hear them…but I would also really like to fundamentally understand why this isn’t working as is.

Categories Q&A, Unix & Linux Tags bootable, centos Leave a comment

How do I extract with tar to a different directory?

August 10, 2022 by Magenaut

This doesn’t work:

Categories Q&A, Unix & Linux Tags tar Leave a comment

Difference between ‘>’ and ‘-gt’

August 10, 2022 by Magenaut

What’s the difference between these:

Categories Q&A, Unix & Linux Tags shell, test Leave a comment

Find out what scripts are being run by bash at login

August 10, 2022 by Magenaut

After starting a bash terminal, I noticed that the PATH variable contains duplicate entries. My terminal starts a login shell, so ~/.bash_profile is sourced, followed by ~/.profile and ~/.bashrc. Only in ~/.profile do I create the paths entries which are duplicated.

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

Why does a program with fork() sometimes print its output multiple times?

August 10, 2022 by Magenaut

In Program 1 Hello world gets printed just once, but when I remove n and run it (Program 2), the output gets printed 8 times. Can someone please explain me the significance of n here and how it affects the fork()?

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

Is there an “open with” command for the command line?

August 10, 2022 by Magenaut

Does the command line have a way to get a recommended list of programs used to open a particular file, based on the file type? For example, a .pdf file would have an open with... recommendation using the programs Evince and Document Viewer.

Categories Q&A, Unix & Linux Tags desktop-environment, file-opening, files, freedesktop, mime-types Leave a comment

If chown can change groups, why was chgrp created?

August 10, 2022 by Magenaut

So there’s chown which lets you change the owner and group of files and/or directories. But there’s also chgrp which only changes the group. Why was chgrp created? Isn’t it redundant?

Categories Q&A, Unix & Linux Tags chown, history Leave a comment
Older posts
Newer posts
← Previous Page1 … Page47 Page48 Page49 … Page371 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