Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I want to run some ksh script in my virtual machine which is in ubuntu. Although I have install ksh, the shell is always remain in bash. What was wrong? Please help.
I think I didn't explain my question well, sorry
I tried to figure what shells I have and did the following:
user@user-desktop:~/Desktop$ cat /etc/shells
# /etc/shells: valid login shells
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/esh
/bin/dash
/usr/bin/screen
/bin/bash
/bin/rbash
/bin/ksh93
Then I think I probably type "ksh" and will change shell, but
user@user-desktop:~/Desktop$ ksh
$ echo $SHELL
/bin/bash
see, it is showing the current shell is still bash.
What I really want to do is to test a simple ksh script; I plan to change my shell temporary and see if the script is working. I know it is a really stupid question, but I am too new in linux.
Wow! I thought I did install from "synaptic package manage", because I install my emacs from there and it is working. If that is the case, Can I find a manual or guide to finish the installation?
Quote:
Originally Posted by jdkaye
That seems to be just a list of all possible shells. Running the same command on my system also shows ksh but it is not installed on my system.
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731
Rep:
Hi,
From the bash man page
Code:
SHELL
The full pathname to the shell is kept in this environment variable.
If it is not set when the shell starts, bash assigns to it the full pathname
of the current user’s login shell.
Wow! I thought I did install from "synaptic package manage", because I install my emacs from there and it is working. If that is the case, Can I find a manual or guide to finish the installation?
Code:
aptitude search ksh
This will tell you if ksh is installed or not.
ciao,
jdk
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.