Skip to content

Magenaut

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

command-history

How to quickly store and access often used commands?

August 10, 2022 by Magenaut

I have a lot of commands I routinely need to execute, often with the slightest variation.

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

How to access the history on the fly in Unix?

August 10, 2022 by Magenaut

For example, if I do a

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

Execute a line of commands with one sudo

August 10, 2022 by Magenaut

For example if I want to create a file and enter text in one line I can redirect the output into a file with the use of the > operator:

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

How can I remove duplicates in my .bash_history, preserving order?

August 9, 2022 by Magenaut

I really enjoying using control+r to recursively search my command history. I’ve found a few good options I like to use with it:

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

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

Is there any way to execute commands from history?

August 9, 2022 by Magenaut

For example:

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

Per-directory history in zsh

August 9, 2022 by Magenaut

I am happily using zsh since a while now, and I am quite satisfied with my history settings, which are:

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

Where is the log of used commands in Linux?

August 9, 2022 by Magenaut

In Linux, generally we use a lot of commands and it is difficult to remember all of them.

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

Is there a maximum size to the bash history file?

August 8, 2022 by Magenaut

Can I increase the size of the command history in bash?

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

Is there any way to undo a bash history modification?

August 8, 2022 by Magenaut

By pressing up, I can go through previously entered commands. I’ve noticed though that if I modify one of them, that alters the history. For instance, if I type:

Categories Q&A, Unix & Linux Tags bash, command-history Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 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