The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
run xclock from local solaris to remote solaris panchpan SUN Solaris 9 06-30-2008 07:05 AM
jumpstart Solaris 10 on Solaris 9 server salty SUN Solaris 5 01-22-2008 11:57 AM
Disk Mirror in Solaris 9 via Solaris Volume Manager deal732 SUN Solaris 3 05-02-2007 08:43 AM
Running Solaris Sparc Apps on X86 Solaris stocksj UNIX for Dummies Questions & Answers 1 12-12-2006 01:13 PM
trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6) falklandtim SUN Solaris 6 03-01-2005 04:45 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-29-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Question ~ in solaris

Hi all,

In Linux, it is possible to use ~ anytime user wants to go to home directory.
I tested in Solaris and it does not work.

What is wrong?

Why it does not work?

Thanks!!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-29-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,502
It does work, you just need to use a shell which supports that usage. It has nothing to do with the OS, only what shell you are using.
Reply With Quote
  #3 (permalink)  
Old 06-29-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Wink

I am using the shell provided with installation.
How can I change it?
Reply With Quote
  #4 (permalink)  
Old 06-29-2008
Registered User
 

Join Date: May 2008
Posts: 17
That's probably bourne shell (sh). You can try bourne again shell (bash), korn shell (ksh) or something else. Just type the shell name to switch to that shell.

Ex) bash (for bourne again shell)
ksh (for korn shell)

If you want to change the login shell, type below as root:

# passwd -e <absolute_path_to_shell> <user_name>

You probably don't want to change root's default login shell though.
Reply With Quote
  #5 (permalink)  
Old 06-29-2008
Registered User
 

Join Date: Jan 2008
Posts: 5
You can try with this:
cd --
Reply With Quote
  #6 (permalink)  
Old 06-29-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Talking

Quote:
Originally Posted by ubyt3m3 View Post
That's probably bourne shell (sh). You can try bourne again shell (bash), korn shell (ksh) or something else. Just type the shell name to switch to that shell.

Ex) bash (for bourne again shell)
ksh (for korn shell)

If you want to change the login shell, type below as root:

# passwd -e <absolute_path_to_shell> <user_name>

You probably don't want to change root's default login shell though.
Worked fine!!
Thanks!!
Reply With Quote
  #7 (permalink)  
Old 06-29-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,502
Quote:
Originally Posted by ubyt3m3 View Post
You probably don't want to change root's default login shell though.
It doesn't really matter in Solaris 10 or later becasue there is no longer a staically linked shell, you just need to be sure that the shell is valid.
Reply With Quote
Google UNIX.COM
Reply

Tags
linux, solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0