LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-11-2007, 08:10 AM   #1
alrawab
Member
 
Registered: Dec 2002
Location: Libya
Distribution: RHLE 5 + slackware 12
Posts: 60

Rep: Reputation: 15
solars terminal


hey

can any solars expert tell me how to complete command in solars term
in linux we use tab
how to scroll history by using arrows up and down in our linux
how can i do that solars term....
thnx
BR,
SIS

Last edited by alrawab; 12-11-2007 at 08:12 AM.
 
Old 12-11-2007, 09:36 AM   #2
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Works the same in Solaris, assuming you have the proper shell setup. Make sure that you're setup to use "bash" and not some other shell.
 
Old 12-11-2007, 09:44 AM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
It isn't a function of the terminal, it is a function of the shell. The shell you are using in Solaris can be the same as the one you are using in any other unixlike operating system. To figure out what shell you are using in linux (if you don't already know) you can run the command, "echo $SHELL". Then on solaris run "whereis [fillinshellhere]" replacing [fillinshellhere] with the shell from above without the path (example: if $SHELL == "/bin/bash" only use "bash"). You can then change the shell in /etc/passwd to the output of the whereis command. If you don't have the shell installed, you will need to install it.

HTH

Forrest
 
Old 12-11-2007, 11:03 AM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
The default shell in Solaris is /bin/sh

You can change this by typing "bash" in the terminal. Also if you want your default shell to be bash edit the /etc/passwd file and change the /bin/sh to /bin/bash (or any other shell you like)

-C
 
Old 12-11-2007, 11:48 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Instead of bash, you can also use the latest ksh93 on Solaris Express which finally allows these frequently asked features.
 
Old 12-11-2007, 11:58 AM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
If Solaris is keeping with tradition, your default shell is csh. You can change this by editing "/etc/passwd". Change the part that says "/bin/csh" to "/bin/bash". This assumes you have bash installed.
 
Old 12-11-2007, 12:35 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by David1357 View Post
If Solaris is keeping with tradition, your default shell is csh.
I don't know why this incorrect information is so widespread. Solaris default shell has always been the old Bourne shell /bin/sh.
Quote:
You can change this by editing "/etc/passwd". Change the part that says "/bin/csh" to "/bin/bash". This assumes you have bash installed.
Alternatively, root can use this command to change username's shell:
"passwd -e username"
 
Old 12-11-2007, 04:17 PM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by jlliagre View Post
I don't know why this incorrect information is so widespread. Solaris default shell has always been the old Bourne shell /bin/sh.
Yay I was right for once
 
Old 12-11-2007, 05:01 PM   #9
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by jlliagre View Post
I don't know why this incorrect information is so widespread. Solaris default shell has always been the old Bourne shell /bin/sh.
I used to use a Solaris machine where csh was my shell. Maybe the administrator changed it when he created the account.
 
Old 12-11-2007, 07:34 PM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Indeed, administrators are free to change their machines new users default shell.
 
Old 12-17-2007, 02:12 AM   #11
alrawab
Member
 
Registered: Dec 2002
Location: Libya
Distribution: RHLE 5 + slackware 12
Posts: 60

Original Poster
Rep: Reputation: 15
hey
thnx it work will now
BR,
SIS
 
  


Reply



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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
How burn Solars 10 freeware dvd`s or cd on windowsxp Home suse91pro General 9 09-18-2005 07:25 AM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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