Results 1 to 4 of 4

Thread: History Pop up in shell?

  1. #1
    Join Date
    Apr 2016
    Beans
    6

    History Pop up in shell?

    Hello everyone.

    I'm learning a bit more about linux in depth using CBT Course.

    I've installed Ubuntu on my Laptop and on a VM (on my main PC) for testing purposes.

    As I come from the Windows oriented environments I was looking for a feature which is available in CMD and Powershell.

    In those tools after using number of commands at the CLI I can hit F7 on my keyboard and get a pop up which I can navigate and pick one of the commands I've ran since I've opened the current instance of that CLI tool.

    So far in Linux using the shell I learned about command called
    Code:
    history
    which gives a list of all commands typed in the CLI since ever, iirc. reading a bit into the history command MAN page it seems that it could be manipulated but it defeats the purpose of using a shorter way to get a used command again in 2 clicks instead of using another command to pull it out.


    Anyone can point me in the right direction?

    thanks
    Last edited by liron3; April 5th, 2016 at 08:35 PM.

  2. #2
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: History Pop up in shell?

    Not sure i understand at all but a guess at what it is you are asking is..
    in the history window(Terminal) you will see all the commands and they have numbers to the left.
    So my guess here is that you want to know how to call any any of those commands.
    To do that just put in a working terminal the "!" and the number of that command along with it.
    IE: "!247"
    Hope that is what you are after.

  3. #3
    Join Date
    Apr 2016
    Beans
    6

    Re: History Pop up in shell?

    Ha HA! works like charm.

    even better then F7 as it takes less clicks.

    thanks.

  4. #4
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: History Pop up in shell?

    Your Very Welcome.
    Kind regards and welcome to the forums

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •