-
/boot/vmlinuz - the typical location and name of the Linux kernel. In the
Slackware distribution, the kernel is located at /vmlinuz.
-
/dev/fd0 - first floppy disk drive
-
/dev/fd0H1440 - driver for the first floppy drive in high density mode.
Generally, this is invoked when formatting a floppy drive for a particular
density. Slackware comes with drivers that allow for formatting a 3.5"
diskette with up to 1.7MB of space. Red Hat and Mandrake do not contain these
device driver files by default.
-
/dev/fd1 - second floppy disk drive
-
/dev/hda - first IDE hard drive
-
/dev/hdc - on many machines, the IDE cdrom drive. Most often, there is a
symbolic link called /dev/cdrom which is just a link to the true cdrom driver
file.
-
/dev/null - used when you want to send output into oblivion
-
/etc/aliases - file containing aliases used by sendmail and other MTAs
(mail transport agents). After updating this file, it is necessary to run the
newaliases utility for the changes to be passed to sendmail.
-
/etc/bashrc - system-wide default functions and aliases for the bash shell
-
/etc/conf.modules - aliases and options for configurable modules
-
/etc/crontab - shell script to run different commands periodically
(hourly, daily, weekly, monthly, etc.)
-
/etc/DIR_COLORS - used to store colors for different file types when using
ls command. The dircolors command uses this file when there is not a .dir_colors
file in the user's home directory. Used in conjunction with the eval command
(see below).
-
/etc/exports - specifies hosts to which file systems can be exported using
NFS. Man exports contains information on how to set up this file for remote
users.
-
/etc/fstab - contains information on partitions and filesystems used by
system to mount different partitions and devices on the directory tree
-
/etc/HOSTNAME - stores the name of the host computer
-
/etc/hosts - contains a list of host names and absolute IP addresses.
-
/etc/hosts.allow - hosts allowed (by the tcpd daemon) to access Internet
services
-
/etc/hosts.deny - hosts forbidden (by the tcpd daemon) to access Internet
services
-
/etc/group - similar to /etc/passwd but for groups
-
/etc/inetd.conf - configures the inetd daemon to tell it what TCP/IP
services to provide (which daemons to load at boot time). A good start to
securing a Linux box is to turn off these services unless they are necessary.
-
/etc/inittab - runs different programs and processes on startup. This is
typically the program which is responsible for, among other things, setting
the default runlevel, running the rc.sysinit script contained in /etc/rc.d,
setting up virtual login terminals, bringing down the system in an orderly
fashion in response to [Ctrl][Alt][Del], running the rc script in
/etc/rc.d, and running xdm for a graphical login prompt (only if the default
runlevel is set for a graphical login).
-
/etc/issue - pre-login message. This is often overwitten by the /etc/rc.d/rc.S
script (in Slackware) or by the /etc/rc.d/rc.local script (in Mandrake and Red
Hat, and perhaps other rpm-based distributions). The relevant lines should be
commented out (or changed) in these scripts if a custom pre-login message is
desired.
-
/etc/lilo.conf - configuration file for lilo boot loader
-
/etc/motd - message of the day file, printed immediately after login. This
is often overwritten by /etc/rc.d/rc.S (Slackware) or /etc/rc.d/rc.local
(Mandrake/Red Hat) on startup. See the remarks in connection with /etc/issue.
-
/etc/mtab - shows currently mounted devices and partitions and their
status
-
/etc/passwd - contains passwords and other information concerning users
who are registered to use the system. For obvious security reasons, this is
readable only by root. It can be modified by root directly, but it is
preferable to use a configuration utility such as passwd to make the changes.
A corrupt /etc/passwd file can easily render a Linux box unusable.
-
/etc/printcap - shows the setup of printers
-
/etc/profile - sets system-wide defaults for bash shell. It is this file
in Slackware that sets up the DIR_COLORS environment variable for the color ls
command. Also sets up other system-wide environment variables.
-
/etc/resolv.conf - contains a list of domain name servers used by the
local machine
-
/etc/securetty - contains a list of terminals on which root can login. For
security reasons, this should not include dialup terminals.
-
/etc/termcap - ASCII database defining the capabilities and
characteristics of different consoles, terminals, and printers
-
/etc/X11/XF86Config - X configuration file. The location in Slackware is
/etc/XF86Config.
-
/proc/cpuinfo - cpu information
-
/proc/filesystems - prints filesystems currently in use
-
/proc/interrupts - prints interrupts currently in use
-
/proc/ioports - contains a list of the i/o addresses used by various
devices connected to the computer
-
/proc/kcore - The command ls -l /proc/kcore will give the amount of RAM on
the computer. It's also possible to use the free command to get the same
information (and more).
-
/proc/version - prints Linux version and other info
-
/var/log/messages - used by syslog daemon to store kernel boot-time
messages
-
/var/log/lastlog - used by system to store information about last boot
-
/var/log/wtmp - contains binary data indicating login times and duration
for each user on system
-
/bin - essential UNIX commands such as ls, etc. Should contain all
binaries needed to boot the system or run it in single-user mode
-
/boot - files used during booting and possibly the kernel itself are
stored here
-
/dev - contains device files for various devices on system
-
/etc - files used by subsystems such as networking, NFS, and mail.
Includes tables of disks to mount, processes to run on startup, etc.
-
/etc/profile.d - contains scripts that are run by /etc/profile upon login.
-
/etc/rc.d - contains a number of shell scripts that are run on bootup at
different run levels. There is also typically an rc.inet1 script to set up
networking (in Slackwar), an rc.modules script to load modular device drivers,
and an rc.local script that can be edited to run commands desired by the
administrator, along the lines of autoexec.bat in DOS.
-
/etc/rc.d/init.d - contains most of the initialization scripts themselves
on an rpm-based system.
-
/etc/rc.d/rc*.d - where ``*'' is a number corresponding to the default run
level. Contains files for services to be started and stopped at that run
level. On rpm-based systems, these files are symbolic links to the
initialization scripts themselves, which are in /etc/rc.d/init.d.
-
/etc/skel - directory containing several example or skeleton
initialization shells. Often contains subdirectories and files used to
populate a new user's home directory.
-
/etc/X11 - configuration files for the X Window system
-
/home - home directories of individual users
-
/lib - standard shared library files
-
/lib/modules - modular device driver files, most with .o extensions
-
/mnt - typical mount point for many user-mountable devices such as floppy
drives, cd-rom readers, etc. Each device is mounted on a subdirectory of /mnt.
-
/proc - virtual file system that provides a number of system statistics
-
/root - home directory for root
-
/sbin - location of binaries used for system administration,
configuration, and monitoring
-
/tmp - directory specifically designed for programs and users to store
temporary files.
-
/usr - directory containing a number of subdirectory with programs,
libraries, documentation, etc.
-
/usr/bin - contains most user commands. Should not contain binaries
necessary for booting the system, which go in /bin. The /bin directory is
generally located on the same disk partition as /, which is mounted in
read-only mode during the boot process. Other filesystems are only mounted at
a later stage during startup, so putting binaries essential for boot here is
not a good idea.
-
/usr/bin/X11 - most often a symbolic link to /usr/X11R6/bin, which
contains executable binaries related to the X Window system
-
/usr/doc - location of miscellaneous documentation, and the main location
of program documentation files under Slackware
-
/usr/include - standard location of include files used in C programs such
as stdio.h
-
/usr/info - primary location of the GNU info system files
-
/usr/lib - standard library files such as libc.a. Searched by the linker
when programs are compiled.
-
/usr/lib/X11 - X Window system distribution
-
/usr/local/bin - yet another place to look for comon executables
-
/usr/man - location of manual page files
-
/usr/sbin - other commands used by superuser for system administration
-
/usr/share - contains subdirectories where many installed programs have
configuration, setup and auxiliary files
-
/usr/share/doc - location of program documentation files under Mandrake
and Red Hat
-
/usr/src - location of source programs used to build system. Source code
for programs of all types are often unpacked in this directory.
-
/usr/src/linux - often a symbolic link to a subdirectory whose name
corresponds to the exact version of the Linux kernel that is running. Contains
the kernel sources.
-
/var - administrative files such as log files, used by various utilities
-
/var/log/packages - contains files, each of which has detailed information
on an installed package in Slackware. The same file can also be found at /var/adm/packages,
since the adm subdirectory is a symbolic link to log. Each package file
contains a short description plus a list of all installed files.
-
/var/log/scripts - package installation scripts in Slackware are stored
here. You can inspect these scripts to see what special features are included
in individual packages.
-
/var/spool - temporary storage for files being printed, mail that has not
yet been picked up, etc.
-
amd - runs the automount daemon for remote filesystem mounting such as nfs
-
anacron - checks delayed `cron' tasks (see below) at boot time and
executes them. Useful if you have cron jobs scheduled but don't run your
machine all the time.
-
apmd - Advanced Power Management BIOS daemon. For use on machines,
especially laptops, that support apm. Monitors battery status and can shut
down the system if power is too low.
-
arpwatch - keeps watch for ethernet IP address pairings that are resolved
using the ARP protocol.
-
atd - runs jobs queued by `at'
-
autofs - control the operation of automount daemons, used to mount and
unmount devices on demand
-
bootparamd - allows computers to boot from a Linux machine using the BOOTP
network protocol. A server process that provides information to diskless
clients necessary for booting
-
crond - automatic task scheduler. Manages the execution of tasks that are
executed at regular but infrequent intervals, such as rotating log files,
cleaning up /tmp directories, etc.
-
cups - daemon for print services under the Common Unix Printer System, a
replacement for lpd
-
dhcpd - implements the Dynamic Host Configuration Protocol (DHCP) and the
Internet Bootstrap Protocol (BOOTP). Used to lease out IP addresses to remote
machines.
-
drakfont - font server in Mandrake
-
fetchmail - daemon to fetch mail at regular intervals from mail servers
-
ftpd - ftp server daemon
-
gated - routing daemon that handles multiple routing protocols and
replaces routed and egpup
-
gpm - useful mouse server for applications running on the Linux console.
-
httpd - the Apache webserver hypertext transfer protocol daemon
-
identd - The identd server provides a means to determine the identity of a
user of a particular TCP connection. Given a TCP port number pair, it returns
a character string which identifies the owner of that connection on the
server's system.
-
inetd - listens for service requests on network connections, particularly
dial-in services. This daemon can automatically load and unload other
daemons (ftpd, telnetd, etc.), thereby economizing on system resources. In the
latest version of Red Hat (7.0 at the time of writing), it has been replaced
by xinetd. A partial list of services controlled by inetd is listed below.
Under many distributions, inetd will execute scripts in the file /etc/inetd.conf.
-
innd - Usenet news server daemon
-
ipchains - daemon for packet forwarding. Used for configuring a
gateway/firewall.
-
isdn provides ISDN network interfacing services
-
isdn4linux - for users of ISDN cards
-
kerneld - automatically loads and unloads kernel modules
-
keytable - loads the appropriate keyboard map from /etc/sysconfig/
keyboard
-
kheader -
-
kudzu - detects and configures new or changed hardware during boot
-
linuxconf - ``startup hook'' needed for the linuxconf system configuration
tool
-
lpd - line printer and print spooler daemon
-
mcserv - server program for the Midnight Commander networking file system.
It provides access to the host file system to clients running the Midnight
file system (currently, only the Midnight Commander file manager). If the
program is run as root the program will try to get a reserved port otherwise
it will use 9876 as the port. If the system has a portmapper running, then the
port will be registered with the portmapper and thus clients will
automatically connect to the right port. If the system does not have a
portmapper, then a port should be manually specified with the -p option (see
below).
-
mysql - database server daemon
-
named - provides DNS services
-
netfs - network filesystem mounter. Used for mounting nfs, smb and ncp
shares on boot.
-
network -activates all network interfaces at boot time by calling scripts
in /etc/sysconfig/network-scripts
-
nfsd - used for exporting nfs shares when requested by remote systems
-
nfslock - starts and stops nfs file locking service
-
numlock - locks numlock key at init runlevel change
-
pcmcia - generic services for pcmcia cards in laptops
-
portmap - needed for Remote Procedure Calls
-
postfix - mail transport agent which is a replacement for sendmail. Now
the default on desktop installations of Mandrake.
-
postgresql - database server daemon
-
random - random number generating daemon, related to security and
encryption
-
routed - manages routing tables
-
rstatd - kernel statistics server. Allows users on a network to get
performance statistics for any connected machine.
-
rusersd - provides services that allow users to find one another over the
network
-
rwalld - allows users to use rwall to write messages on remote terminals
-
rwhod - server which maintains the database used by the rwho(1) and
ruptime(1) programs. Its operation is predicated on the ability to broadcast
messages on a network.
-
sendmail - mail transfer agent. This is the agent that comes with Red Hat.
Others, such as smtpd, are not included.
-
smb - needed for running SAMBA
-
snmpd - provides Simple Network Management Protocol support
-
sound - daemon for managing sound
-
squid - web page proxy server daemon
-
syslogd - manages system log files
-
smtpd - Simple Mail Transfer Protocol, designed for the exchange of
electronic mail messages. Several daemons that support SMTP are available,
including sendmail, smtpd, rsmtpd, qmail, zmail, etc.
-
tcpd - from the tcp_wrappers package. Intercepts requests normally handled
by inetd and filters them through the files hosts.allow and hosts.deny files,
which can restrict access to services based on type of service, origin of
request, destination, etc. Requests are intercepted because calls to
particular services are replaced with calls to tcpd in /etc/inetd.conf.
-
telnetd - telnet server daemon
-
usb - daemon for devices on Universal Serial Bus
-
xfs - X font server
-
xinetd - more modern replacement for inetd. It apparently allows for
similar kinds of access filters to the ones used by tcpd in conjunction with
inetd. xinetd replaces inetd as the default network services daemon in Red Hat
7.0.
-
xntpd - Network Time Protocol daemon. Provides a means to syncronize time
over the network.
-
webmin - daemon for webmin web-based system administration program
-
ypbind - NIS binder. Needed if computer is part of Network Information
Service domain.
-
a2p - translation utility from awk to Perl
-
a2ps - translation utility from ``any'' to Postscript
-
ac - print statistics concerning user connect time
-
access - determine whether a file can be accessed
-
acroread - Adobe utility for viewing pdf files
-
adduser - used by root to add user to system
-
afio - utility to copy or restore files to an archive file. This utility
is not part of the basic internal and external programs under Red Hat Linux.
It is available as an rpm on the rpmfind.net site.
-
agetty - enables login on terminals. See getty, mgetty, and uugetty.
-
ali - list mail aliases
-
alias - assign name to specified command list. This is actually a shell
builtin. On my Red Hat system, I have global alias commands in my /etc/bashrc
file and in my /.bashrc file. On my Slackware box, I have made the rm command
a little bit safer with
so that you can't recursively delete your /dev directory without telling
the system you're sure you want to do it.
-
alien - utility to convert to and from different Linux package formats.
Can handle Debian (deb), Stampede (stp), Red Hat (rpm) and Slackware (tgz)
packages.
-
apropos - display command names based on keyword search
-
apsfilter - printer filter called by lpd to deal with printing different
types of files. This is a fairly sophisticated print filter. It is not set up
by default in Slackware. It used to be available on the second cd of a
Slackware distribution. Since 4.0, it is available as one of the main packages
in the ap set. Read the mail that the installation program sends to the root
user. I believe that Red Hat uses its own printer filters.
-
ar - create, modify and extract from archives
-
arch - print machine architecture type
-
as - the portable GNU assembler
-
asapm - AfterStep laptop advanced power management utility
-
ash - a shell, a very simple shell program sometimes used on boot
diskettes since it takes up much less space than bash, tcsh, zsh, etc.
-
asload - AfterStep cpu load monitor
-
asmail - AfterStep mail checking utility
-
asmodem - AfterStep utility to monitor modem status
-
aspell - a spell checking program along the lines of ispell
-
aspostit - X Window postit note utility
-
at - executes a shell script at specified time. Use atq to show pending
jobs, and atrm to remove jobs from the queue.
-
usage: at time
-
or: at -f file time
-
atq - shows pending jobs queued by at. If run by root, shows everybody's
pending jobs.
-
atrm - removes pending jobs queued by at. Use atq to determine the
identities of various jobs.
-
awk - searches for and process patterns in a file
-
banner - print banner to standard output. Syntax is
-
bash - Bourne again shell. This is the default shell in the Red Hat
installation.
-
batch - queue, examine, or delete jobs for later execution. See at.
-
bc - a language (compiler) similar to C, with unlimited precision
arithmetic
-
bg PID - send process with pid ``PID'' to the background. This is the same
as executing [Ctrl]z while interacting with the running process. This
is a shell builtin.
-
bh - puts a job in the background. This is a shell builtin.
-
biff - mail notification utility. Notifies user of mail arrival and
sender's name.
-
bind - displays or redefines key bindings. This is a shell builtin.
-
bison - parser generator similar to yacc
-
bru - a powerful backup utility program. Commercial. Demonstration
versions are often included with Linux distributions such as Red Hat.
-
bsh - equivalent to ash
-
bunzip2 - used to uncompress files compressed with bzip2
-
byacc - parser generator
-
bzip2 - compresses with algorithm different from gzip
-
bzless - view bzipped files
-
c++ - invokes GNU C and C++ compiler
-
cal - displays a 12-month calendar for the given year or a one-month
calendar of the given month
-
cat - combine, copy standard input to standard output. Used to join or
display files.
-
cd - change working directory. This is a shell builtin in bash, tcsh and
zsh.
-
cdplay - command line utility for playing audio cds
-
cfdisk - similar to fdisk, but menu-driven
-
chat - used to interact with a modem via a chat script
-
chgrp - changes group associated with file. Can be used to change the
group associated with subdirectories and files of a directory.
-
usage: chgrp group files
-
or: chgrp -R group files
-
chkconfig - Query or update system services/daemons for different
runlevels. Manipulates the various symbolic links in /etc/rc.d. This utility
is included with many rpm-based distributions such as RedHat and Mandrake. It
is designed to work with System V initialization scripts. Graphical tools for
configuring system services include ntsysv, tksysv and ksysv (the latter is a
KDE utility).
-
chmod - set permissions (modes) of files or directories. A value of 4 is
used for read permission. A value of 2 is used for write permission. A value
of 1 is used for execute permission. See umask for default file permissions
upon file creation. Chmod can also be used to change the suid bit on files.
The syntax for the symbolic version is
The syntax for the absolute version is
To set the uid to the owner's permissions, use
To set the uid to the group's permissions, use
There are lots of security issues related to allowing a program to have
root's permissions when run by an ordinary user. I don't pretend to understand
all of these issues.
-
chown - changes ownership of a file. Can be used recursively.
-
chsh - change default shell
-
ci - creates or records changes in an RCS file
-
clear - clear screen command
-
cmp - compares two files for differences
-
co - retrieves an unencoded version of an RCS file
-
comm - compares sorted files
-
configure - automatically configures software source code
-
color-xterm - color xterm program. Under Red Hat, this is just a link to
xterm-color.
-
control-panel - graphical system configuration tool under Red Hat.
-
cp - copies on or more files. Recursive copying is one simple way of
archiving part of a directory structure. Use the command as follows:
-
cpio - direct copy of files to an output device. Allows creation of
archive file spanning multiple diskettes. Allows one directory structure to be
mirrored elsewhere on the partition or on another partition. In order to back
up an entire directory structure on diskettes, cd to the directory and use the
following command:
To restore from diskettes, use:
The cpio command will prompt the user to insert more diskettes as they are
needed. The command for mirroring a directory structure is the following:
This copies the working directory and its contents, including
subdirectories, into /destinationdirectory. In order to copy an individual
file which is larger than a floppy, use:
-
cpkgtool - Slackware tool to install, uninstall and query packages. Front
end to installpkg, removepkg, makepkg. This is the graphical version that uses
ncurses.
-
cpp - GNU C-compatible compiler preprocessor
-
crontab - schedules command to run at regularly specified time
-
csh - run C shell
-
csplit - separate files into sections. See also split.
-
cvs - manages concurrent acces to files in a hierarchy. Stands for
concurrent version system. Is built on RCS. It stores successive revisions of
files efficiently and ensures that access to files by multiple developers is
done in a controlled manner. Useful when many developers are working on the
same project.
-
cut - selects characters or TAB-separated fields from lines of input and
writes them to standard output
-
date - displays or sets date and time
-
usage: date
-
or: date date
-
dd - direct copy of file from one device to another. Can be used to make
copies of boot or root diskettes for installing Linux. It can be used, for
example, to make and exact copy of a floppy disk, as follows. First, place the
diskette to be copied in the floppy drive. Then,
-
dd if=/dev/fd0 ibs=512 > floppy.copy
-
Replace the diskette with a fresh diskette.
-
dd if=floppy.copy bs=512 of=/dev/fd0
The ibs and bs options specify the block sizes for input and for both input
and output. A boot disk image can be directly copied to a floppy using the
second of the two dd commands above.
-
declare - declares attributes for a variable (same as typeset). This is a
shell builtin.
-
df - displays capacity and free capacity on different physical devices
such as hard drive partitions and floppy drives that are mounted on the file
system. Gives free space in blocks. With the (undocumented) option -h, the
program gives free space in Mb or Gb. This is useful for those accustomed to
thinking of the capacity of a high-density 3.5 inch diskette as 1440k.
-
diff - displays differences between two files
-
diff3 - compares three files and reports on differences
-
dip - used to set up a SLIP or PPP connection. It can be used to set up an
outgoing SLIP connection or an incoming connection.
-
diplogin - used for setting up incoming dip connections. See the man page
for dip.
-
dir - a variation of the GNU ls command that defaults to printing file
names in columns
-
dircolors - set colors for GNU ls command. In Slackware, this command is
run by the /etc/profile script. Then, whenever xterm is run with the -ls
(login shell) option, ls displays different colors for different types of
files. Typical usage is eval `dircolors -b`. In Red Hat and Mandrake, I get
color directories by aliasing the ls command (see below).
-
display - set display for output of programms under X Windows. Can be used
to run a program on a remote machine while displaying the output on a local
machine. The remote machine must have permission to send output to the local
machine. This is actually an environment variable. See the more detailed
discussion in connection with the xhost command below.
-
dmesg - displays messages from /var/log relative to the most recent boot
-
dos - invoke the DOSEMU DOS emulator
-
du - displays information on disk usage. The command
will display detailed disk usage for each subdirectory starting at root,
giving files sizes in bytes.
-
dumpkeys - print information about the keyboard driver's translation
tables to standard output
-
dvilj - send a dvi file to a Laserjet printer. There are specialized
versions for individual models of Laserjet printer.
-
dvilj2p - specialized version of dvilj for the IIp series of printers. See
above.
-
dvips - send a dvi file to a Postscript printer, to a Postscript capable
Laserjet printer, or to a file (with the -o option). There is a switch to
print only a subset of the pages, and another switch to print in landscape
mode. Use -t landscape, which is one of the arguments to the paper type
switch. If you have one page of a document that is a wide table, and you wish
to print this in landscape mode, use
-
e2fsck - check an ext2 filesystem. The syntax is
where the filesystem is on /dev/devicename. The device should not be
mounted, and this program must be run as root.
-
echo - write arguments to standard output. One use is to print out
information about environment variables, as in
This is a shell builtin.
-
editres - a dynamic resource editor for X Toolkit applications. Allows the
user to change X resources for individual applications.
-
efax - fax program
-
efix - convert between fax, text, bit-map and gray-scale formats
-
egrep - search files for lines that match regular expressions. Runs faster
than grep and fgrep.
-
elm - an interactive mail system
-
elvis - a version of the vi text editor
-
emacs - screen oriented text editor
-
env - desplay the current environment or set a variable equal to a new
value
-
eval - scans and evaluates the command line. See dircolors command. This
is a shell builtin.
-
ex - interactive command-based editor. The man page lists it as being the
same as vim, an improved version of vi.
-
exec - system call which creates a subshell to execute a binary or a
script. This is a shell builtin.
-
execve - a variation of the exec command.
-
exit - exit a shell. This is a shell builtin.
-
expand - convert tabs in files to spaces and write to standard output
-
expect - a program that ``talks'' to other interactive programs according
to a script. Following the script, Expect knows what can be expected from a
program and what the correct response should be. An interpreted language
provides branching and high-level control structures to direct the dialogue.
In addition, the user can take control and interact directly when desired,
afterward returning control to the script.
-
export - place the value of a variable in the calling environment (makes
it global). This is a shell builtin.
-
expr - utility evaluates an expression and displays the result
-
f2c - FORTRAN to C translator
-
f77 - FORTRAN 77 compiler
-
false - null command that returns an unsuccessful exit status
-
fax - simple user interface to efax and efix programs
-
fc - views, edits, and executes commands for the history list. This is a
shell builtin.
-
fdformat - low level format of a floppy device
-
fetchmail - retrieve mail from a remote mail server and pass it to local
SMTP agents on the local machine
-
fdisk - used to partition hard drives
-
fg PID - bring a background or stopped process with pid ``PID'' to the
foreground. This is a shell builtin. If only one process is running in
background mode, fg with no argument is sufficient to bring it to the
foreground
-
fgrep - search for patterns in files
-
file - displays classification of a file or files according to the type of
data they contain
-
find - find files according to a large variety of search criteria. The
find command that I use the most is
in order to find files matching a particular name on the working directory
and all subdirectories. Find can be incredibly powerful, but it is incredibly
obscure.
-
finger - display information about a specified userid or userids
-
fmt - simple text formatting utility. Tries to make all nonblank lines
nearly the same length.
-
fold - break lines of specified files so they are no wider than a
specified lengths
-
fortune - available in the bsdgames package in Slackware and other
distributions. Put a call to fortune in /etc/profile and get something
inspirational or amusing every time you fire up an xterm as a login shell.
-
free - gives used and free memory on system along with other useful
information
-
fromdos - takes a DOS text file from stdin and sends a UNIX file to
stdout.
-
fsck - file system check and repair
-
ftp - file transfer over network
-
g++ - C++ compiler
-
g77 - GNU Fortran 77 compiler
-
gawk - GNU awk, mostly for processing delimited text files
-
gcc - invoke C, C++ compiler
-
getipts - parses arguments to a shell script. This is a shell builtin.
-
getkeycodes - print kernel's scancode-to-keycode mapping table
-
ghostscript - set of printing utilities. It seems to be obligatory to have
this if a TEX installation such as teTEX is installed.
How they communicate with one another is somewhat obscure.
-
ghostview - Aladdin ghostscript interpreter/previewer
-
gimp - image manipulation and paint program
-
glint - Red Hat graphical front end for the rpm package installer and
manager.
-
grep - used to find a string within a file. The -i option returns matches
without regard to case. The -n option means that each line of output is
preceded by file name and line number. The -v option causes non-matched lines
to be printed.
-
usage: grep pattern files
-
or: grep -i pattern files
-
or: grep -n pattern files
-
or: grep -v pattern files
-
groupadd - create a new group on the system
-
groups - shows which groups you are in
-
grub - Gnu grand unified bootloader. Can be used instead of lilo to boot
multiple operating systems. I encountered a couple of snafus trying to install
grub on my home machine after installing Mandrake 8.0 and choosing the lilo
bootloader during the initial install. The Mandrake installation program set
up /boot/vmlinuz as a symlink to the actual kernel, vmlinuz-2.4.3-20mdk. It
took me a while to figure out that grub doesn't understand symbolic links. The
documentation suggests installing grub on a diskette using the ``dd'' command.
This refused to work, but
did work. The single quotes are necessary. The files necessary to run grub
are normally located in /boot/grub. Once the file menu.lst has been edited and
appropriated entries added to boot the different operating systems on one's
hard disk(s), the following sequence of commands can be used to install grub
in the master boot record (MBR) sector of the hard disk:
Here, the x should be replaced by the partition where the
/boot/grub directory is located, which is probably the root partition of the
Linux system. Note that grub has its own conventions for naming devices and
numbering partitions, so that for example a partition which is called hda6
under Linux will be called (hd0,5) by grub.
-
grub-install - command to install grub on the hard drive (or floppy
drive).
-
gunzip - used to uncompress files compressed with gzip
-
gv - PostScript and PDF previewer, based on ghostview
-
gvim - see vi
-
gzexe - compresses executables
-
gzip - used to compress or decompress files
-
halt - shut down system as root, without reboot, immediately
-
hash - remembers the location of commands in the search path. This is a
shell builtin.
-
head - displays first part of a file
-
history - command for viewing and manipulating the shell command history
list
-
host - look up host names using domain server
-
hostname - used to get or set hostname. Typically, the host name is stored
in the file /etc/HOSTNAME.
-
hwclock - used to query and set the hardware clock
-
hylafax - commercial fax program
-
id - display userid and groupid
-
inetd - daemon which starts up other daemons on demand. Configured in
/etc/inetd.conf.
-
ifconfig - display (as root) information on network interfaces that are
currently active. First ethernet interface should be listed as eth0, second as
eth1, etc. First modem ppp connection should be listed as ppp0, etc. The
``lo'' connection is ``loopback'' only.
-
ifdown - shut down the network interface
-
ifup [interface_name] - start up the interface
-
info - display system information. This is the GNU hypertext reader.
-
init - the mother of all processes, run at bootup, executes commands in
/etc/inittab. Can be used (with root privileges) to change the system run
level.
-
insmod - used (by root) to install modular device drivers
-
installpkg - Slackware command to install one of the packages from the
program sets
-
intr - interrupt key, usually [Ctrl-C]
-
ispell - checks files for spelling errors
-
jed - programmer's file editor. Behaves like emacs. Has modes for TEX,
FORTRAN, C, etc.
-
jobs - displays list of current jobs in the background. This is a shell
builtin.
-
joe - simple WordStar-like text editor. It can be invoked in emacs
emulation mode with jemacs and in WordStar emulation mode with jstar.
-
jove - Joseph's Own Version of Emacs. A simple emacs clone.
-
kbd_mode - print current keyboard mode
-
kernelcfg - GUI to add/remove kernel modules (as root in X terminal).
-
kerneld - kernel daemon, a process that stays in memory and does all sorts
of useful stuff, like automatic loading of device driver modules
-
kikbd - a utility program that comes with KDE that allows users to switch
on the fly among different international keyboards. It can be used under
different window managers than kfm.
-
kill - sends a signal to (especially to terminate) a job or process. This
is a shell builtin in bash, tcsh and zsh.
-
killall - kill processes by name. Kill all processes which are instances
of the speciffied program. Also used to send signals to processes or restart
them.
-
killall5 - kill all processes except the ones on which it depends
-
last - generate a listing of user logins
-
lastlog - prints the last login times of all users
-
latex - compile a LATEX file
-
ldconfig - creates the necessary links and cache (for use by the run-time
linker, ld.so) to the most recent shared libraries found in the directories
specified on the command line, in the file /etc/ld.so.conf, and in the trusted
directories (/usr/lib and /lib). Ldconfig checks the header and file names of
the libraries it encounters when determining which versions should have their
links updated. Ldconfig ignores symbolic links when scanning for libraries.
-
ldd - list the shared libraries on which a given executable depends, and
where they are located
-
leave - display reminder at specified time
-
less - Linux alternative to ``more'' command. Displays text files, one
screenful at a time. When less pauses, there is a large number of available
commands to tell it what to do next. One can scroll both forwards and
backwards.
-
let - eva