Skip to content

Magenaut

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

bash

Delete files same name but different file extension

August 8, 2022 by Magenaut

I have a mess in my photo libary. I have files like these:

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

Why bash “read -t 0” does not see input?

August 8, 2022 by Magenaut

My script (should) acts differently, depending on the presence of the data in the input stream. So I can invoke it like this:

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

Shellcheck complains that I should not to read and write the same file in the same pipeline

August 8, 2022 by Magenaut

ShellCheck show the following error for this line of code:

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

Disable bash’s cache of executables in the path

August 8, 2022 by Magenaut

Note that this is not a duplicate. I am asking about disabling the cache, not clearing it. If you have a cache to clear, then it is obviously not disabled.

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

Bash scripts ran from from gnome/nautilus don’t have environment variables

August 8, 2022 by Magenaut

In my ~/.bashrc and ~/.profile I have some variables set to some filepaths:

Categories Q&A, Unix & Linux Tags bash, bashrc, debian, gnome3 Leave a comment

How to automatically record all your terminal sessions with script utility

August 8, 2022 by Magenaut

What I want to achieve is be able to record my terminal sessions to file automatically whenever I use Yakuake/Konsole.

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

Bash: issuing trap twice

August 8, 2022 by Magenaut

If I issue the trap builtin twice [for the same signal], what happens? Is the second command added to the first, or does it replace the first?

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

Can I write the output the of time difference command to a file?

August 8, 2022 by Magenaut

Can I write the output of the time difference command to a file?

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

Why a long delay after command not found?

August 8, 2022 by Magenaut

Often when I mistype a command such as ls (e.g. I hit ENTER before I type ā€˜s’) there is a long (~2s) delay after the terminal displays:

Categories Q&A, Unix & Linux Tags bash, command-line, command-not-found, fedora Leave a comment

How to combine 2 -name conditions in find?

August 8, 2022 by Magenaut

I would like to search for files that would not match 2 -name conditions. I can do it like so :

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