You are previewing Unix: Visual QuickStart Guide.
O'Reilly logo
Unix: Visual QuickStart Guide

Book Description

UNIX is the most commonly-used operating system in the world. Once considered too arcane and difficult for the creative user to learn, it is now used daily by millions of Internet users and developers. It's the system the Internet is built on. The task of learning UNIX, with its seemingly complicated commands and hundreds of different flavors, can seem daunting without a straightforward guide.

UNIX: Visual QuickStart Guide is the easiest way to get going with UNIX. The unique Visual QuickStart presentation strips away the mystery and technical jargon that surround this system. Simple step-by-step instructions, backed up with graphics and illustrations, guide readers through commands and applications both common and obscure. Beginners will applaud theVisual QuickStart Guide's uncomplicated approach, and seasoned UNIX users will find it to be an invaluable reference.

Table of Contents

  1. Copyright
  2. Acknowledgments:
  3. Introduction
  4. Getting Started with UNIX
    1. Connecting to the UNIX system
    2. Logging in
    3. Changing your password with passwd
    4. Listing directories and files with ls
    5. Changing directories with cd
    6. Finding yourself with pwd
    7. Piping input and output
    8. Redirecting output
    9. Using wildcards
    10. Viewing file contents with more
    11. Displaying file contents with cat
    12. Exploring the system
    13. Getting help with man
    14. Logging out
  5. Using Directories and Files
    1. Creating directories with mkdir
    2. Creating files with touch
    3. Copying directories and files with cp
    4. Listing files and directories with ls (more goodies)
    5. Moving files with mv
    6. Removing files with rm
    7. Removing directories with rmdir
    8. Finding forgotten files with find
    9. Linking with ln (hard links)
    10. Linking with ln -s (soft links)
  6. Working with Your Shell
    1. Discovering what shell you're using
    2. Understanding shells and options
    3. Changing your shell with chsh
    4. Changing your shell temporarily
    5. Using command completion in the bash shell
    6. Viewing session history in the bash shell
    7. Using command completion in the ksh shell
    8. Viewing session history in the ksh shell
    9. Viewing session history in the csh shell
    10. Changing your identity with su
    11. Fixing terminal settings with stty
    12. Exiting the shell
  7. Creating and Editing Files
    1. Choosing an editor
    2. Starting pico and dabbling with it
    3. Saving in pico
    4. Cutting and pasting text blocks in pico
    5. Checking spelling in pico
    6. Getting help in pico
    7. Exiting pico
    8. Starting vi and dabbling with it
    9. Saving in vi
    10. Adding and deleting text in vi
    11. Importing files into vi
    12. Searching and replacing in vi
    13. Exiting (quitting) vi
  8. Controlling Ownership & Permissions
    1. Understanding file ownership and permissions
    2. Finding out who owns what
    3. Finding out which group you're in
    4. Changing the group association of files and directories with chgrp
    5. Changing ownership of files and directories with chown
    6. Changing permissions with chmod
    7. Translating mnemonic permissions to numeric permissions
    8. Changing permission defaults with umask
  9. Manipulating Files
    1. Counting files and their contents with wc
    2. Viewing file beginnings with head
    3. Viewing file endings with tail
    4. Finding text with grep
    5. Using regular expressions with grep
    6. Using other examples of regular expressions
    7. Making global changes with sed
    8. Changing files with awk
    9. Comparing files with cmp
    10. Finding differences in files with diff
    11. Finding differences in files with sdiff
    12. Sorting files with sort
    13. Eliminating duplicates with uniq
    14. Redirecting to multiple locations with tee
  10. Getting Information About the System
    1. Getting system information with uname
    2. Viewing file systems with df
    3. Determining disk usage with du
    4. Finding out file types with file
    5. Finding out about users with finger
    6. Learning who else is logged in with who
    7. Learning who else is logged in with w
    8. Getting information about your userid with id
  11. Configuring Your UNIX Environment
    1. Understanding your UNIX environment
    2. Discovering your current environment variables
    3. Adding or changing environment variables
    4. Looking at your bash configuration files
    5. Adding to your bash path
    6. Changing your bash prompt
    7. Looking at your ksh configuration files
    8. Changing your ksh path
    9. Changing your ksh prompt
    10. Looking at your csh configuration files
    11. Changing your csh path
    12. Changing your csh prompt
    13. Setting aliases with alias
  12. Running Scripts and Programs
    1. Scheduling one-time jobs with at
    2. Scheduling regularly occurring jobs with crontab
    3. Suspending jobs
    4. Checking job status with jobs
    5. Running jobs in the background with bg
    6. Running jobs in the foreground with fg
    7. Controlling job priority with nice
    8. Timing jobs with time
    9. Finding out what processes are running with ps
    10. Deleting processes with kill
  13. Writing Basic Scripts
    1. Creating a shell script
    2. Running a shell script
    3. Making a script executable
    4. Jump-starting scripts with history
    5. Embedding commands
    6. Looping your scripts
    7. Creating if-then statements
    8. Accepting command line input in your scripts
    9. Accepting input while a script is running
    10. Debugging scripts
  14. Sending and Reading E-mail
    1. Choosing an e-mail program and getting started
    2. Reading e-mail with pine
    3. Sending e-mail with pine
    4. Customizing pine
    5. Reading e-mail with elm
    6. Sending e-mail with elm
    7. Reading e-mail with mail
    8. Sending e-mail with mail
    9. Creating a signature file
    10. Forwarding incoming messages
    11. Announcing an absence with vacation
  15. Accessing the Internet
    1. Getting familiar with UNIX-Internet lingo
    2. Logging in to remote systems with telnet
    3. Communicating with other users using write
    4. Communicating with other users using talk
    5. Getting files from the Internet with ftp
    6. Sharing files on the Internet with ftp
    7. Surfing the Web with lynx
    8. Checking connections with ping
    9. Tracing connections with traceroute
    10. Matching domain names with IP numbers using nslookup
    11. Choosing a News reader
    12. Reading News with pine
    13. Reading News with tin
  16. Working with Encoded & Compressed Files
    1. Encoding files with uuencode
    2. Decoding files with uudecode
    3. Archiving with tar
    4. Unarchiving files with tar
    5. Compressing files with compress
    6. Uncompressing files with uncompress
    7. Zipping a file or directory with gzip
    8. Unzipping a gzip file with gunzip
    9. Zipping files and directories with zip
    10. Unzipping zipped files with unzip
    11. Combining commands
  17. Installing Your Own Software
    1. Understanding UNIX software installation
    2. Finding UNIX software
    3. Downloading, placing, and decompressing software
    4. Configuring software
    5. Compiling and installing with make install
  18. Using Handy Utilities
    1. Calendaring with cal
    2. Setting up calendar reminders
    3. Calculating with bc
    4. Checking spelling with ispell
    5. Keeping a record of your session with script
  19. Sensational UNIX Tricks
    1. Sorting and filing mail with procmail
    2. Searching and replacing throughout multiple documents with sed
    3. Generating reports with awk
    4. Using input to customize your environment
    5. Using ROT13 encoding with sed
    6. Embedding ROT13 encoding in a shell script
  20. UNIX Reference
  21. What's What and What's Where
  22. Command Flags