Skip to content

Magenaut

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

Unix & Linux

find out which file descriptors share the same “open file description”

August 10, 2022 by Magenaut

If I do (in a Bourne-like shell):

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

Finding a substring in files across subdirectories with a single built-in command?

August 10, 2022 by Magenaut

In Windows, if I wanted to find a string across all files in all subdirectories, I would do something like

Categories Q&A, Unix & Linux Tags find, grep, linux, recursive Leave a comment

How can I copy a file and create the target directories at the same time?

August 10, 2022 by Magenaut

I want to cp aaa/deep/sea/blob.psd to bbb/deep/sea/blob.psd

Categories Q&A, Unix & Linux Tags directory, file-copy Leave a comment

How to edit next line after pattern using sed?

August 10, 2022 by Magenaut

Using sed, how do I search for a line ending with foo and then edit the next line if it starts with #bar?

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

Is there a POSIX way of setting zeroth argument of a target application?

August 10, 2022 by Magenaut

In bash you can use exec -a and in zsh you can alternatively also set ARGV0 to execute a program with a certain zeroth argument but is there also a POSIX way of doing so?

Categories Q&A, Unix & Linux Tags exec, posix, shell, shell-script Leave a comment

How do I tell GNOME to reread my ~/.profile

August 10, 2022 by Magenaut

GNOME reads ~/.profile upon login. When I change something in .profile (for example LC_MESSAGES) I want gnome to reread the .profile file without logging out and back in. In bash I can tell bash to source .profile. How can I do that for the running GNOME session?

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

Why doesn’t my loop over the output of ls work?

August 10, 2022 by Magenaut

I am trying to feed Directory names into a for loop. My code is as follows:

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

How to get core temperature of haswell i7 cores in i3status

August 10, 2022 by Magenaut

I want to use i3status to display my CPU-Core temperatures (haswell i7). However the setting:

Categories Q&A, Unix & Linux Tags i3, sensors, temperature Leave a comment

Convert output of tree command to json format

August 10, 2022 by Magenaut

Is there a convenient way to convert the output of the *nix command “tree” to JSON format?

Categories Q&A, Unix & Linux Tags json, text-processing, tree Leave a comment

su vs su – (on Debian): why is PATH the same?

August 10, 2022 by Magenaut

I know what should be the difference between su and su -, but in my system (Debian) for example PATH is the same:

Categories Q&A, Unix & Linux Tags command-line, shell, su Leave a comment
Older posts
Newer posts
← Previous Page1 … Page104 Page105 Page106 … 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