Linux Card
Linux Card
8 Miscellaneous filters
7.2.5 Jobs
Most of the following commands may be used as fil-
jobs lists all background jobs ters i.e. they can take their input from the standard
command & runs command in background input (and thus be part of a pipe (§7.2.4)). See the
CTRL + Z stop the foreground job manual pages for details.
bg places the stopped job grep pattern file(s) — types out the lines containing
in the background pattern in the file(s). (egrep is a faster, similar
% [n] brings the current [nth] command allowing extended regular expression
background job to foreground matching).
Also (§7.1).
grep -v pattern file(s) — types out the lines not
containing pattern in the file(s)
7.3 History mechanism head [n] file(s) — types out the top n lines of file(s)
tail [n] file(s) — types out the last n lines of file(s)
Special characters:
diff file1 file2 — lists the differences between the
!! — entire last line two files. One of the filenames may be replaced
!n — command line n in history by a hyphen to specify standard input.
sort [-n] [-r] file — sort file in [numeric] as-
!$ — final word on last line, e.g. ls !$
cending [descending] order.
!* — all of last line except for first word wc file(s) — counts characters, words and lines in
!?pat? — most recent line containing pat text files
machine. It has a taskbar at the top of the screen mcopy file1 a:file1 Copy file1 onto floppy
and the kpanel at the bottom, providing access to disk
applications via menus. mcopy a:file1 file1 Copy file1 from floppy
kdvi A previewer for the DVI (device independent) disk
files produced by LATEX
kfind A utility for searching for lost files
kfloppy A floppy disk formatter 14 Command summary
kghostview A previewer for PostScript and PDF
Command Description Section
files
| pipeline (§7.2.4)
kmail An application for sending and receiving <, >, >> redirecting I/O (§7.2.3)
email !, !! recall commands (§7.3)
krn The application for reading newsgroups such as % bring job to foreground (§7.2.5)
eduni.dcs.cs1 acroread previewer for PDF files
kvt A terminal window for issuing Linux commands alias abbreviate command (§7.1)
appletviewer run Java applet (§11)
The ALT key can be used in combination with the bg put job in background (§7.1)
left mouse button to move windows or with the mid- cat list file (§4.1.2)
dle button for bringing to front or sending to back. cd change directory (§4.2)
It can be used with the right mouse button to resize chmod change file permission (§4.3)
windows. cp file copy (§4.1.2)
diff list file differences (§8)
du disk usage (§4.4)
11 Java export update environment var (§7.1)
fg bring job to foreground (§7.1)
Java programs are compiled and run with a collec-
gcc GNU C compiler
tion of commands called the Java Development Kit
grep string searching (§8)
(the JDK).
gunzip uncompress a file (§12)
javac file.java Compile the file.java to produce gzip compress file (§12)
file.class java the Java interpreter (§11)
java file Run the class file file.class. (Note: do not javac the Java compiler (§11)
supply the .class extension.) jobs list jobs (§7.2.5)
kdehelp KDE online help (§1)
appletviewer file.html View the HTML page in kill, xkill kill processes (§6)
file.html which contains an embedded Java ap- logout finish work session (§2)
plet lpq inspect print queue (§5)
lpr print file (§5)
lprm remove print job (§5)
12 Compression ls list file names (§4.1.2)
man, xman online help (§1)
The GNU compression utilities reduce the disk space mcopy MSDOS file copying (§13)
used by a file, allowing the full contents to be recov- mdir list MSDOS directory (§13)
ered later. mkdir make directory (§4.2)
gzip file Replaces file with file.gz, a compressed more list file pagewise (§4.1.2)
version of the file mv rename (move) file (§4.1.2)
gunzip file.gz Uncompresses the file to recover the ps list processes (§6)
original contents quota disk usage (§4.4)
rmdir remove directory (§4.2)
zgrep pattern file(s) Search for a pattern in a list of rm remove (delete) file (§4.1.2)
compressed files set update variable (§7.1)
source execute shell commands (§7.1)
w, who who is logged in (§6)
13 Using floppy disks yppasswd change password (§2)