HKU Computer Centre HKU Computer Centre
Beck to home page   
 

UNIX USER'S GUIDE 2009-2010

Table of Contents

Chapter 1. INTRODUCTION TO THE CENTRAL UNIX SYSTEMS

1.1 Getting a User Account

1.2 Login and Logout a Unix System

1.2.1 Telnet
1.2.2 Rlogin
1.2.3 Telnet from a Microsoft Window

Chapter 2. UNIX FILE SYSTEM

2.1 Filenames

2.2 Pathnames

2.3 Ordinary (Regular) Files

2.4 Directories

2.5 Wildcard Characters

2.6 File Protection

2.7 Commands for Working with Directories

2.7.1 cd
2.7.2 ls
2.7.3 mkdir
2.7.4 pwd
2.7.5 rmdir
 

2.8 Commands for Working with Files

2.8.1 cat
2.8.2 cp
2.8.3 head
2.8.4 more
2.8.5 mv
2.8.6 rm
2.8.7 tail

Chapter 3. THE SHELLS

3.1 Standard I/O

3.2 Pipes

3.3 Shell Special Characters

3.4 Environment Variables

3.5 Shell Variables

3.6 Aliases

3.7 Command Separators

3.8 Commands

3.8.1 Commands working with directories and files
3.8.2 Other useful UNIX commands

Chapter 4. EDITORS

4.1 UNIX Line Editor - ed

4.2 UNIX Full-screen Text Editor - vi

4.2.1 The Command Mode Commands
4.2.2 The Input Mode Functions
4.2.3 Sample Editing Sessions
4.2.4 Settings for vi
4.2.5 Local Settings for vi
4.2.6 vi File Recovery
 

4.3 GNU Emacs Editor
 
 

4.4 PICO

Chapter 5. SHELL SCRIPTS & JOBS

5.1 Shell Programming

5.1.1 Shell Variables
5.1.2 Conditional and iterative constructs
5.1.3 The eval command
 

5.2 Important Script Files

5.3 A sample Bourne Shell Script File
 
 

5.4 The alternative C Shell Script
 
 

5.5 Jobs

5.5.1 Foreground and Background Processes
5.5.2 Creating Background Processes from Shell
5.5.3 Examining Background Processes
5.5.4 Switching Between Processes
5.5.5 Terminating Processes

Chapter 6. PROGRAM DEVELOPMENT

6.1 cc - C compiler

6.2 f77 - Fortran Compiler

6.3 IMSL

Appendix

Appendix A. vi command list

Appendix B. UNIX command list for general users

Appendix C. DOS & UNIX command list

Appendix D. Using Email on the UNIX systems
 
 


Computer Centre, The University of Hong Kong. Last updated May 1, 2009.
Copyright 2011 Computer Centre, The University of Hong Kong
Comments to ithelp@hku.hk