The default shell of hp ux is POSIX, which is not easy to use. Replace it with bash!
- Confirm hp ux version and architecture
Run uname-a, the version number (such as B .11.31) and the architecture (such as ia64) are displayed, and then search for bash at the address below.
Http://hpux.connect.org.uk/hppd/hpux/
Download the bash version with the same version and architecture as your own. Note that you also need to download the dependent components gettext, libiconv, and termcap, which are available in bash Runtime dependencies;
- Decompress the four gz files, obtain the four depot files, upload them to the server (such as the/tmp/bash directory), and install these components. It is best to follow the order below:
# Swinstall-s/tmp/bash/gettext-0.18.1.1-ia64-11.31.depot
# Swinstall-s/tmp/bash/libiconv-1.13.1-ia64-11.31.depot
# Swinstall-s/tmp/bash/termcap-1.3.1-ia64-11.31.depot
# Swinstall-s/tmp/bash/bash-4.1.007-ia64.11.31.depot
Note that the full path of the depot file must be entered after the swinstall-s command!
Swinstall may not be used by some children's shoes. A guide will be displayed after the command is knocked in. Press enter to enter the main window, press a space at the position of the package to be loaded, press m after the reverse display, click the Tab key to move the cursor to the menu and choose Action> Install> OK> Done.
- Change the default shell to bash. Modify the/etc/shells file as follows:
/Sbin/sh
/Usr/bin/sh
/Usr/bin/rsh
/Usr/bin/ksh
/Usr/bin/rksh
/Usr/bin/csh
/Usr/bin/keysh
/Usr/local/bin/bash
Then execute chsh root/usr/local/bin/bash, or replace root with the user you want to change bash. If the/etc/shells file is not modified, an invalid shell error is returned.