LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-01-2009, 04:01 PM   #1
Sqr
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Question 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?
 
Old 12-01-2009, 05:34 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,419

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Quote:
Originally Posted by Sqr View Post
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.
 
Old 12-01-2009, 11:14 PM   #3
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 329

Rep: Reputation: 140Reputation: 140
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.
 
1 members found this post helpful.
Old 12-02-2009, 10:23 AM   #4
Sqr
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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.

Last edited by Sqr; 12-02-2009 at 10:32 AM.
 
Old 12-02-2009, 11:06 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,533
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
More than you ever wanted to know about command history here.
 
  


Reply

Tags
bash, history


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash history delete command from bash itself ashishag Linux - Software 6 05-02-2010 03:39 AM
need someone to look into this bash history bytez Linux - General 7 10-16-2006 10:26 PM
bash history jasonnth Linux - Software 7 08-08-2006 01:35 AM
bash history slowly Linux - General 2 11-12-2004 11:35 AM
Bash History ukndoit Linux - Security 2 10-16-2003 09:02 AM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration