Skip to content

Magenaut

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

shell

Fine-tune LS_COLORS for directory suffixes?

August 8, 2022 by Magenaut

I’m fine customizing most settings in LS_COLORS. I don’t need help customizing the colors for different file suffixes. What I would like to do is configure special colors for certain directories, based on their suffix.

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

Is there a way to see details of all the threads that a process has in Linux?

August 8, 2022 by Magenaut

For Windows, I think Process Explorer shows you all the threads under a process.

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

Export Command History into a Shell Script

August 8, 2022 by Magenaut

Often I have complicated installation procedures to follow,
like having to build dependencies for buildtools, to build dependencies for the application I wish to install from source.

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

“a word that is identical to an alias being expanded is not expanded a second time”

August 8, 2022 by Magenaut

Bash manual says

Categories Q&A, Unix & Linux Tags alias, bash, shell 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

Take text “screenshot” of current terminal contents

August 8, 2022 by Magenaut

I would like to, every 30 seconds or so, copy all text of a certain terminal or terminal emulator to a file, and display it in conky. I’m not talking about simple redirection (command > file), which doesn’t work for ncurses programs or games such as NetHack.

Categories Q&A, Unix & Linux Tags shell, terminal, tty 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

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

SSH connections running in the background don’t exit if multiple connections have been started by the same shell

August 8, 2022 by Magenaut

Apparently, if the same shell launches multiple ssh connections to the same server, they won’t return after executing the command they’re given but will hang (Stopped (tty input)) for ever. To illustrate:

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

Safe Directory Delete

August 8, 2022 by Magenaut

I alias rm to rm -i so that when I mistype file* as file * I get prompted before accidentally deleting files I didn’t intend to delete. Is there an equivalent idiom for directories?

Categories Q&A, Unix & Linux Tags bash, rm, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page33 Page34 Page35 … 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