- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- possibility in /sbin/sh shell
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 11:23 AM
11-11-2009 11:23 AM
possibility in /sbin/sh shell
In bash shell, when we use TAB key, it "suggest" possible commands. Is it possible to set it in POSIX shell or ksh ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 11:29 AM
11-11-2009 11:29 AM
Re: possibility in /sbin/sh shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 11:55 AM
11-11-2009 11:55 AM
Re: possibility in /sbin/sh shell
No, the Posix ('/sbin/sh' or '/usr/sbin/sh') shell use ESC+ESC (Escape trice) to do filename completion.
By the way, do _NOT_ alter root's default shell as defined in '/etc/passwd'. To change it to anything other than '/sbin/sh' may lead to an un-startable server. You can, however, switch to a Bash shell manually if you like and define such by default for non-root users if that is a preference.
You can fetch a Bash binary from the Porting Center. Be sure to install all the run-time dependencies if you do:
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.0.033/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 10:41 PM
11-11-2009 10:41 PM
Re: possibility in /sbin/sh shell
look up the 'bash completion' project for more info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 11:47 PM
11-11-2009 11:47 PM
Re: possibility in /sbin/sh shell
LOL - Jame's response is very good advice and one I did not follow many years ago, when at that time I created an unbootable box by doing just what James has stated, only with ksh.
I had to go into single user to fix the problem.
There are many such little fixes that an SA will perform only once and then never do again. Another is putting a file.old in rc.config.d or one of the rc dir.s, or just a special char. file name.
This, you will also only do once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 10:31 AM
11-12-2009 10:31 AM
Re: possibility in /sbin/sh shell
To recall the commands that you have issued in HP-UX, change the shell to korn shell.
# ksh -o vi
Press ESC and K on the keyboard.
T+