old-www/HOWTO/DOS-Win-to-Linux-HOWTO-3.html

61 lines
1.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE> From DOS/Windows to Linux HOWTO : Meet bash</TITLE>
<LINK HREF="DOS-Win-to-Linux-HOWTO-4.html" REL=next>
<LINK HREF="DOS-Win-to-Linux-HOWTO-2.html" REL=previous>
<LINK HREF="DOS-Win-to-Linux-HOWTO.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="DOS-Win-to-Linux-HOWTO-4.html">Next</A>
<A HREF="DOS-Win-to-Linux-HOWTO-2.html">Previous</A>
<A HREF="DOS-Win-to-Linux-HOWTO.html#toc3">Contents</A>
<HR>
<H2><A NAME="s3">3. Meet bash</A></H2>
<P>
<P>Good news: with Linux you type much less at the prompt, because the
<CODE>bash</CODE> shell types for you whenever possible, and features cool line
editing capabilities. To begin with, the arrow-up key recalls previous
command lines; but there's more. Pressing &lt;TAB&gt; completes file and
directory names, so typing
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ ls /uTABloTABbTAB
</PRE>
</CODE></BLOCKQUOTE>
<P>is like typing
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ ls /usr/local/bin
</PRE>
</CODE></BLOCKQUOTE>
<P>If there were ambiguities, as typing
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ ls /uTABloTABiTAB
</PRE>
</CODE></BLOCKQUOTE>
<P><CODE>bash</CODE> stops because it doesn't know if you mean
/usr/local/info or /usr/local/include. Supply more
characters then press &lt;TAB&gt; again.
<P>Other useful key presses are &lt;ESC-BACKSPACE&gt; that deletes a word to
the left, while &lt;ESC-D&gt; deletes a word to the right; &lt;ESC-F&gt;
moves the cursor one word to the right, &lt;ESC-B&gt; to the left;
&lt;CTRL-A&gt; moves to the beginning of the line, &lt;CTRL-E&gt; to the
end. The &lt;ALT&gt; key is equivalent to &lt;ESC&gt;.
<P>Enough for now. Once you get used to these shortcuts, you'll find the DOS
prompt very annoying...
<P>
<P>
<HR>
<A HREF="DOS-Win-to-Linux-HOWTO-4.html">Next</A>
<A HREF="DOS-Win-to-Linux-HOWTO-2.html">Previous</A>
<A HREF="DOS-Win-to-Linux-HOWTO.html#toc3">Contents</A>
</BODY>
</HTML>