61 lines
1.9 KiB
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 <TAB> 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 <TAB> again.
|
||
|
<P>Other useful key presses are <ESC-BACKSPACE> that deletes a word to
|
||
|
the left, while <ESC-D> deletes a word to the right; <ESC-F>
|
||
|
moves the cursor one word to the right, <ESC-B> to the left;
|
||
|
<CTRL-A> moves to the beginning of the line, <CTRL-E> to the
|
||
|
end. The <ALT> key is equivalent to <ESC>.
|
||
|
<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>
|