- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- KSH Command 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
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
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-05-2003 01:39 AM
тАО06-05-2003 01:39 AM
I always use ksh on my hp-ux box and I love the command completion future of it ( Pressing - Esc Esc ) ... Now that we received a new Solaris box in our office but I found that "Esc Esc" doesn't work with Solaris .. Am I missing something?? Pl. let me know ...
Thanks
Karthik
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 01:41 AM
тАО06-05-2003 01:41 AM
Re: KSH Command completion
Have you tried tab ?
RGds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 01:45 AM
тАО06-05-2003 01:45 AM
Re: KSH Command completion
For instance when I do a " ls A 'Esc =' " , it lists the files in the current directory that starts with Character "A" ... but when I press Esc Esc it doesnt complete the line ...
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 01:50 AM
тАО06-05-2003 01:50 AM
Re: KSH Command completion
I got the answer from the following site,
http://www.sunhelp.org/article-ksh.php
Pressing " Esc \ " completes the line ..
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 03:18 AM
тАО06-05-2003 03:18 AM
Re: KSH Command completion
if so try 'escape k'
as for command completion ... like bash for linux (?) I didn't know that ksh had this feature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 04:24 AM
тАО06-05-2003 04:24 AM
Solutiontry doing
$set -o vi
or
$set -o emacs
for command completion. In HPUX , set -o vi itself has the command completion. I am not sure with solaris. But set -o emacs will do a command completion with Esc Esc.
HTH
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 04:39 AM
тАО06-05-2003 04:39 AM
Re: KSH Command completion
See this post for more:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x892a06350fe2d61190050090279cd0f9,00.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 09:10 PM
тАО06-05-2003 09:10 PM
Re: KSH Command completion
When I do set -o emacs in solaris Esc Esc works .... !!! But, sadly when I press "Esc v" it doesnt openup the editor .. but whereas when I do " set -o vi ' .. it works ..
Anyway I dont want to disturb HP forums with lots of Sun Stuff ....
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2003 10:38 PM
тАО06-05-2003 10:38 PM
Re: KSH Command completion
ls -l *week*
Pressing
ls -l myweek2 myweek2.....
BTW. Just to be pedantic there is no such thing as the Korn Shell anymore, it is now the Posix Shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2003 01:08 AM
тАО06-06-2003 01:08 AM
Re: KSH Command completion
Esc Esc is a feature of emacs. So when its set in the shell it works in emacs way. For previous commands you can try Ctrl+P and Ctrl+N.
If you want vi command line options, then the corresponding is Esc \.
You can also get a possible command completion list by using Esc = on the last character.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 12:50 PM
тАО06-09-2003 12:50 PM
Re: KSH Command completion
ksh -o vi
ksh -o emacs
ksh -o to see all options
I always use -o vi and
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 06:19 PM
тАО06-09-2003 06:19 PM
Re: KSH Command completion
export EDITOR=vi
works as well.