Skip to content

Magenaut

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

Unix & Linux

How process substitution is implemented in bash?

August 9, 2022 by Magenaut

I was researching the other question, when I realized I don’t understand what’s happening under the hood, what are those /dev/fd/* files and how come child processes can open them.

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

Best way to swap filenames

August 9, 2022 by Magenaut

I need to swap filenames of two files (file and file_1). I’m using the following code for it.

Categories Q&A, Unix & Linux Tags files, rename, shell, shell-script Leave a comment

What exactly do we mean when we say we are using Linux?

August 9, 2022 by Magenaut

I was going through an article on GNU which goes something like below

Categories Q&A, Unix & Linux Tags gnu, linux Leave a comment

Switch to a text console in Fedora

August 9, 2022 by Magenaut

I have switched recently to Fedora 22 from Ubuntu Gnome. In Ubuntu gnome, when my Kodi media center used to hang while in full-screen, I used to press Ctrl+Alt+F1 to switch to terminal.

Categories Q&A, Unix & Linux Tags console, linux, xorg Leave a comment

Directory size calculation difference

August 9, 2022 by Magenaut

I need to get the size of directory in terminal for signing purposes. I’m using following command:

Categories Q&A, Unix & Linux Tags disk-usage, osx Leave a comment

Is it a UUOC (useless use of cat) to redirect one file to another?

August 9, 2022 by Magenaut

If I want to make the contents of file2 match the contents of file1, I could obviously just run cp file1 file2.

Categories Q&A, Unix & Linux Tags cat, file-copy, files, io-redirection Leave a comment

Question about behavior of control key shortcuts

August 9, 2022 by Magenaut

I am confused about how Ctrl-key combinations work in terminal. In bash man page, there are various combinations such as:

Categories Q&A, Unix & Linux Tags bash, escape-characters, keyboard-shortcuts, terminal Leave a comment

Number of files containing a given string

August 9, 2022 by Magenaut

How can I count the number of files (in a directory) containing a given string as input in bash/sh?

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

How to customize PS1 properly?

August 9, 2022 by Magenaut

I customized my bash with this in my bashrc

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

How can I use a variable as a case condition?

August 9, 2022 by Magenaut

I am trying to use a variable consisting of different strings separated with a | as a case statement test. For example:

Categories Q&A, Unix & Linux Tags bash, case, shell-script Leave a comment
Older posts
Newer posts
← Previous Page1 … Page116 Page117 Page118 … 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