- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Command auto-Completion
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
06-06-2006 07:33 PM
06-06-2006 07:33 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2006 07:36 PM
06-06-2006 07:36 PM
Re: Command auto-Completion
Do NOT configure bash as default for root in /etc/passwd!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2006 08:01 PM
06-06-2006 08:01 PM
Re: Command auto-Completion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 04:07 PM
06-28-2006 04:07 PM
Re: Command auto-Completion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 06:04 PM
06-28-2006 06:04 PM
Re: Command auto-Completion
echo $SHELL
Tab completion is the default for any Linux distro I know. What are you using?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 06:09 PM
06-28-2006 06:09 PM
Re: Command auto-Completion
I am using HP-UX11.11
and the shell(user) is /usr/bin/sh
and the shell(root) is /sbin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 01:47 AM
06-29-2006 01:47 AM
Re: Command auto-Completion
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.00.16/
Change your shell to be bash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 11:01 PM
06-29-2006 11:01 PM
Re: Command auto-Completion
You can also try ksh, if you dont wanna use bash
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2006 07:43 AM
06-30-2006 07:43 AM
Re: Command auto-Completion
@ HP moderator:
Your are moving the threads too quickly!
quote from this thread:
"I am using HP-UX11.11"
Why this thread is moved to the linux forum?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2006 08:15 AM
06-30-2006 08:15 AM
SolutionIf you are running HP-UX, you can do file-name (or path-name) completion by typing ESCape, ESCape after partially entering a filename.
If you are running HP-UX, *never* change 'root's default shell from '/sbin/sh'. To do so will lead to an unbootable system. The standard POSIX shell resides in '/sbin/sh' with statically linked libraries. The same shell with dynamically linked libraries to reduce the memory footprint lives in '/usr/bin'. Since, '/usr' isn't mounted during the initial startup sequence, the default shell for root must be '/sbin/sh'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 03:53 PM
07-02-2006 03:53 PM
Re: Command auto-Completion
But ESCape doesnt have any effect in my case.
How do i check my command completion
sequence is set to what????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2006 10:30 AM
07-09-2006 10:30 AM
Re: Command auto-Completion
Given HP-UX, hitting the ESCape key *twice* after typing enough characters to make the filename unique, should cause auto-completion.
Given two files in the current working directory; each beginning with "p" :
# ls -l p
...will *not* auto-complete, but:
# ls -l po
...when the files "peek" and "poke" exist, will offer "ls -l poke".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2006 04:37 PM
07-09-2006 04:37 PM
Re: Command auto-Completion
Could nt get any command auto completion but these characters ^[ only
Any suggestions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2006 05:56 PM
07-09-2006 05:56 PM
Re: Command auto-Completion
ls -al p
You'd get a BEL after the 2nd
Now, if this doesn't work, check your 'stty' bindings to ensure that '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2006 06:18 PM
07-09-2006 06:18 PM
Re: Command auto-Completion
Following is the stty -a log.
# stty -a
speed 9600 baud; line = 0;
rows = 40; columns = 140
min = 0; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 = ^@; swtch = ^@
stop = ^S; start = ^Q; susp = ^Z; dsusp = ^@
werase = ^@; lnext = ^@
parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon iexten -xcase echo echoe echok -echonl -noflsh
echoctl -echoprt echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 10:14 PM
07-10-2006 10:14 PM
Re: Command auto-Completion
The shell has its own set of key bindings, unrelated to "stty -a" settings. Each shell has its own ways for setting up these bindings: for example, bash's key bindings can be listed with "bind -p".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2006 12:02 AM
07-21-2006 12:02 AM