Skip to content

Magenaut

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

Unix & Linux

When does the system send a SIGTERM to a process?

August 10, 2022 by Magenaut

My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send a SIGTERM to a process?

Categories Q&A, Unix & Linux Tags busybox, linux, process, signals Leave a comment

What is a valid use case for an “execute only” file permission?

August 10, 2022 by Magenaut

I was reading up on chmod and its octal modes. I saw that 1 is execute only. What is a valid use case for an execute only permission? To execute a file, one typically would want read and execute permission.

Categories Q&A, Unix & Linux Tags chmod, executable, files, permissions Leave a comment

Why is a variable visible in a subshell?

August 10, 2022 by Magenaut

The Learning Bash Book mentions that a subshell will inherit only environment variables and file descriptors, etc., and that it will not inherit variables that are not exported:

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

Background process of subshell strange behaviour

August 10, 2022 by Magenaut

I wonder why some similar bash commands behave the way they do.

Categories Q&A, Unix & Linux Tags background-process, bash, subshell Leave a comment

How to move and overwrite subdirectories (and files) to parent directory?

August 10, 2022 by Magenaut

I have a ton of files and dirs in a subdirectory I want to move to the parent directory. There are already some files and dirs in the target directory which need to be overwritten. Files that are only present in the target should be left untouched. Can I force mvto do that? It (mv * ..) complains

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

Output of the “last” command

August 10, 2022 by Magenaut

Can anybody explain me what is the meaning of the last column of the output of the last command? I’m particularly interested in its meaning with respect to the reboot pseudo-user.

Categories Q&A, Unix & Linux Tags last, logs Leave a comment

How to quickly store and access often used commands?

August 10, 2022 by Magenaut

I have a lot of commands I routinely need to execute, often with the slightest variation.

Categories Q&A, Unix & Linux Tags command-history, shell Leave a comment

List explicitly installed packages

August 10, 2022 by Magenaut

In Gentoo there is the file /var/lib/portage/world that contains packages that I explicitly installed. By explicit I mean, packages that I choose, not including anything installed by default, or pulled in by the dependencies.

Categories Q&A, Unix & Linux Tags package-management, ubuntu Leave a comment

What is the difference between “cat file | ./binary” and “./binary < file"?

August 10, 2022 by Magenaut

I have a binary (that I can’t modify) and I can do:

Categories Q&A, Unix & Linux Tags io-redirection, pipe, shell Leave a comment

Is it possible to strace the builtin commands to Bash?

August 10, 2022 by Magenaut

Inspired by this question, titled: When are the built-in commands loaded to memory, while attempting to answer this I tried the following command and was a bit surprised that I couldn’t run it:

Categories Q&A, Unix & Linux Tags bash, debugging, strace Leave a comment
Older posts
Newer posts
← Previous Page1 … Page77 Page78 Page79 … 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