~ in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris ~ in solaris
# 1  
Old 06-29-2008
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!!
# 2  
Old 06-29-2008
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.
# 3  
Old 06-29-2008
Hammer & Screwdriver

I am using the shell provided with installation.
How can I change it?
# 4  
Old 06-29-2008
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.
# 5  
Old 06-29-2008
You can try with this:
cd --
# 6  
Old 06-30-2008
Computer

Quote:
Originally Posted by ubyt3m3
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!!
# 7  
Old 06-30-2008
Quote:
Originally Posted by ubyt3m3
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Patching Procedure in Solaris 10 with sun cluster having Solaris zone

Hi Gurus I am not able to find the patching procedure for solaris 10 ( sol10 u11) to latest patchset with sun cluster having failover zones so that same I should follow. Take an instance, there are sol1 and sol2 nodes and having two failover zones like sozone1-rg and sozone2-rg and currently... (1 Reply)
Discussion started by: nick101
1 Replies

2. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

3. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

4. Solaris

application compiled on solaris 10 throwing error when executed on solaris 9

I have compiled my application on Solaris 10 with following description SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320 The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 But when installing the application on Solaris 9 SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies
Login or Register to Ask a Question