Академический Документы
Профессиональный Документы
Культура Документы
1
ls_weekly.out
v 1.6.5 w w w. H OT l a bs. o rg
2
associated mount points and mount
options
Important Linux Directories, /lib/
Library Files Directory.
Configuration Files and This is a STANDARD Directory.
Block Devices - continued /mnt/
/etc/printcap.local Mount Point Directory.
Printer database, changes should be This is a STANDARD Directory.
made here as /etc/printcap is /opt/
regenerated each time the daemon Optional Directory.
loads. This file is not used nor This is a STANDARD Directory.
referenced with a CUPS solution. /proc/
/etc/profile Kernel Process Information
Sets up shell variables that are Directory.
global for everyone. Loaded right This is an OPTIONAL Directory.
after login. Executes once only at
login. /proc/interrupts
Contains which interrupts are in
/etc/profile.local use and which are available
Changes to your global variables
should be made here /proc/ioports
Contains which I/O addresses are
/etc/protocols in use and which are available
This file contains protocol IDs and
their names. Useful for /proc/pci
determining network traffic Lists which PCI devices are
problems. already installed and their I/O
addresses and interrupts
/etc/rc.d/init.d/lpd [option]
[option] should be replaced with: /root/
start - Starts the print daemon Root User's Home Directory.
status - Displays the status of the This is an OPTIONAL Directory.
print daemon /sbin/
stop - Stops the print daemon System Binaries Directory.
/etc/rc.d/rc.inet1 This is a STANDARD Directory.
IP address, Network mask, and /srv/
Default gateway are in these files; This directory is used for
may be edited manually to modify services' runtimes and working
network parameters files.
/etc/rc.d/rc.local This is an OPTIONAL Directory.
Bash script that is executed at the /tmp/
end of login process - like Temporary Directory.
autoexec.bat in DOS This is a STANDARD Directory.
/etc/resolv.conf /usr/
Defines IP addresses of DNS servers This directory is used as a system
/etc/rpc resource. Many times, libraries,
applications, and source code
RPC service name to their program are installed in this folder.
numbers mapping Kernel compiling usually takes
/etc/services place in the /usr/src/linux/
TCP/IP services and ports mapping subdirectory.
/etc/shadow This is a STANDARD directory.
Read-only to Root access processes, /var/
used to avoid theft of user Logfiles are generally stored in
passwords the /var directory or log
/etc/shells subdirectory. Variable data from
The /etc/shells file serves as the applications and some binaries
list of valid shells that may be are installed here.
loaded This is a STANDARD directory.
/etc/skel/ ~/.Xdefaults
Template folder that contains files Defines some parameters for
for new users X-Windows (~ refers to user's
Home Directory)
/etc/smb.conf
Configuration for the SAMBA server ~/.xinitrc
to allow file and print sharing with Defines windows manager loaded
Windows clients by X-Windows (~ refers to user's
Home Directory)
/etc/sysconfig/
A directory containing system X Window Keystrokes
configuration files
/etc/sysconfig/network ctrl+alt+backspace
The networking configuration file, Stop X server (some systems use
specifies network interfaces, IP ctrl+alt+esc)
addresses, and other protocols ctrl+alt+F1
/etc/X11/XF86Config Switch to text mode console 1
Configuration file for XFree86's X ctrl+alt+F7
Server Switch back to graphic mode
/home/
3
The mountpoint or directory where
user's personal data is stored.
This is an OPTIONAL directory.
Linux Commands cpio
(DOS/Windows in red) Copy files to and from archives
adduser cron
Script to create an new user (at) A program that exeutes
interactively commands at scheduled times.
alias The file that specifies what
This command is used to create this scheduale and commands
an alias to a command, can be are is /var/spool/cron
used to simplify or automate long crontab
tasks Show or edit cron jobs.
apropos [subject] cut Extract columns
List manual pages for subject
date
aspell (date/time) Set/display date
Check spelling interactively and time
at Schedule a job dd (rawrite) Write directly to a
awk Interpreter for awk scripts device
bash df (chkdsk) View amount of disk
(command.com) Advanced space available
command interpreter diff
bg Move a job to the background (fc) Compare files line by line
break dnsdomainname
(break) Break from loop Show DNS domain name.
statements dos2unix
bzip2 Convert text file from/to linux
Compress files (BZip2) format (replaces CRLF with LF)
cat [file] du (dir /a /s; chkdsk) View
(type) Display the contents of a amount of disk space used by a
file; output can be redirected directory recursively
cd (cd) Change the current dump
directory. Back up a disk
cdparanoia e2fsck
Rip audio (chkdsk/scandisk) Test a
cdrecord filesystem for errors (see also
Burn a CD fsck)
chfn echo
(echo) Display output
Modify finger information (full
name, phone number etc.) elm E-mail reader
chage emacs
Modify account policy (password Programming environment and
length, expire data etc.) editor
chattr env (set) Much like the set
Change advanced file attributes command in that without
arguements it displays current
chgrp environment variables for the
Change group ownership of a file current shell, except env DOES
chmod NOT display the functions and
(attrib) Change file or directory they are not displayed in
attributes or (permissions. Note alphabetical order. With
that file attributes on DOS are arguements (as in env
completely different from $VARIABLE), env can be used to
permissions on Linux. change or add environment
chown variables to the current shell.
Change ownership of a file eval
chsh Evaluate arguments
Change default login shell exec
clear (call) Execute a new shell
(cls) Clear the terminal screen exit
cmp (fc) Compare files byte by byte (exit) logs out of a SU session
comm or shell
Compare sorted files exportfs
compress export file system listed in
Lempel-Ziv compression program exports
continue fdformat
Resume a program loop (format) Format a floppy disk
cp (copy) The cp command simply fdisk
copies a file or multiple files to a (fdisk) Modify the partition
target consisting of a file name table
or directory. fg Move a job to the foreground
cp -l will prompt if a file exists file
4
at destination with the same file Identify file types
name
cp -r or cp -R copies a whole
directory structure (recursively)
Linux Commands - continued ifconfig
(DOS/Windows in red) (ipconfig) Configures network
interfaces and displays hardware
find and IP addresses for each
(dir /s) Search for a file interface.
free ifdown
(mem) Display a summary of
(netsh) Bring down a network
current memory usage and
interface
availability.
fsck ifup
(netsh) Bring up a network
(chkdsk/scandisk) Check a interface
disk for errors (see e2fsck)
inn
ftp (ftp) Get/send remote files News sever
fuser filename ipchains
Show processes using the file
Firewall and NAT
filename
(/etc/sysconfig/ipchains on
gaim Redhat)
Instant messaging/IRC iptables
gpm (mouse) Mouse server Firewall and NAT
grep (/etc/sysconfig/iptables on
(find) Used to find Redhat)
information in a file irc Internet Relay Chat client
Format:
grep [options] pattern [files]
jobs
Display current jobs
grep -v Print only the lines
that do not match joe Wordstar compatible editor
grep -c Print only the count kbd_mode
(or number) of matching lines (mode) Set or query the
grep -l Print only names of keyboard mode
files with matches kbdrate
grep -n Print matching lines (mode) Set the keyboard repeat
with line numbers rate
grep -i Ignore case in letters kill
(uppercase and lowercase (taskkill) Sends signals to
ignored) process ID'sSignals:
grep -w Whole word search 01 Hangup; if you logout before
grep -s Suppress all error process is done, then process will
messages hang
grip 09 Kill signal
Play CDs and rip MP3s 15 Terminate (default)
groupadd killall
Add group (taskkill /t) Kill processes by
groupdel name
Delete group ldd <application>
groupmod An ldd is a Dynamically Linked
Modify group System Library (much like a .dll
file in MS Windows). Displays the
grpck shared libraries required by each
Verify integrity of group files. of the applications listed on it's
grpconv command line.
Convert to shadow groups. less
grpquota (more) Page forward and
Manage disk space quota per backward through files
group ln (mountvol) Create a link to a
grpuncov file or directory
Convert from shadow groups. locate
gv View Postscript/PDF files Search for a file via a database
gzip look
(gzip) Program used to Look up spelling
compress a file. It gives the lpc Printer control tool
file the extension .gz to show
that it has been compressed. lpq Display jobs in print queue
halt lpr (print) Print a file
Stop all processes lprm
head Remove jobs from queue
Display first 10 lines of a file ls (dir) The list command.
head -n filename ls -a List all files, including any
Display first n number of lines hidden files (files that begin with
of file filename a period, as in .bash_history)
ls -l Long format listing
host (includes permissions, owner,
(nslookup) lookup host name
5
size, modification time, etc.)
or IP ls -R List directories and their
hostname contents recursively
Print the system’s hostname
Linux Commands - continued paste
(DOS/Windows in red) Appends columns
lsattr perl
List advanced file attributes Interpreter for perl scripts
lsof
List opened files persist
Reestablishes a terminated PPP
lspci connection
Lists PCI configuration
information for currently pico
installed PCI buses and devices (edit) Easy to use text editor
connected to them pine
lynx/links E-mail and news reader
Text-only web browser ping
mail (ping) Check if host is reachable
Minimal email client pppd
makewhatis Point-to-Point Protocol (PPP)
Make the whatis database Daemon; Required to establish a
man <command> dial-up connection. pppd does NOT
(<command> /? ) Get help on a
start up at boot time, and usually
command needs to be activated in the
modem "chat" script.
md5sum pppsetup
Compute checksums
Setup PPP connection (Slackware)
mkdir printtool
(md) Create a new subdirectory.
Similar syntax Start X printer setup interface
mke2fs ps (tasklist) Display list of running
processes
(format) Create a filesystem on
a partition pstree
(tasklist) Displays a list of
more processes in hierarchal order from
(more) Display the contents of a parent to child
file one page/screen at a time.
The less utility allows scrolling pwck
back and forth. Verify integrity of password files
mount pwconv
(mountvol/net use) Attach a Convert to shadow passwords
filesystem to the root filesystem, pwd Print current directory name
uses /etc/fstab to define default pwunconv
options for drives and mount Convert from shadow passwords
points
mozilla Quota
Manage disk quota
(mozilla) Web browser
rd (rmdir)
mt Control a tape drive (rd) Remove a directory
mutt rdate
Text-based email client Query a remote host for the date
mv (move/ren) Move/rename a file reboot
ncftp Stop all processes and then reboot –
Fancier version of ftp same as above
netstat renice
Show networking statistics Change process priorities
newgrp reset
Change to a new group Reset the keyboard and screen to
newusers default modes
Update and create new users restore
(batch mode) Restore a dump
nice rlogin
Run a program with modified Remote login
scheduling priority
rm Delete files
nl Returns the number of lines in a -R (del) Delete a directory and all
text file its contents, including
nmap subdirectories
Scan a host for opened ports -rf (deltree) Recursively delete
od a directory tree
Octal Dump; dumps the specified rmdir (rd)
file to standard output. (rmdir) Delete an empty
od -c filename ASCII Characters subdirectory (with -rf it will
od -o filename Octal Characters function like deltree)
(the default) route
od -x filename Hexadecimal (route print) Show routing
6
Characters information
passwd [accountname]
Give accountname a new
password
Linux Commands - continued socklist
(DOS/Windows in red) List opened socked
rpm Red Hat package manager soffice
-i INSTALL a package Edit Word/Excel/PowerPoint docs
-e UNINSTALL a package sort
-q QUERY a package (sort) Sort a file
-U UPDATE a package spell
-e package DELETE the rpm Check spelling in batch
package called package ssh Securely log into remote hosts
-i --force name REINSTALL the
rpm package called name having startx
deleted parts of it (not deleting Start X window system
using rpm -e) stat
-ihv name.rpm INSTALL the rpm (attrib) Display file attributes
package called name stderr
-l package LIST the files in the stderr - Standard Error 2>
package called package stdin
-ql package LIST the files and Standard Input; <0 ( or 0< )
state the installed version of the
package called package stdout
-Uhv name.rpm UPGRADE the rpm
Standard Output >1 ( or 1> )
package called name stop
rsync Suspend a background job
Mirror a set of files stty
scp Securely copy files between hosts Set/display terminal settings
screen su Log in as superuser from current
Allows you to use advanced login
functions in a console, such as SuperProbe
multiple virtual consoles, copy and Detect graphic hardware
paste text, and disconnect while suspend
leaving the processes and programs
active while being able to Suspend a foreground job
reconnect later SVGATextMode
sed Stream editor Set the screen to a different
resolution
set (set) With no arguments, set swapoff
displays all the variables and all
the functions for a current shell. Turn off a swap partition
With arguments (as in set swapon
$VARIABLE), set is used to change Turn on a swap partition
or add variables to the current sync
shell alphabetically. Flush disk caches
NOTE: This only shows variables sys-unconfig
for this shell only. Any child shells
will need to have these variables Unconfigure system
exported to them by using the tail
export command. Displays the last 10 lines of a file
setserial tail -n filename
Used to set baud rate on a serial Display last n number of lines of
device file filename
sftp talk
Securely copy files between hosts Linux/Unix chat
sh (command.com or cmd) Simplistic tar
command interpreter This program takes many files and
groups them all into one file
Shadowconfig archive with the extension .tar
Toggle shadow passwords on and Tar is often used with compressed
off files from gzip.
shift Common tar Commands:
(shift) Shift positional parameters -z GZip; uncompress file using gzip
showmount –e hostname while reading data
Show file systems exported -x Extract; Extract files from
shutdown archive
-v Verbose; Display the files being
-h now Shutdown the system now
and do not reboot extracted
-f File; Read the archive from the
-r 5 Shutdown the system in 5
minutes and reboot file given (if you don't specify a
file, tar assumes a tape drive)
-r now Shutdown the system now
and reboot tee
Take stdin and sends it to two
sleep different files
Wait for some time
telnet
slocate Interact with another host
7
Locate files via index
time
slrn Time a command
Threaded news reader with macro
support tin
News reader
Linux Commands - continued wget
(DOS/Windows in red) Retrieve web pages to disk
top whatis
Display top CPU processes Search the whatis database
touch whereis
Set the timestamp on a file Locate standard files
tr Translate characters which
traceroute Locate commands
(tracert) Display the route to a which missingfilename
remote system Show the subdirectory containing
trn the executable file called
Threaded news reader missingfilename
umask whois
Set default file permissions Look up domain registrants
umount write
Detach a filesystem from the root Send messages to a terminal
filesystem xargs
uname Causes a command to take as stdin
(ver) Displays information about a file with many arguments and yet
the kernel and system runs the command only once
uncompress Xconfigurator
(pkunzip) Uncompress compressed Run another X configuration menu
files with automatic probing of graphics
uniq cards
Locate identical lines xdm X Display Manager; may be stopped
with [Ctrl-Alt-Backspace], or
unix2dos
killall xdm
Convert text file from/to linux
format (replaces LF with CRLF) xdvi
unset View TeX DVI files
Used to remove a variable from the xf86config
current shell Setup X server and generate
unzip XF86config
(pkunzip) Extract files from a zip XF86Setup
file Run the X configuration menu with
updatedb automatic probing of graphics
Create searchable database of files cards
uptime XFree86 –configure
View the system load XFree86 auto configuration
(Plug-n-Play), generate a template
useradd named “XF86Config.new”
Create a new user or update
default new user information xhost
Server access control program for X
userdel
Delete a new user or update xload
Default new user information Monitor system load
usermod xlsfonts
Modify a new user or update Server font list displayer for X
default new user information xmms
usermount (winamp) Play audio files
Executes graphical application for xmodmap
mounting and unmounting file Modifying key map and mouse
systems button map
vi (edit) Text editor program: To xset
begin the editor type in vi and the Server preference utility for X
file name ( vi filename )
vi commands: xsetroot
:x Quits and saves Root window parameter setting
utility for X
i Enters the insert mode
ESC (ESC key) - quit the insert xvidtune
mode Run the X graphics tuning utility
: Enter a command xxd View binary data
:! Enter an external command line zip (pkzip) Create a zip file
command
:w Saves the changes without
exiting Prepared by:
vim (edit) Vi IMproved text editor Institute for Network Professionals
www.inpnet.org
w List users’ processes www.HOTlabs.org
wait
Wait for a background job to finish
watch
8 wc
Run programs at set intervals
Count bytes/words/lines producers
of
TUITION:
$2,495.00 — (only $1,870.00 using the 25% discount code - see below)
test prep. When used as part of a consistent review process, this valuable
resource will help keep even the most seasoned Linux professional on top of
the many unique Linux commands, processes and features.
Your set of the Linux Flash Cards will be delivered free of charge via email in
PDF format. The PDF file is formatted for both electronic and print usage.
Click to download: http://linux.HOTlabs.org
*Note:
Taking this Linux course will provide a solid foundation should you
pursue Novell's Certified Linux Professional© curriculum featuring
SUSE LINUX. Novell's CLP Roadmap includes:
REGISTER:
http://www.HOTlabs.org/lpi
www.HOTlabs.org