Skip to content

Magenaut

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

shell

How to hide commands typed in a Linux shell?

August 6, 2022 by Magenaut

Is there a way to hide what I’m typing in a shell, so the terminal doesn’t echo my keystrokes, while still keeping the output of the command?

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

Identifying the system package manager

August 6, 2022 by Magenaut

Is there a way (from a script) to identify the default system package manager?

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

How variables inside braces are evaluated

August 6, 2022 by Magenaut

I’m new to shell scripting and I came across these expressions

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

Why does bash variable expansion retain quotes?

August 6, 2022 by Magenaut

> echo "hi" hi > VAR='echo "hi"' > $VAR "hi" Why is the output of the above commands different? A similar thing occurs with single quotes: > VAR="echo 'hi'" > $VAR > 'hi' Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the … Read more

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

How can I assign an initial/default password to a user in Linux?

August 6, 2022 by Magenaut

I found a guide that explains how to set a user’s password. I’m trying to automate it and send an e-mail to the user like:

Categories Q&A, Unix & Linux Tags administration, linux, shell, shell-script, useradd Leave a comment

Why is the terminal case-sensitive?

August 6, 2022 by Magenaut

When I do – CD .. instead of cd ..
it gives me error saying –

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

Delete all files starting with a question mark

August 6, 2022 by Magenaut

I have a folder in which I have around 4k files. Some of these files start with a a ? or ! character. I need to delete them but can’t find an expression that would do so:

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

How does ‘find -exec’ pass file names with spaces?

August 6, 2022 by Magenaut

If I have a directory containing some files whose names have spaces, e.g.

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

Where is “export var=value” not available?

August 6, 2022 by Magenaut

I have picked up — probably on Usenet in the mid-1990s (!) — that the construct

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

Check whether files in a file list exist in a certain directory

August 6, 2022 by Magenaut

The runtime arguments are as follows: $1 is the path to the file containing the list of files
$2 is the path to the directory containing the files
What I want to do is check that each file listed in $1 exists in the $2 directory

Categories Q&A, Unix & Linux Tags bash, files, scripting, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page43 Page44 Page45 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