Skip to content

Magenaut

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

command-history

Where is bash’s history stored?

August 11, 2022 by Magenaut

If I run history, I can see my latest executed commands.

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

How do I close a terminal without saving the history?

August 11, 2022 by Magenaut

More than once I’ve accidentally run a number of commands and polluted my bash history. How do I close my terminal without saving my bash history? I’m using Fedora.

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

What does !$ mean?

August 11, 2022 by Magenaut

I’m following through a tutorial and it mentions to run this command:

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

Command-line completion from command history

August 11, 2022 by Magenaut

So, I’ve looked at history and at Ctrl+R, but they are not what I thought I knew.
Is there a way that I can type in the beginning of a command, and cycle through the matches in my history with some bash shortcut?

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

How can you log every command typed

August 11, 2022 by Magenaut

How can you log every command someone has entered into the shell?

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

Clipboard for copying and pasting files in command line?

August 11, 2022 by Magenaut

In Bash, suppose I visit a directory, and then another directory. I would like to copy a file from the first directory to the second directory, but without specifying the long pathnames of them. Is it possible?

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

^x^y unix trick for all instances in last command?

August 11, 2022 by Magenaut

One of my favorite Unix tricks is ^x^y, which will take the last command and replace the first instance of “x” with “y”. However, I’m wondering if a similar trick works to replace all instances of “x” with “y” in the last command?

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

How to execute consecutive commands from history?

August 10, 2022 by Magenaut

Suppose I want to execute a sequence of four commands that I have executed before. If the first one is 432 in the command-history, then I could do:

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

How to properly escape exclamation points in bash?

August 10, 2022 by Magenaut

Today, I was caught redhanded while attempting to code golf a password generator for Twitter.

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

How do I repeat the last command without using the arrow keys?

August 10, 2022 by Magenaut

I know I can use Up to iterate through previous commands. Running the last command simply involves Up + Enter. However, I was thinking of buying the Happy Hacking Keyboard as I spend a lot of time in vim.

Categories Q&A, Unix & Linux Tags command-history, keyboard-shortcuts, shell Leave a comment
Older posts
Page1 Page2 … 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