Skip to content

Magenaut

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

bash

Excluding some of the commands from being getting stored in bash history

August 9, 2022 by Magenaut

Is there any way to exclude commands like rm -rf, svn revert from being getting stored in bash history? Actually I, by mistake, have issued them a number of times even though I have no intent to do, just because I am doing things quickly and it happened. Hence results in lost of lots of work I have did so far.

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

Count number of lines of output from previous program

August 9, 2022 by Magenaut

I’m trying to count the number of lines of output a certain program produces. The problem is, the program takes a long time to run, and I want to display the output to the user. Is there a way to count the number of lines the last command outputted?

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

In bash how can I change the color of my command prompt?

August 9, 2022 by Magenaut

Possible Duplicate:
How to customize .bashrc to configure command prompt?

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

typeset -A is giving error in script

August 9, 2022 by Magenaut

I was using associative arrays in my script, hence I used to declare them by the

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

When typing ctrl-c in a terminal, why isn’t the foreground job terminated until it completes?

August 9, 2022 by Magenaut

If Bash is waiting for a command to complete and receives a signal for
which a trap has been set, the trap will not be executed until the
command completes.

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

suppress stderr messages in a bash script

August 9, 2022 by Magenaut

Consider the following (slightly silly) script name ‘test1.sh’:

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

Terminal autocomplete: cycle through suggestions

August 9, 2022 by Magenaut

I had this on my Ubuntu setup and since I switched to Fedora I want to set it and I forgot how… The idea is simple :

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

How can I delete a word backward at the command line (bash and zsh)?

August 9, 2022 by Magenaut

How can I delete a word backward at the command line? I’m truly used to some editors deleting the last ‘word’ using Ctrl+Backspace, and I’d like that functionality at the command line too.

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

Separator between command list and }

August 9, 2022 by Magenaut

The Bash Manual says

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

Split string using IFS

August 9, 2022 by Magenaut

I have written a sample script to split the string but it is not working as expected

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