solaris 9 default shell


 
Thread Tools Search this Thread
Operating Systems Solaris solaris 9 default shell
# 1  
Old 09-24-2008
solaris 9 default shell

Hi All,

If I login to Solaris 9 by default. I can't find my history. If I run the bash shell by /etc/bash/bash then my history will go to my ~/.bash_history.

If I don't use bash where's my history of command go.

Thanks in advance. Smilie
# 2  
Old 09-24-2008
The default shell has no history and lacks plenty of other useful features. Switch to a POSIX compliant one like ksh or bash, eg.:
Code:
# passwd -e guest
Old shell: /bin/sh
New shell: /bin/ksh
passwd: password information changed for guest

# 3  
Old 09-26-2008
Which Shell you are using....???? You can get this by seeing the o/p of
# echo $SHELL

If you are using Bourne or any other shell except ksh or bash, as told by
jlliagre, then you can't use the facility of history.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris Shell Scripting

Hi, Want to know, is there any way to restrict a Solaris user to Single Login. Means a particular user can login once and if he or someone else tries to login with his ID then a message displayed "user already logged in" and denies his attempt. Regard, Jeet (1 Reply)
Discussion started by: CountJeet
1 Replies

2. Solaris

How can i get Solaris interface ip using shell script?

HI Community, my server has more than 15 zones and each one is having virtual interface of 10G adapter (qlge0) if the filter the output of ifconfig -a | grep inet, it's showing all interfaces including virtual. i have take first like from the output and assumed that as my main ip is... (3 Replies)
Discussion started by: bentech4u
3 Replies

3. Shell Programming and Scripting

Shell script not working on Solaris 10

Hi Iam running the below scripts on one file on solaris 10 but its giving error. code sh BNGREPORT1.sh z1 code in file BNGREPORT1.sh is given below. root@blr-svr-oclan-01 # more BNGREPORT1.sh #!/bin/sh #cd /surender FILE="bng_total_report_$(date +%Y%m%d_%H%M%S)" echo HOST_NAME "|"... (4 Replies)
Discussion started by: surender reddy
4 Replies

4. Solaris

Solaris Shell - Remote access

Hi all; I'm looking for free access to the Solaris operating system. I have no way to install at home (even on a virtual machine). I been developing BOINC project (OProject@Home: site: oproject.goldbach.pl). I would like to compile and test programs on Solaris. Can someone provide a... (9 Replies)
Discussion started by: Rysiu
9 Replies

5. UNIX for Dummies Questions & Answers

[ASK]execute shell with function in solaris

dear all i need your advice in shell with solaris i have testing script like this #!/usr/bin/bash function test(){ echo "testing only" } ## execute function ## test but if i running always got error like this test.sh: syntax error at line 1: `(' unexpected who can i running this... (7 Replies)
Discussion started by: zvtral
7 Replies

6. Shell Programming and Scripting

Solaris Korn Shell Scripting

I have made the following simple script: a=0 let a=$a+1 if "] then mailx -s "Up" abc@yahoo.com fi When I run the above script, I get the following error: # ./new.ksh ./new.ksh: ]: not found. Please tell me how to use if here? (6 Replies)
Discussion started by: kamaldeep1986
6 Replies

7. Shell Programming and Scripting

2 shell scripts in Sun Solaris

Hi, Can somebody pls help me? I need to write 2 shell scripts in Sun Solaris operating system which would do this: 1. go to the specified directory - I am using alias for it at the moment 2. start the particular sql script with the output log as same as the script but with timestamp e. g.... (4 Replies)
Discussion started by: balco
4 Replies

8. Solaris

Solaris 10 root shell change

Why does Solaris keep coming with bourne as the default root shell? I've spoken with numerous admins that tell me they change all the root shells to korn. I would like to change all Solaris 10 boxes here at my company to have a root korn shell. Can someone tell me why I shouldn't do this? ... (10 Replies)
Discussion started by: x96riley3
10 Replies

9. Solaris

nologin shell on Solaris?

I'm setting up a Solaris 10 box to run Lawson application, which needs users to have Unix acounts, but the users will not be using interactive shell. To make it more secure, I'd rather not give them a valid shell. I know there's a trick by putting /noshell in the /etc/passwd file, but the problem... (2 Replies)
Discussion started by: GKnight
2 Replies

10. Shell Programming and Scripting

Shell Script From Solaris To Os/390

Hi, Does Anybody Has Shell Script To Ftp The File From Soalris To Os/390? (2 Replies)
Discussion started by: cool79
2 Replies
Login or Register to Ask a Question