LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2011, 04:08 PM   #1
Mountaineer
Member
 
Registered: Oct 2011
Location: Keene, NY
Distribution: 11.10
Posts: 33
Blog Entries: 1

Rep: Reputation: 2
No such command found


I type ~history and get my command history. I want #90 so I type !command90 and get "no such command found". Seems simple but I'm in left field apparently. Please - any observations, suggestions?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-05-2011, 04:22 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hmm, tried the ctrl-r command? How about this:

Quote:
[ctrl-r] (start to type here)
and the shell should complete whatever you enter...

If you know the number of the command, you'd execute the line like this:

Quote:
fc -s number
If the requested command is number 950, then that would read:

Quote:
fc -s 950
Good luck

Thor

Last edited by ButterflyMelissa; 11-05-2011 at 04:46 PM.
 
1 members found this post helpful.
Old 11-05-2011, 04:32 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,128
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
try
Code:
fc -90
it will open it in vim
 
1 members found this post helpful.
Old 11-06-2011, 02:35 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
The correct syntax is:
Code:
!90
Kind regards
 
1 members found this post helpful.
Old 11-06-2011, 03:17 AM   #5
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 216

Rep: Reputation: 29
I believe that the correct syntax depends on the shell. It just so happens that bash suports both fc and ! history lookup commands.
 
2 members found this post helpful.
Old 11-06-2011, 11:47 AM   #6
Mountaineer
Member
 
Registered: Oct 2011
Location: Keene, NY
Distribution: 11.10
Posts: 33
Blog Entries: 1

Original Poster
Rep: Reputation: 2
Command history

Thank you, Gentlemen. I attempted to copy the command as it appeared in my guide. It seems that a guide may be incomplete or outdated.

Mountaineer
 
Old 11-06-2011, 12:01 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,128
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Which command did you use in the end. Can you mark your threads solved In thread tools
 
1 members found this post helpful.
Old 11-06-2011, 02:16 PM   #8
Mountaineer
Member
 
Registered: Oct 2011
Location: Keene, NY
Distribution: 11.10
Posts: 33
Blog Entries: 1

Original Poster
Rep: Reputation: 2
There was no "end". I never got the command repeated. It wasn't crucial. I was just trying a number of things I read about. What do you mean by thread tools? I rate responses positively because they have been positive.
 
Old 11-06-2011, 02:18 PM   #9
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Thread tools is a drop-down box all the way on top of the page, right above the very first post...

Thanks for rating...and thanks (on a personal note) for an interesting question!

Happy Linuxin'!!

Thor

Last edited by ButterflyMelissa; 11-06-2011 at 02:21 PM.
 
1 members found this post helpful.
  


Reply


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
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 02:10 PM
Command not found Moataz Red Hat 10 03-30-2010 04:13 AM
Shell: command not found / Runs fine with "Run command" badbunny Linux - Newbie 1 01-22-2007 02:21 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration