Skip to content

Magenaut

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

Unix & Linux

Can the init process be a shell script in Linux?

August 8, 2022 by Magenaut

I was going through a tutorial on setting up a custom initramfs where it states:

Categories Q&A, Unix & Linux Tags init, init-script, linux Leave a comment

What happens when I open and read from /proc?

August 8, 2022 by Magenaut

Basically I would like to constantly get updated values from meminfo and cpuinfo.

Categories Q&A, Unix & Linux Tags monitoring, proc, system-information Leave a comment

Have xargs use alias instead of binary

August 8, 2022 by Magenaut

Bash 4.2 on CentOS 6.5:

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

Changing the default shell without chsh or administrator privileges

August 8, 2022 by Magenaut

I saw the following snippet in this thread: How to change from csh to bash as default shell

Categories Q&A, Unix & Linux Tags exec, login, shell, zsh Leave a comment

iotop showing 1.5 MB/s of disk write, but all programs have 0.00 B/s

August 8, 2022 by Magenaut

I don’t understand iotop output: it shows ~1.5 MB/s of disk write (top right), but all programs have 0.00 B/s. Why?

Categories Q&A, Unix & Linux Tags io, linux, monitoring, process Leave a comment

Move data from regular partition to lvm

August 8, 2022 by Magenaut

I’ve read a bit about lvm and decided that I want to switch to using it. It seems like actually setting up lvm can be done from the debian installer, so I suppose that’ll be easiest. What I’m not sure about is how to copy all of my files to the new system.

Categories Q&A, Unix & Linux Tags debian, lvm Leave a comment

In a bash shell script, writing a for loop that iterates over string values

August 8, 2022 by Magenaut

In bash, I know that it is possible to write a for loop in which some loop control variable i iterates over specified integers. For example, I can write a bash shell script that prints the integers between 1 and 10:

Categories Q&A, Unix & Linux Tags bash, for, shell-script Leave a comment

Shared library mappings in /proc/pid/maps

August 8, 2022 by Magenaut

Why does /proc/pid/maps contain a few records for the same library ? Here is an example:

Categories Q&A, Unix & Linux Tags linux, memory, process, shared-library, virtual-memory Leave a comment

How should I add users non-interactively?

August 8, 2022 by Magenaut

I have a set of users I need to add to a new system as part of a BASH script that preps my server. How can I non-interactively add the user, create their home directory, set the group, and enter a default password?

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

Remove empty directory trees (removing as many directories as possible but no files)

August 8, 2022 by Magenaut

Suppose I have a dir tree like this:

Categories Q&A, Unix & Linux Tags directory, rm, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page198 Page199 Page200 … 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