16 – Networking............................................................................................195
Examining And Monitoring A Network.........................................................................196
ping.........................................................................................................................196
traceroute...............................................................................................................197
netstat.....................................................................................................................198
Transporting Files Over A Network..............................................................................199
ftp............................................................................................................................199
lftp – A Better ftp.....................................................................................................202
wget........................................................................................................................202
Secure Communication With Remote Hosts...............................................................202
ssh..........................................................................................................................203
Tunneling With SSH..........................................................................................206
scp And sftp............................................................................................................207
An SSH Client For Windows?............................................................................208
Summing Up................................................................................................................208
Further Reading..........................................................................................................208
17 – Searching For Files..............................................................................209
locate – Find Files The Easy Way...............................................................................209
Where Does The locate Database Come From?..............................................211
find – Find Files The Hard Way...................................................................................211
Tests.......................................................................................................................212
Operators................................................................................................................214
Predefined Actions..................................................................................................217
User-Defined Actions..............................................................................................219
Improving Efficiency...............................................................................................220
xargs.......................................................................................................................220
Dealing With Funny Filenames..........................................................................221
A Return To The Playground..................................................................................221
Options...................................................................................................................224
Summing Up................................................................................................................225
Further Reading..........................................................................................................225
18 – Archiving And Backup.........................................................................226
Compressing Files.......................................................................................................226
gzip.........................................................................................................................227
bzip2.......................................................................................................................229
Don’t Be Compressive Compulsive...................................................................230
Archiving Files.............................................................................................................230
tar............................................................................................................................230
zip...........................................................................................................................236
Synchronizing Files And Directories............................................................................238
Using rsync Over A Network...................................................................................240
Summing Up................................................................................................................241
Further Reading..........................................................................................................241
19 – Regular Expressions...........................................................................243
What Are Regular Expressions?............................................................................243
grep.............................................................................................................................243
vii