LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Omissions in Bash history (https://www.linuxquestions.org/questions/linux-software-2/omissions-in-bash-history-772779/)

Sqr 12-01-2009 04:01 PM

Omissions in Bash history
 
Code:

  353  cd ..
  354  ls
  355* 
  356  cd ~/Desktop
  357  history

Actually, I expected to see "pacman -Sl | grep php" in place of "*". What does this star mean? How to turn off such omission of typed commands?

TB0ne 12-01-2009 05:34 PM

Quote:

Originally Posted by Sqr (Post 3776188)
Code:

  353  cd ..
  354  ls
  355* 
  356  cd ~/Desktop
  357  history

Actually, I expected to see "pacman -Sl | grep php" in place of "*". What does this star mean? How to turn off such omission of typed commands?

Not sure what you expect us to do here...you don't give any details/information (version/distro of Linux, where you got those lines,etc), but there's not alot we can tell from what you've posted.

Exit the shell you're in first...all of them...the history should get updated.

Kenhelm 12-01-2009 11:14 PM

The star means the line has been modified. See
help history

Demonstration:
From the terminal prompt use the up-arrow key to display a previous command.
Delete the command with the backspace key.
Use the down-arrow key to return to the last prompt and enter
history
The modified line should now be displayed in the history as a line number followed by a star.

Sqr 12-02-2009 10:23 AM

Quote:

The star means the line has been modified. See help history.

Demonstration:
...
Thanks, especially for the demonstration. Can you give advice where I can read about history editing and other topics related to daily shell usage? Man bash and help history seems very brief and incomplete.

catkin 12-02-2009 11:06 AM

More than you ever wanted to know about command history here.


All times are GMT -5. The time now is 02:49 AM.