Contents
1 Linux Basics 1
1.1 Some Basic Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Working with Files and Directories . . . . . . . . . . . . . . . . . . . 91.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.2.2 The Home Directory and Path Names . . . . . . . . . . . . . 101.2.3 Important Directories in the Linux File System . . . . . . . . 121.2.4 Basic Files and Directories Commands . . . . . . . . . . . . . 131.2.5 File Name Substitution . . . . . . . . . . . . . . . . . . . . . . 301.3 Standard Input/Output, and I/O Redirection . . . . . . . . . . . . . 341.4 Additional Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2 Advanced Linux 63
2.1 The Unix File System . . . . . . . . . . . . . . . . . . . . . . . . . . 632.2 Mounting and Unmounting . . . . . . . . . . . . . . . . . . . . . . . . 662.3 MTools Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712.4 Swap Space and the Loopback Device . . . . . . . . . . . . . . . . . . 722.5 Network File-System . . . . . . . . . . . . . . . . . . . . . . . . . . . 732.6 Linuxconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742.7 Compressed Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 752.8 The vi and emacs Editors . . . . . . . . . . . . . . . . . . . . . . . . 782.8.1 vi Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782.8.2 emacs Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . 862.9 Programming Languages . . . . . . . . . . . . . . . . . . . . . . . . . 892.9.1 C and C++ Compiler . . . . . . . . . . . . . . . . . . . . . . 892.9.2 Perl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 912.9.3 Lisp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 922.9.4 Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
3 Linux and Networking 95
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953.2 Basic Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 963.3 email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1063.4 ftp Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1123.5 Telnet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153.6 Remote Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117i