Skip to content

Magenaut

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

shell

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

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

How do I perform an action on all files with a specific extension in subfolders in an elegant way?

August 10, 2022 by Magenaut

My current best bet is:

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

What is the rationale for the bash shell not warning you of arithmetic overflow etc.?

August 10, 2022 by Magenaut

There are limits set for the arithmetic evaluation capabilities of the bash shell. The manual is succinct about this aspect of shell arithmetic but states:

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

Brace expansion not working in a script

August 10, 2022 by Magenaut

for i in {1..40} do echo $i done I got {1..40} and I would like to have something like 1 2 3 and so on so I can use the variable i inside a command’s parameter. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help … Read more

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

$BASHPID And $$ differ in some cases

August 10, 2022 by Magenaut

I’m reading “BASH pocket guide of Oreilly”.
It said:

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

Bash clear command weird behavior deletes scrollback buffer.

August 10, 2022 by Magenaut

Whenever I run clear in my terminal, it deletes the scrollback buffer from the top of the screen to the current line. I have tried it in xterm, st, and urxvt, and the problem remains. Is there any way I can change the behavior of clear so it does not touch the scrollback buffer?

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

What characters are required to be escaped in command line arguments?

August 10, 2022 by Magenaut

In Bash, when specifying command line arguments to a command, what characters are required to be escaped?

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

How to check if file is empty or it has only blank characters?

August 10, 2022 by Magenaut

This will notify us if the file is empty:

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

How to get the real name of the controlling terminal?

August 10, 2022 by Magenaut

How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname?

Categories Q&A, Unix & Linux Tags controlling-terminal, shell, terminal, tty Leave a comment
Older posts
Newer posts
← Previous Page1 … Page18 Page19 Page20 … 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