366 lines
4.8 KiB
HTML
366 lines
4.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
<HTML
|
||
><HEAD
|
||
><TITLE
|
||
>Other Key combinations</TITLE
|
||
><META
|
||
NAME="GENERATOR"
|
||
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
||
REL="HOME"
|
||
TITLE="GNU/Linux Command-Line Tools Summary"
|
||
HREF="index.html"><LINK
|
||
REL="UP"
|
||
TITLE="Shell Tips"
|
||
HREF="shell-tips.html"><LINK
|
||
REL="PREVIOUS"
|
||
TITLE="The command-line history"
|
||
HREF="the-command-line-history.html"><LINK
|
||
REL="NEXT"
|
||
TITLE="Virtual Terminals and screen"
|
||
HREF="virtual-terminals.html"></HEAD
|
||
><BODY
|
||
CLASS="SECT1"
|
||
BGCOLOR="#FFFFFF"
|
||
TEXT="#000000"
|
||
LINK="#0000FF"
|
||
VLINK="#840084"
|
||
ALINK="#0000FF"
|
||
><DIV
|
||
CLASS="NAVHEADER"
|
||
><TABLE
|
||
SUMMARY="Header navigation table"
|
||
WIDTH="100%"
|
||
BORDER="0"
|
||
CELLPADDING="0"
|
||
CELLSPACING="0"
|
||
><TR
|
||
><TH
|
||
COLSPAN="3"
|
||
ALIGN="center"
|
||
>GNU/Linux Command-Line Tools Summary</TH
|
||
></TR
|
||
><TR
|
||
><TD
|
||
WIDTH="10%"
|
||
ALIGN="left"
|
||
VALIGN="bottom"
|
||
><A
|
||
HREF="the-command-line-history.html"
|
||
ACCESSKEY="P"
|
||
>Prev</A
|
||
></TD
|
||
><TD
|
||
WIDTH="80%"
|
||
ALIGN="center"
|
||
VALIGN="bottom"
|
||
>Chapter 4. Shell Tips</TD
|
||
><TD
|
||
WIDTH="10%"
|
||
ALIGN="right"
|
||
VALIGN="bottom"
|
||
><A
|
||
HREF="virtual-terminals.html"
|
||
ACCESSKEY="N"
|
||
>Next</A
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
><HR
|
||
ALIGN="LEFT"
|
||
WIDTH="100%"></DIV
|
||
><DIV
|
||
CLASS="SECT1"
|
||
><H1
|
||
CLASS="SECT1"
|
||
><A
|
||
NAME="OTHER-KEY-COMBINATIONS"
|
||
></A
|
||
>4.3. Other Key combinations</H1
|
||
><P
|
||
></P
|
||
><P
|
||
>GNU/Linux shells have many shortcut keys which you can use to speed up your work, below is a rough list of some (also see
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>R</B
|
||
>
|
||
|
||
in the history section of the commands, over here, <A
|
||
HREF="the-command-line-history.html"
|
||
>Section 4.2</A
|
||
>).</P
|
||
><P
|
||
></P
|
||
><DIV
|
||
CLASS="VARIABLELIST"
|
||
><DL
|
||
><DT
|
||
><B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>D</B
|
||
> </DT
|
||
><DD
|
||
><P
|
||
> the “end-of-file” (EOF) key combination can be used to quickly log out of any terminal.
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>D</B
|
||
>
|
||
|
||
is also used in programs such as <EM
|
||
>“at”</EM
|
||
> to signal that you have finished typing your commands (the <SPAN
|
||
CLASS="ACRONYM"
|
||
>EOF</SPAN
|
||
> command).</P
|
||
></DD
|
||
><DT
|
||
><B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>Z</B
|
||
> </DT
|
||
><DD
|
||
><P
|
||
>key combination is used to stop a process. It can be used to put something in the background temporarily.</P
|
||
><P
|
||
>For example, if you were editing a file with <EM
|
||
>vim</EM
|
||
> or <EM
|
||
>emacs</EM
|
||
> just press
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>Z</B
|
||
>
|
||
|
||
to regain control of the terminal do what you want and then type <EM
|
||
>fg</EM
|
||
> <EM
|
||
> </EM
|
||
>to bring it back. </P
|
||
><P
|
||
>For further information please see <A
|
||
HREF="controlling-processes.html"
|
||
>Section 9.3</A
|
||
>.</P
|
||
><DIV
|
||
CLASS="TIP"
|
||
><P
|
||
></P
|
||
><TABLE
|
||
CLASS="TIP"
|
||
WIDTH="90%"
|
||
BORDER="0"
|
||
><TR
|
||
><TD
|
||
WIDTH="25"
|
||
ALIGN="CENTER"
|
||
VALIGN="TOP"
|
||
><IMG
|
||
SRC="../images/tip.gif"
|
||
HSPACE="5"
|
||
ALT="Tip"></TD
|
||
><TH
|
||
ALIGN="LEFT"
|
||
VALIGN="CENTER"
|
||
><B
|
||
>If <EM
|
||
>fg</EM
|
||
> doesn't work</B
|
||
></TH
|
||
></TR
|
||
><TR
|
||
><TD
|
||
> </TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
VALIGN="TOP"
|
||
><P
|
||
>If <EM
|
||
>fg</EM
|
||
> doesn't work you may need to type <EM
|
||
>jobs</EM
|
||
> and then <EM
|
||
>fg job_name or fg job_number</EM
|
||
></P
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></DIV
|
||
></DD
|
||
><DT
|
||
><B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>A</B
|
||
>
|
||
|
||
<EFBFBD>and<EFBFBD>
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>E</B
|
||
> </DT
|
||
><DD
|
||
><P
|
||
>These key combinations are used for going to the start and end of the line on the command line. Use
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>A</B
|
||
>
|
||
|
||
to jump to the start of the line, and
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>E</B
|
||
>
|
||
|
||
to jump to the end of the line.</P
|
||
></DD
|
||
><DT
|
||
><B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>K</B
|
||
> </DT
|
||
><DD
|
||
><P
|
||
>This key combination can be used to cut or delete what is currently in front of the cursor.</P
|
||
></DD
|
||
><DT
|
||
><B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>Y</B
|
||
> </DT
|
||
><DD
|
||
><P
|
||
>This key combination can be used to paste the last thing you deleted (using
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>K</B
|
||
>
|
||
|
||
or
|
||
<B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>W</B
|
||
>
|
||
|
||
). </P
|
||
></DD
|
||
><DT
|
||
><B
|
||
CLASS="KEYCAP"
|
||
>CTRL</B
|
||
>-<B
|
||
CLASS="KEYCAP"
|
||
>W</B
|
||
> </DT
|
||
><DD
|
||
><P
|
||
>This key combination can be used to cut or delete the entire line that has being typed.</P
|
||
></DD
|
||
></DL
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="NAVFOOTER"
|
||
><HR
|
||
ALIGN="LEFT"
|
||
WIDTH="100%"><TABLE
|
||
SUMMARY="Footer navigation table"
|
||
WIDTH="100%"
|
||
BORDER="0"
|
||
CELLPADDING="0"
|
||
CELLSPACING="0"
|
||
><TR
|
||
><TD
|
||
WIDTH="33%"
|
||
ALIGN="left"
|
||
VALIGN="top"
|
||
><A
|
||
HREF="the-command-line-history.html"
|
||
ACCESSKEY="P"
|
||
>Prev</A
|
||
></TD
|
||
><TD
|
||
WIDTH="34%"
|
||
ALIGN="center"
|
||
VALIGN="top"
|
||
><A
|
||
HREF="index.html"
|
||
ACCESSKEY="H"
|
||
>Home</A
|
||
></TD
|
||
><TD
|
||
WIDTH="33%"
|
||
ALIGN="right"
|
||
VALIGN="top"
|
||
><A
|
||
HREF="virtual-terminals.html"
|
||
ACCESSKEY="N"
|
||
>Next</A
|
||
></TD
|
||
></TR
|
||
><TR
|
||
><TD
|
||
WIDTH="33%"
|
||
ALIGN="left"
|
||
VALIGN="top"
|
||
>The command-line history</TD
|
||
><TD
|
||
WIDTH="34%"
|
||
ALIGN="center"
|
||
VALIGN="top"
|
||
><A
|
||
HREF="shell-tips.html"
|
||
ACCESSKEY="U"
|
||
>Up</A
|
||
></TD
|
||
><TD
|
||
WIDTH="33%"
|
||
ALIGN="right"
|
||
VALIGN="top"
|
||
>Virtual Terminals and screen</TD
|
||
></TR
|
||
></TABLE
|
||
></DIV
|
||
></BODY
|
||
></HTML
|
||
> |