Solaris bash


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris bash
# 1  
Old 02-04-2016
Solaris bash

Hi-

I have Solaris 11.3 OS.
When I log in and open a terminal I get the following:

Code:
user@localhost

root@localhost

but after I create a user manually..I just get

Code:
bash$

How do I add this user profile to work with my host name ?

Thanks
# 2  
Old 02-05-2016
Look at the bash man page on your system and search for ways to set the shell variable PS1. For a shortcut, run the command:
Code:
set | grep PS1

on both systems and compare the output with what you find on the bash man page.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Need help to upgrade GNU bash in Solaris 10

Hi All, I want upgrade GNU bash in solaris 10. present bash is -bash-3.00$ and I downloaded new bash that is bash 4.4 (correct me if that is wrong). and my server is local zone, hosted on global zone. please help how can i proceed what is the process. I heard that need install first then it... (2 Replies)
Discussion started by: Harish4032
2 Replies

2. Shell Programming and Scripting

Bash variable and cp commands (Solaris 10)

Hi All, using a product to deploy this script to Solaris 10 servers.....package is downloaded to /tmp and then run to install the files.....Any ideas why script below would fail with the following output? Output: ./installer.sh PCN0087 making directory /data/PCN/pcn087 cp:... (2 Replies)
Discussion started by: purct
2 Replies

3. Solaris

Solaris bash vulnerability update

The patch blog has: https://blogs.oracle.com/patch/entry/solaris_idrs_available_on_mos information on dealing with bash 'shellshock' vulnerability. (3 Replies)
Discussion started by: jim mcnamara
3 Replies

4. Shell Programming and Scripting

Not able to create alias in bash Sun solaris

Hello Friends, I am facing problem in creating aliases. I am working in SunOS 5.10. When I login in system i have been given ksh shell. What i am doing is that ? I am changing shell to bash then I am creating 2 alias in command prompt like: alias deploy_dir=' cd... (4 Replies)
Discussion started by: krsnadasa
4 Replies

5. Shell Programming and Scripting

Solaris bash syntax different from Linux?

I have a script that's meant to check the disk usage on a particular volume and delete the oldest logfile if it's over a certain percentage. It runs fine on a Linux machine, but on a Solaris one, I get this error: diskspace_check.sh: syntax error at line 3: `diskspace=$' unexpected I assume... (2 Replies)
Discussion started by: cara_k
2 Replies

6. Shell Programming and Scripting

linux bash script to sun solaris

Hi guys, I seek a solution for this action for Sun solaris. find /sapmnt/${up}/global -prune -printf "%m %M %u %g %p\n" > $DAT1 The Application/Utilities in Sun Solaris are to old and cant understand "-printf". An update for Application/Utilities is exist, but not possible to implement... (6 Replies)
Discussion started by: ixibits
6 Replies

7. Shell Programming and Scripting

using Sed in Solaris bash

I am trying to execute a script with sed that works well in ksh(Linux) however in bash(solaris 8) though it does not give any errors the output file becomes 0 byte. header of the script: ksh:2$ head news.ksh #!/bin/ksh... (2 Replies)
Discussion started by: acharania2011
2 Replies

8. UNIX for Advanced & Expert Users

uuencode different in ksh and bash on solaris 8

We're trying to port code from bash to ksh and we run in the following error: export IFS="" tempzip=`unzip -p file.zip file | uuencode -` echo $tempzip | uudecode - The system is a solaris 8 server. The end result is an error in ksh: Invalid character (0x...) In bash it works. ... (2 Replies)
Discussion started by: rein
2 Replies

9. Shell Programming and Scripting

PATH on solaris 8 (bash)

Im trying to setup my profile to export the PATH at login i had this in my .bashrc export PATH=/usr/local/bin:/usr/bin/ however when i login and type echo $PATH i only get bash-2.05$ echo $PATH /usr/bin: any ideas on what im doing wrong? ive used linux for years but this is my... (1 Reply)
Discussion started by: recklessop
1 Replies

10. Solaris

Solaris 8 installed but bash is not working

Hi All, I've installed Solaris 8 and notice that bash is not working. I know we have other Sol8 boxes and bash is working on these boxes. I believe Solaris 8 includes bash in full distribution, so does this mean the files on the CD are corrupted? Sol8 was burned on the CD1 and 2 so this is a... (2 Replies)
Discussion started by: bluridge
2 Replies
Login or Register to Ask a Question