Linux Quick Reference

ADVERTISEMENT

LINUX Administrator’s
Put network card driver (e.g., e100) in
Mouse type, e.g.,
“rc.netdevice”
mouse
MOUSETYPE=Microsoft
/etc/rc.d/rc.netdevice
Quick Reference Card
/sbin/modprobe e100
XEMU3=yes
/etc/modules.conf
Or in “modules.conf”
network settings, contains
Jialong He
alias eth0 e100
NETWORKING=yes
network
/etc/HOSTNAME
/etc/NETWORKING
hostname is set by “/bin/hostname” during
(Slackware)
boot and the name is read from these files.
NFS File Sharing
User Management
May change manually.
/etc/sysconfig/network
Files
Files
(Redhat)
/etc/fstab
file systems mounted during boot.
/etc/group
specify name server, DNS domain and
/etc/passwd
User account information.
search order. For Example:
/etc/exports
NFS server export list.
etc/resolv.conf
/etc/shadow
search la.asu.edu
/etc/auto.master
auto mount master file.
nameserver 129.219.17.200
/etc/bashrc
Commands
/etc/profile
host name to IP mapping file.
/etc/hosts
BASH system wide and per user init files.
$HOME/.bashrc
mount a file system or all entries in fstab.
host name information look up order.
mount
$HOME/.bash_profile
Example:
exportfs
export file system listed in exports
/etc/host.conf
/etc/csh.cshrc
order hosts, bind
showmount –e
show file systems exported
/etc/csh.login
multi on
hostname
$HOME/.cshrc
TCSH system wide and per user init files.
/etc/nsswitch.conf
new way to specify information source.
$HOME/.tcshrc
/etc/networks
$HOME/.login
Printer Configuration
/etc/protocols
TCP/IP services and ports mapping.
/etc/skel
template files for new users.
/etc/services
Files
/etc/default
default for certain commands.
/etc/rpc
RPC service name to their program numbers
/etc/printcap
Redhat and Slackware version info (Linux
/etc/redhat-release
mapping.
Printer capabilities data base.
/etc/printcap.local
/etc/slackware-version
kernel version with “uname –a”)
Commands
/etc/lpd.conf
LPRng configuration file.
Commands
menu driven Ethernet setup program.
netconfig
permissions control file for the LPRng line
/etc/lpd.perms
script to create an new user interactively
printer spooler
pppsetup
setup PPP connection (Slackware).
adduser
(slackware) or link to useradd (Redhat).
setup Ethernet during boot, for example
/etc/hosts.lpd
Access control (BSD lpd).
useradd, userdel,
create, delete, modify an new user or update
/etc/hosts.equiv
trusted hosts.
default new user information..
usermod
/sbin/ifconfig eth0 ${IPADDR} broadcast
PRINTER
Environment variable of default printer.
newusers
update and create new users (batch mode).
${BROADCAST} netmask ${NETMASK}
parallel port.
/dev/lp0
groupadd, groupdel,
ifconfig
add, delete or modify group.
/sbin/route add -net ${NETWORK} netmask
groupmod
Commands
${NETMASK} eth0
modify account policy (password length,
line printer control program, print queue
expire data etc.) or finger information (full
lpc, lpq, lprm
/sbin/route add default gw ${GATEWAY} netmask
chage. chfn, chsh
maintain
name, phone number etc.) change default login
0.0.0.0 metric 1
shell.
host
lookup host name or IP (similar to nslookup).
gain root access during boot prompt without
Sendmail
linux init=/bin/sh rw
dnsdomainname
show DNS domain name.
password, can be used to fix some problems.
Files
mount –w -n –o remount /
arping; arp
find out Ethernet address by first arping then arp.
makebootdisk
firewall and NAT (/etc/sysconfig/ipchains on Redhat)
“sendmail.cf” is the configuration file. “sendmail.mc” is
ipchains
make a bootable floppy disk
sendmail.cf
a macro file which can be used to generate “sendmail.cf”
iptables
firewall and NAT (/etc/sysconfig/iptables on Redhat)
sendmail.mc
by: m4 sendmail.mc > sendmail.cf
ntsysv
menu driven SYSV service configuration (Redhat)
mail aliases, must run “newaliases” after change. use
Network Configuration
aliases
chkconfig
command line SYSV service configuration (Redhat)
:include: to include external list in a file.
Files
per user aliases, use \yourname to prevent further expand
.forward
and keeps a copy in mailbox.
Redhat files in /etc/sysconfig
/etc/rc.d/rc.inet1
mail access control, FEATURE(access_db) should be set
(Slackware)
IP address, Network mask, Default gateway
Configuration Files
in sendmail.mc. For example, in /etc/mail/access
/etc/sysconfig/nework-
are in these files. May edit manually to
access
REJECT
scripts/ifcfg-eth0 (Redhat)
modify network parameters.
keyboard map, e.g.,
keyboard
RELAY
KEYBOARD=”/usr/lib/kdb/keytables/us.map”

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 6