Search code examples
command-promptsolaris-10keyboard-shortcuts

solaris 10 keys how to make them work


I am new on Solaris 10. I am using putty to connect to it. I am more used to linux. I am trying to do somethings in Solaris like backspace, upkey to previous commands executed. some posts suggest that i use Bash. well I dont know how to switch from ksh to bash.

another issue is that i am used to have the whole path on my cmd prompt but here i only have $

How can I change this for me. I want to use the up arrow key to view my old commands, I want TAB to give me th directories or files in the working directory and I want to see the whole path of the PWD i am in.

Is there a way

Thanks for the help

Syed...


Solution

  • This should be enough:

    PS1='\w $ ' exec bash --noprofile --rcfile /dev/null
    

    Here is what this command is doing:

    • PS1='\w $ ' : set the prompt to show your current directory
    • exec bash : substitute the currently running shell by bash
    • --noprofile --rcfile /dev/null : suppress predefined customizations