- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command Line Editing
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
07-12-2002 07:08 AM
07-12-2002 07:08 AM
Command Line Editing
Can anyone tell me what shell or a script that will allow a user to use the TAB key to auto complet the command line when referencing a file or directory?
For example, If I am looking in the /etc directory for editing a file called "test_file" I would like to type from the command line " vi te" and then hit the tab key to complete the rest of the line "est_file".
In Linux the bash shell allows the user to do this.
TIA,
Daniel N.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 07:10 AM
07-12-2002 07:10 AM
Re: Command Line Editing
Have you tried using the escape key twice?
This works for me in sh, ksh and csh (haven't tried the others)
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 07:11 AM
07-12-2002 07:11 AM
Re: Command Line Editing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 07:12 AM
07-12-2002 07:12 AM
Re: Command Line Editing
set teh shell to ksh or at teh porpmt give like kash -o vi and then you can use the escape charater to get the file matched to first indentified unique string.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 07:13 AM
07-12-2002 07:13 AM
Re: Command Line Editing
Adding to christoper point,
you can use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 06:46 PM
07-12-2002 06:46 PM
Re: Command Line Editing
To turn on the shell history/filename completion features, you must have the env variable $HISTFILE set to a history file. ksh and bash default to $HOME/.sh_history, but the POSIX shell requires HISTFILE to be explicitly set. Make sure HOSTFILE is set in /etc/profile or .profile:
export HISTFILE-$HOME/.sh_history
oops:
export HISTFILE=$HOME/.sh_history
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:10 PM
07-12-2002 08:10 PM
Re: Command Line Editing
export HISTFILE=$HOME/.sh_history
Just too bad that the keyboard has the key - right adjacent to =.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2002 07:34 AM
07-13-2002 07:34 AM
Re: Command Line Editing
Bill Hassell, sysadmin