Skip to content

Magenaut

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

Unix & Linux

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

Finding text between two specific characters or strings

August 6, 2022 by Magenaut

Say I have lines like this:

Categories Q&A, Unix & Linux Tags regular-expression, text-processing Leave a comment

How to set file permissions with touch command

August 6, 2022 by Magenaut

It seems that whenever I create a file with touch the permissions are set to: -rw-r–r–.

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

What is the file descriptor 3 assigned by default?

August 6, 2022 by Magenaut

$ ls -og /proc/self /proc/self/fd lrwxrwxrwx 1 64 Jun 18 11:12 /proc/self -> 32157 /proc/self/fd: total 0 lrwx—— 1 64 Jun 22 2012 0 -> /dev/tty1 lrwx—— 1 64 Jun 22 2012 1 -> /dev/tty1 lrwx—— 1 64 Jun 22 2012 2 -> /dev/tty1 lr-x—— 1 64 Jun 22 2012 3 -> /proc/32157/fd What is … Read more

Categories Q&A, Unix & Linux Tags file-descriptors 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

What is the difference in using Ctrl+D and Ctrl+C to terminate cat command?

August 6, 2022 by Magenaut

I have the following two test files:

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

Is there a way to determine what packages or libraries should be loaded to support an executable?

August 6, 2022 by Magenaut

There is an executable I want to install on a computer that I can’t recompile that wasn’t built as a package, and I want to download the libraries it requires to run them.

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

How to get only filename using sed

August 6, 2022 by Magenaut

How can I get only the filename using sed? I’ve this

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

How can I delete a file named “>”?

August 6, 2022 by Magenaut

I was running a Python script that malfunctioned and used sudo to create a file named >.

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

What is the Linux equivalent of DOS “dir /s /b filename”?

August 6, 2022 by Magenaut

List all files/dirs in or below the current directory that match ‘filename’.

Categories Q&A, Unix & Linux Tags ls Leave a comment
Older posts
Newer posts
← Previous Page1 … Page344 Page345 Page346 … 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