LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3972/0)
Reviews (626/0)
Press Releases (464/0)
Distributions (187/0)
Software (807/0)
Hardware (522/0)
Security (192/0)
Tutorials (337/0)
Off Topic (180/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events



CLI Magic: Bash history expansion   
Thursday, July 21 2005 @ 03:05 AM EDT
Contributed by: glosser

We visit Linux.com for this tutorial on Bash history.

This week's CLI Magic -- by Shashank Sharma -- is all about history expansion. The Bourne-Again SHell (bash) has a major user base and the fact that it has incorporated some useful features from the Korn shell (ksh) and C shell (csh) might be one of the reasons. History expansion, for example, was first implemented in csh.

Recalling commands

Entering the history command without any switches displays the history list with line numbers. If that's too much information, enter history N where N is the number of previously executed commands you want displayed.

Full tutorial

  [ Views: 1568 ]  


CLI Magic: Bash history expansion | 0 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No user comments.


What's Related
  • Full tutorial
  • More by glosser
  • More from Tutorials


  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, and SQL.

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved