LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-21-2004, 09:08 PM   #1
aashish_us2002
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
Ksh : Command not found


Hi all !!
I am trying to swtich to ksh shell. And when I type "ksh" it says command not found. So I tried using "which ksh" again its saying command not found. I went to the bin directory but I didn't found ksh there. Rest of them are there like tcsh, sh, bash etc.
My default shell is tcsh....
Do I need to install ksh separately? If yes then please send me the site and the information about how to download it.......
By the way I am using Mandrake 10.1. This might help you guys a bit more.

Thanks in Advance.
Ash
 
Old 11-21-2004, 09:10 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Rep: Reputation: 33
Try...
Code:
chsh ksh
also logout and log back in

Forgot to add that I think you'll have to be root to in order to use the chsh command.

Last edited by Linux~Powered; 11-21-2004 at 09:19 PM.
 
Old 11-21-2004, 09:19 PM   #3
aashish_us2002
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
after using "chsh ksh" it says
chsh : user "ksh" doesn't exits........

Thanks
Ash
 
Old 11-21-2004, 09:25 PM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Rep: Reputation: 33
I'm sorry...

do this instead...

Code:
chsh
enter roots passwd...

then enter /bin/ksh

You'll still have to logout and log back in for it to take effect.

Last edited by Linux~Powered; 11-21-2004 at 09:30 PM.
 
Old 11-21-2004, 10:14 PM   #5
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by Linux~Powered
I'm sorry...

do this instead...

Code:
chsh
enter roots passwd...

then enter /bin/ksh
Some distros do not install ksh by default anymore. Mandrake being more of a user-friendly kind, I suspect it's the case. Try to find the package that contains ksh on your Mandrake CDs. It should be named "pdksh-<version>.rpm." Once you locate it, just install it using the rpm command (as root) as follows:
Code:
# rpm -ivh pdksh-<version>.rpm
That should take care of the problem.
 
Old 03-11-2006, 04:21 PM   #6
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 37
try simply typing: ksh
 
Old 03-11-2006, 04:24 PM   #7
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 37
pdksh-5.2.14-30 for Oracle 10.2.0.1.0

cannot find it...did a web search and searched on Redhat

Redhat search found it but there was no link to download

required pdksh-5.2.14-30
 
Old 03-11-2006, 05:12 PM   #8
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 37
found pdksh-5.2.14-30.i386.rpm...but error on rpm

landon (root) ~/pdksh [193]>lsa
total 1228
drwxr-xr-x 3 root root 4096 Mar 11 16:54 ./
drwxr-x--- 26 root root 4096 Mar 11 16:54 ../
drwxr-xr-x 6 root tomcat 4096 Mar 11 16:46 pdksh-5.2.14/
-rw-r--r-- 1 root root 226913 Mar 11 16:53 pdksh-5.2.14-30.i386.rpm
-rw-r--r-- 1 root root 491952 Mar 11 16:52 pdksh-5.2.14-30.src.rpm
-rw-r--r-- 1 root root 480107 Mar 11 16:44 pdksh-5.2.14.tar.gz
landon (root) ~/pdksh [194]>rpm -U pdksh-5.2.14-30.i386.rpm
file /bin/sh from install of pdksh-5.2.14-30 conflicts with file from package bash-3.0-31
file /usr/share/man/man1/sh.1.gz from install of pdksh-5.2.14-30 conflicts with file from package bash-3.0-31
landon (root) ~/pdksh [195]>
 
Old 03-11-2006, 05:24 PM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try
Code:
#urpmi pdksh
or
Code:
#urpmi ksh
 
Old 03-11-2006, 06:54 PM   #10
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 37
landon (root) ~/pdksh [213]>man urpmi
No manual entry for urpmi
landon (root) ~/pdksh [214]>
 
Old 03-11-2006, 07:16 PM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by landonmkelsey
landon (root) ~/pdksh [213]>man urpmi
No manual entry for urpmi
landon (root) ~/pdksh [214]>
urpmi is only available on Mandriva or derivatives. The OP mentioned that they were running Mandrake 10.1 so I posted how to install the packages in that particular distro. Mandriva has pdksh and ksh93 available in its software repositories.
 
Old 03-12-2006, 02:22 AM   #12
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I don't understand, why would anyone use anything other than bash?
 
Old 03-12-2006, 03:18 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
guys, this thread is 15 months old why are you replying?
 
Old 03-12-2006, 06:46 AM   #14
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by acid_kewpie
guys, this thread is 15 months old why are you replying?
I didn't even bother lookng at the date the thread was started. Thanks for that.
 
Old 03-12-2006, 06:49 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by /bin/bash
I don't understand, why would anyone use anything other than bash?
Many people with previous UNIX expereince, prefer KSH or CSH because those are the default shells on most UNIX flavours. Bash for a long time was just a Linux thing but many other UNIX and UNIX like operating systems have now incorporated it. I personally prefer zsh because it has better tab completion than bash.
 
  


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
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
The command ksh doesn't work Gins Linux - General 18 12-10-2004 12:57 AM
Help with command line options(ksh) SeT Programming 2 11-29-2004 06:54 PM
The ksh command Gins Linux - General 10 11-20-2004 06:56 PM
cd.. command not found?!? xtremcoder Fedora 4 10-06-2004 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 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
Open Source Consulting | Domain Registration