Try "fc -l" (thats dash ell) no quotes
shows a tail of whats in .bash_history I think
Or - if you know the command's number in the history sequence
"fc {$line_no}"
Brings Previous command comes up in your default editor
Default here (Ubuntu Hardy) was set to the nano editor for some reason
so i did FCEDIT=vi ; export FCEDIT
NOW things are more better
Jay
Louis J Rouleau
Semi-Old Man
South Hadley
---------------
Date: Wed, 12 Jan 2011 16:02:29 -0500
From: Jorden M
Folks,
I have? always wondered at my ability to keep the myriad of LINUX instructions in my head.? What would I do?if I were to start losing them? Is there a tool to search for recall?
Is there any way to go backwards in LINUX command land? ?If I were to remember that there is a command that will print on standard output the contents of a file in txt characters,? but could not for the life of me remember 'more'.? Where would I go for help (other than sending a email to this list serve)?? All the command dictionaries I have are alphabetic.
Ken Jones (the elder) _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
apropos, although that isn't always helpful. Google. There are also
some sites that have commands listed categorically.
------------------------------
Message: 4
Date: Wed, 12 Jan 2011 19:00:25 -0500
From: "John Stoffel"
"Ken" == Ken Jones
writes:
Ken> Folks,
Ken> I have always wondered at my ability to keep the myriad of LINUX instructions in my head. What would I do if I were to start losing them? Is there a tool to search for recall?
Ken> Is there any way to go backwards in LINUX command land? If I
Ken> were to remember that there is a command that will print on
Ken> standard output the contents of a file in txt characters, but
Ken> could not for the life of me remember 'more'. Where would I go
Ken> for help (other than sending a email to this list serve)? All
Ken> the command dictionaries I have are alphabetic.
man -k something
where something is vaguely related to your needs. In this case, I
just did 'man -k text' and the last things that popped up were
'zmore'. Plus a bunch of other system calls and library calls about
text handling.
Maybe pickup one of the linux for beginners books that O'Reilly puts
out? Unix in a Nutshell, etc. That should help you find commands.
Also, *any* text editor will let you read a text file, even if you
don't want to edit it.
John
------------------------------
Message: 5
Date: Wed, 12 Jan 2011 19:24:17 -0500
From: Gregory Avedissian
Folks,
I have always wondered at my ability to keep the myriad of LINUX instructions in my head. What would I do if I were to start losing them? Is there a tool to search for recall?
Is there any way to go backwards in LINUX command land? If I were to remember that there is a command that will print on standard output the contents of a file in txt characters, but could not for the life of me remember 'more'. Where would I go for help (other than sending a email to this list serve)? All the command dictionaries I have are alphabetic.
Ken Jones (the elder)
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
------------------------------
Message: 6
Date: Wed, 12 Jan 2011 19:44:57 -0500
From: James Gray
Folks,
I have? always wondered at my ability to keep the myriad of LINUX instructions in my head.? What would I do?if I were to start losing them? Is there a tool to search for recall?
------------------------------
Message: 7
Date: Wed, 12 Jan 2011 19:52:13 -0500
From: Jorden M
"Ken" == Ken Jones
writes: Ken> Folks, Ken> I have ?always wondered at my ability to keep the myriad of LINUX instructions in my head. ?What would I do if I were to start losing them? ? Is there a tool to search for recall?
Ken> Is there any way to go backwards in LINUX command land? ?If I Ken> were to remember that there is a command that will print on Ken> standard output the contents of a file in txt characters, but Ken> could not for the life of me remember 'more'. ?Where would I go Ken> for help (other than sending a email to this list serve)? ?All Ken> the command dictionaries I have are alphabetic.
man -k something
where something is vaguely related to your needs. ?In this case, I just did 'man -k text' and the last things that popped up were 'zmore'. ?Plus a bunch of other system calls and library calls about text handling.
Maybe pickup one of the linux for beginners books that O'Reilly puts out? ?Unix in a Nutshell, etc. ?That should help you find commands.
Also, *any* text editor will let you read a text file, even if you don't want to edit it.
John _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
------------------------------
Message: 8
Date: Wed, 12 Jan 2011 21:19:39 -0500
From: Franklin Moody
The up arrow will take you through your command history in reverse order. If you want to see more than one command at a time, open .bash_history in your home with a text editor, or, while you're still remembering it, do 'more .bash_history'. If you remember the command, but you can't recall what options you used with it, 'grep some-command .bash_history' can help.
You can set the system to hold more commands, if you want. In debian, the default is to hold the last 500 commands. I don't recall what it is in other distros.
Spiral-bound notebook is good, too. A couple of pages of your favorite commands and just about anything else will still be readable if the system crashes.
Greg Avedissian
I usually use "history | grep $blah" when looking for a particular set of command line options... On machines where I don't intentionally disable history for security... Frank ------------------------------ _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug End of Wlug Digest, Vol 87, Issue 9 ***********************************
participants (1)
-
temljrmjrlmr@comcast.net