Skip to content

Magenaut

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

Unix & Linux

Commands for determining level of usage of server

August 10, 2022 by Magenaut

I am scripting a new program that will connect to a cluster of machines in a VM park, and hopefully check their level of usage.
The VM clients are a combination of RHEL and CentOS, and runs on multiple KVM hosts.

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

Replace strings in a file based on a list of strings and a list of corresponding replacements

August 10, 2022 by Magenaut

I am trying to replace strings in a file A:

Categories Q&A, Unix & Linux Tags awk, perl, sed, text-processing Leave a comment

Zip a file without including the parent directory

August 10, 2022 by Magenaut

I have a folder that contains multiple files

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

How to find the connection between tap interface and its file descriptor?

August 10, 2022 by Magenaut

I have a qemu VM started by an orchestration script, which creates transient tap interfaces. When I inspect the command line arguments of the qemu-system-x86_64 process, then I can see, that the process connects to already opened tap interface with the file descriptor 27:

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

How to gather byte occurrence statistics in binary file?

August 10, 2022 by Magenaut

I’d like to know the equivalent of

Categories Q&A, Unix & Linux Tags binary, command-line, files, statistics Leave a comment

Why does xargs strip quotes from input?

August 10, 2022 by Magenaut

Why does xargs strip quotes from input text?

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

Can I use a variable in a Bash brace expansion?

August 10, 2022 by Magenaut

Below is some sort of pseudo-code for what I’m trying to accomplish:

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

Where has the trailing newline char gone from my command substitution?

August 10, 2022 by Magenaut

The following code best describes the situation.  Why is the last line not outputting the trailing newline char?  Each line’s output is shown in the comment.  I’m using GNU bash, version 4.1.5

Categories Q&A, Unix & Linux Tags command-line, command-substitution, shell, text-processing Leave a comment

Escaping quotes in zsh alias

August 10, 2022 by Magenaut

Following on from this question about stripping newlines out of text, I want to turn this into a zsh alias as follows:

Categories Q&A, Unix & Linux Tags alias, quoting, shell, zsh Leave a comment

Why is the US international keyboard layout on Debian different?

August 10, 2022 by Magenaut

Edit: I realized that the “problem” was not only in Ubuntu but in Debian itself and Ubuntu just inherited it, so I had this migrated from Ask Ubuntu

Categories Q&A, Unix & Linux Tags debian, keyboard Leave a comment
Older posts
Newer posts
← Previous Page1 … Page61 Page62 Page63 … 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