LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-07-2008, 03:53 AM   #1
chacobo
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
joe disappeared and doesn't have "less" command


I'm a first day user following the newbie guide on linux.org.

I've tried the editing tool "joe" and it worked. But after a few strokes it's gone entirely (command not found). Didn't appear in "man joe" nor "apropos joe". I didn't even know how to us "rm" by that time.

And I don't have the "less" command. Is it because I'm using the netist version of Debian GNU? Thought it's some super common command.

How do I install these two back? Thanks a lot.
 
Old 11-07-2008, 04:00 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Do any other commands not work?

Can you do a:
Code:
locate less
or
Code:
locate joe
It sounds to me like you've nuked your PATH variable, which tells the shell (probably bash) where to find binaries. If you open a new terminal session, it should regenerate the PATH variable for that new session.
 
Old 11-07-2008, 04:34 AM   #3
chacobo
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I tried those two and they all came up with "No such file or directory"
 
Old 11-07-2008, 04:58 AM   #4
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Check echo $PATH - it should be somwthing like /usr/local/bin:/usr/bin:/bin:/usr/games there.
If it is, then try to reinstall joe and less with # apt-get install joe less

And read man rm to learn how to use rm
 
Old 11-08-2008, 11:39 AM   #5
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Might try "find"
Code:
$ # find / -name less
/usr/bin/less
/usr/lib/mime/packages/less
/usr/share/doc/less
$
which shows three instances of "less" on a ubuntu machine
Your mileage may vary
 
  


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
introducing myself - Egyptian "Joe" youssef.salah LinuxQuestions.org Member Intro 3 07-17-2008 08:17 AM
Why does "joe ALL=NOPASSWD: ALL" in sudoers not work? lumix Linux - Newbie 3 06-19-2008 12:04 PM
LXer: How and When "Average Joe" and "Geek" Get New PCs (Comic) LXer Syndicated Linux News 2 05-25-2008 03:58 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
"Joe Jobbing" ignhie Linux - Security 4 07-15-2005 10:02 AM


All times are GMT -5. The time now is 06:12 PM.

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