<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filename Completion and History in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215189#M10604</link>
    <description>With 'set -o vi' I was able to do command line history editing.&lt;BR /&gt;&lt;BR /&gt;However I am still unable to do filename completion by hitting the ESC key twice.&lt;BR /&gt;&lt;BR /&gt;How can I get that done?&lt;BR /&gt;&lt;BR /&gt;-Suren</description>
    <pubDate>Thu, 11 Mar 2004 09:49:08 GMT</pubDate>
    <dc:creator>Suren Selva_1</dc:creator>
    <dc:date>2004-03-11T09:49:08Z</dc:date>
    <item>
      <title>Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215186#M10601</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am using RedHat Enterprise Linux Version 2.1. Can someone answer the following questions?&lt;BR /&gt;1. Which shell is recommended for Sys Admin tasks? What is the Posix or Korn shell equivalents in Linux?&lt;BR /&gt;2. In the recommended shell, how can I setup filename completion and command line editing?&lt;BR /&gt;&lt;BR /&gt;Thanks to all replies,&lt;BR /&gt;S. Selva</description>
      <pubDate>Wed, 10 Mar 2004 16:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215186#M10601</guid>
      <dc:creator>Suren Selva_1</dc:creator>
      <dc:date>2004-03-10T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215187#M10602</link>
      <description>I think the overwhelming answer to this is: (drum roll please)...&lt;BR /&gt;bash. &lt;BR /&gt;/bin/bash (usually) is a bourne shell replacement with many many added features like filename completion (this is the default). &lt;BR /&gt;bash supports vi-style editing ala ksh as well (bash -o vi)</description>
      <pubDate>Wed, 10 Mar 2004 16:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215187#M10602</guid>
      <dc:creator>Paul Cross_1</dc:creator>
      <dc:date>2004-03-10T16:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215188#M10603</link>
      <description>It depends on what you're used to, and what you'd like to be able to do.&lt;BR /&gt;&lt;BR /&gt;I'd agree with Paul though, as 'bash' (the standard on most (if not all) Linux systems) is probably your best bet.&lt;BR /&gt;&lt;BR /&gt;It comes started with file completion, and also a command history (usually stored in ~/.bash_history ($HISTFILE)) of configurable length ($HISTFILESIZE and $HISTSIZE).&lt;BR /&gt;&lt;BR /&gt;The history navigation and inline editing are variable, and can be changed to use your favourite editor styled commands (set -o vi, set -o emacs), with or without arrow-key support.&lt;BR /&gt;&lt;BR /&gt;As for ksh equivlants, you've got 'pdksh', as well as the standard posix 'ksh' source available to download and compile.  Most linux distributions have a 'pdksh' package available, but due to the licencing, you'll need to get the posix ksh source yourslef.</description>
      <pubDate>Wed, 10 Mar 2004 18:18:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215188#M10603</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-03-10T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215189#M10604</link>
      <description>With 'set -o vi' I was able to do command line history editing.&lt;BR /&gt;&lt;BR /&gt;However I am still unable to do filename completion by hitting the ESC key twice.&lt;BR /&gt;&lt;BR /&gt;How can I get that done?&lt;BR /&gt;&lt;BR /&gt;-Suren</description>
      <pubDate>Thu, 11 Mar 2004 09:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215189#M10604</guid>
      <dc:creator>Suren Selva_1</dc:creator>
      <dc:date>2004-03-11T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215190#M10605</link>
      <description>Use the tab key ala tcsh...&lt;BR /&gt;or esc-k, esc-m, as in vi.</description>
      <pubDate>Thu, 11 Mar 2004 10:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215190#M10605</guid>
      <dc:creator>Paul Cross_1</dc:creator>
      <dc:date>2004-03-11T10:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215191#M10606</link>
      <description>This is for moving up and down the command line is it not? Moving up and down works for me with set -o vi.&lt;BR /&gt;&lt;BR /&gt;How can filename completion be done?&lt;BR /&gt;&lt;BR /&gt;-Suren</description>
      <pubDate>Thu, 11 Mar 2004 10:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215191#M10606</guid>
      <dc:creator>Suren Selva_1</dc:creator>
      <dc:date>2004-03-11T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215192#M10607</link>
      <description>I used to use ksh and SAM on our old HP-UX servers, but since we switched over to RH Linux, I found bash to be my new favorite shell.  And even better than SAM, I love power, simplicity and ability to delegate specific functions using the web-based admin tool Webmin (&lt;A href="http://www.webmin.com)" target="_blank"&gt;www.webmin.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As Paul indicated, under bash, just enter the leading part of a file name path and hit the TAB key... just as you would do under ksh with the ESC key.&lt;BR /&gt;&lt;BR /&gt;-Jared</description>
      <pubDate>Thu, 11 Mar 2004 12:15:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215192#M10607</guid>
      <dc:creator>Jared Middleton</dc:creator>
      <dc:date>2004-03-11T12:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215193#M10608</link>
      <description>Suren, you need to press TAB twice if there is more than one file that could satisfy the completion. &lt;BR /&gt;&lt;BR /&gt;For example, type "whic" and then the TAB key.   It will immediately be completed to "which".  However, if you type "wh" you have to press the TAB key twice to get a full list of all the files that could match.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2004 13:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215193#M10608</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-11T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215194#M10609</link>
      <description>Thanks to you all. I got it.&lt;BR /&gt;&lt;BR /&gt;-Suren</description>
      <pubDate>Thu, 11 Mar 2004 13:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215194#M10609</guid>
      <dc:creator>Suren Selva_1</dc:creator>
      <dc:date>2004-03-11T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215195#M10610</link>
      <description>I also noticed recently that Red Hat Enterprise Server AS 3.0 Release 1 does take the HP-UX escape escape filename completion.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 11 Mar 2004 16:40:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215195#M10610</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-11T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215196#M10611</link>
      <description>Another option...&lt;BR /&gt;&lt;BR /&gt;If you want completion by pressing escape twice, you can install pdksh.  Then use "set -o vi" to enable vi like command line editing and "set -o vi-esccomplete" to enable the double escape completion.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Tony</description>
      <pubDate>Thu, 11 Mar 2004 17:48:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215196#M10611</guid>
      <dc:creator>Tony Contratto</dc:creator>
      <dc:date>2004-03-11T17:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filename Completion and History</title>
      <link>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215197#M10612</link>
      <description>usually ESC+ESC is the equivalent to TAB in a bash shell.&lt;BR /&gt;&lt;BR /&gt;To do partial-name-listings however, it seems you have to press escape 5 times instead of four..  but that's in 'set -o emacs'.&lt;BR /&gt;&lt;BR /&gt;As you're in 'set -o vi', you should be using the ksh/vi key equivalents, ESC+\ (for completion) and ESC+* (for all matches).</description>
      <pubDate>Thu, 11 Mar 2004 18:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/filename-completion-and-history/m-p/3215197#M10612</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-03-11T18:28:38Z</dc:date>
    </item>
  </channel>
</rss>

