Skip to content

Magenaut

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

Unix & Linux

Testing if a file descriptor is valid

August 7, 2022 by Magenaut

I’d like to make a bash script output additional information to file descriptors (FDs) greater than or equal to 3, when they are open. To test whether an FD is open, I devised the following trick:

Categories Q&A, Unix & Linux Tags bash, file-descriptors Leave a comment

How to set up a runlevel 3 in Debian 8?

August 7, 2022 by Magenaut

I have installed Debian 8, but I neeed to use just multi-user text mode, runlevel 3, instead of appear my Gnome 3.

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

Get environment variable of other user

August 7, 2022 by Magenaut

Is there a way I can see the environment variable of an other user? I want to do that as root, so permissions won’t be a problem I guess. For the user himself, I use echo $PATH or set | grep PATH (or set when I don’t remember the variable name). What would be a … Read more

Categories Q&A, Unix & Linux Tags environment-variables, root, shell, users Leave a comment

Printing unique lines

August 7, 2022 by Magenaut

Is there some better solution for printing unique lines other than a combination of sort and uniq?

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

Can I setup a loopback audio device?

August 7, 2022 by Magenaut

If I can send audio to the output devices, then I can record the same audio as a wave. With filesystems, you can just setup a loopback filesystem and write binary data on a file instead of a device.

Categories Q&A, Unix & Linux Tags audio, devices, recording Leave a comment

How do I have Linux boot with a rootfs in RAM?

August 7, 2022 by Magenaut

The rootfs is a squashfs image and my bootloader is loading it into some address in SDRAM. What parameters do I need to pass to the kernel so It can mount the rootfs from there? Squashfs support is built-in and it already works with

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

Is there a POSIX (or at least a popular) utility to set the current working directory when invoking a program?

August 7, 2022 by Magenaut

We have env(1) to modify the environment of the command we want to run (for example env MANPAGER=more man dtrace). Is there something similar but for modifying the directory that the command is going to be started in?

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

Libvirt: how to pass qemu command line args?

August 7, 2022 by Magenaut

I have the current libvirt 1.2.20
i want to pass to my machine create with virt-manager
some qemu flags.
I edited the file and add

Categories Q&A, Unix & Linux Tags libvirt, qemu Leave a comment

Why does F10 in gnome-terminal open the right-click menu?

August 7, 2022 by Magenaut

I am running Fedora 17 gnome (shell) 3 and gnome terminal 3.4.1.1.

Categories Q&A, Unix & Linux Tags gnome, gnome-terminal, mc Leave a comment

Reinstalling packages with missing/corrupt files

August 7, 2022 by Magenaut

Following an unclean shutdown and a colourful fsck, a whole bunch of files have gone missing. The output of ‘rpm -Va’ is several hundred lines long (mostly missing files but also some checksum and other mismatches). Is there an easy way to reinstall packages which have missing and/or corrupt files?

Categories Q&A, Unix & Linux Tags dnf, fedora, rpm, yum Leave a comment
Older posts
Newer posts
← Previous Page1 … Page321 Page322 Page323 … 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