Skip to content

Magenaut

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

bash

Completely restart Bash

August 7, 2022 by Magenaut

Is there a way to completely restart Bash and reload .bashrc and .profile and the like? I’d like to make sure my changes worked out properly after editing these files.

Categories Q&A, Unix & Linux Tags .bash-profile, bash, bashrc, source Leave a comment

How to convert floating point number to integer?

August 7, 2022 by Magenaut

Is this the right way to do float to integer conversion in bash? Is there any other method?

Categories Q&A, Unix & Linux Tags bash, floating-point, numeric-data Leave a comment

Is there any book , Tutorial on very very advanced shell scripting

August 7, 2022 by Magenaut

I am looking for some tutorial where a simple script is written using very advanced methods so that i can learn more from Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you … Read more

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

Disable CTRL-D from closing my window with the terminator terminal emulator)

August 7, 2022 by Magenaut

I am often logged in several SSH sessions at once. To logout from several sessions, I press CTRL+d, until I am back on my local machine. However, I occasionally press it once too many, and my terminal exits. Is there a way to make CTRL+d unable to close my terminal ? I am using terminator … Read more

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

Preserve directory structure when moving files using find

August 7, 2022 by Magenaut

I have created the following script that move old days files as defined from source directory to destination directory. It is working perfectly.

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

Read columns from file into separate variables

August 7, 2022 by Magenaut

I need to read the following input into separate columns as variables?
input.txt

Categories Q&A, Unix & Linux Tags bash, command-line, text-processing Leave a comment

How do I open an incognito bash session?

August 7, 2022 by Magenaut

Is it possible to open an incognito session in bash?

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

How to efficiently generate large, uniformly distributed, random integers in bash?

August 7, 2022 by Magenaut

I have been wondering what would be the best way to get good randomness in bash, i.e., what would be a procedure to get a random positive integer between MIN and MAX such that

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

How does !! work in bash?

August 7, 2022 by Magenaut

Very useful when you forget a sudo at the beginning of your command, !! acts like an alias of the previous command. Example :

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

Why do these bash fork bombs work differently and what is the significance of & in it?

August 7, 2022 by Magenaut

I get how a normal fork bomb works, but I don’t really understand why the & at the end of the common bash fork bomb is required and why these scripts behave differently:

Categories Q&A, Unix & Linux Tags bash, fork, shell-script Leave a comment
Older posts
Newer posts
← Previous Page1 … Page51 Page52 Page53 … 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