Skip to content

Magenaut

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

shell

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

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

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

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

How to use a variable as part of an array name

August 10, 2022 by Magenaut

I have two arrays:

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

find searching in parent directories instead of subdirectories

August 10, 2022 by Magenaut

I’m nested deep in a file tree, and I’d like to find which parent directory contains a file.

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

How does a Segmentation Fault work under-the-hood?

August 10, 2022 by Magenaut

I can’t seem to find any information on this aside from “the CPU’s MMU sends a signal” and “the kernel directs it to the offending program, terminating it”.

Categories Q&A, Unix & Linux Tags kernel, segmentation-fault, shell, signals Leave a comment

Find files that contain multiple keywords anywhere in the file

August 10, 2022 by Magenaut

I’m looking for a way to list all files in a directory that contain the full set of keywords I’m seeking, anywhere in the file.

Categories Q&A, Unix & Linux Tags awk, find, grep, shell, text-processing Leave a comment

What exactly is scrollback and scrollback buffer?

August 10, 2022 by Magenaut

What are “scrollback” and “scrollback buffer” in programs like bash and screen, and how do they relate to the tty, the programs being run, and stdin/ stdout/ stderr?

Categories Q&A, Unix & Linux Tags buffer, scrolling, shell, terminal, tty Leave a comment

How are parentheses interpreted at the command line?

August 10, 2022 by Magenaut

While reading up on how to set up grub, I came across an article claiming that I need to use one of the following two syntaxes,

Categories Q&A, Unix & Linux Tags bash, quoting, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page14 Page15 Page16 … Page46 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