Skip to content

Magenaut

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

shell

Using “find” non-recursively?

August 8, 2022 by Magenaut

Using /bin/find /root -name '*.csv' returns:

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

How to preserve the newline character (n) when capture output of a command in a variable

August 8, 2022 by Magenaut

As a simple example, I have a bunch of source code files. I want to store the “head” command output to a variable for all these files.

Categories Q&A, Unix & Linux Tags bash, command-substitution, newlines, shell Leave a comment

Does redirecting output to a file apply a lock on the file?

August 8, 2022 by Magenaut

If I have a command

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

Shell valid function name characters

August 8, 2022 by Magenaut

Using extended Unicode characters is (no-doubt) useful for many users.

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

Why doesn’t grep using pipe work here?

August 8, 2022 by Magenaut

I have the following command:

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

How to escape a single quote?

August 8, 2022 by Magenaut

end the single-quoted string, add escaped (either by backslash or double quotes) single quote, and immediately start the following part of your string:

Categories Q&A, Unix & Linux Tags escape-characters, quoting, scripting, sed, shell Leave a comment

Why is $ the default symbol for a user shell and # the default symbol for a root shell?

August 8, 2022 by Magenaut

Operating a standard bash shell on a server, the PS1 prompt defaults to ending in a $ for non-root users, and # for root.

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

Why isn’t there any shell command to create files?

August 8, 2022 by Magenaut

Attention please: I am not asking how to make a file from the command line! I have been using touch for making files for years without paying attention that its main purpose is something else. If one wants to create a file from command line there are so many possibilities: touch foo.bar > foo.bar cat … Read more

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

Why is the ‘if [ $1=”1″ ]’ branch always selected even if $1 is not 1?

August 8, 2022 by Magenaut

I have a shell script named ‘teleport.sh’ like this:

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

Order of executables started in bash

August 8, 2022 by Magenaut

If I execute the test command in bash, test(evaluates conditional expression) built-in utility is started:

Categories Q&A, Unix & Linux Tags bash, command, shell, shell-builtin Leave a comment
Older posts
Newer posts
← Previous Page1 … Page27 Page28 Page29 … 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