Front cover image for Unix and Linux

Unix and Linux

From the Publisher: With Unix, 4th Edition: Visual QuickStart Guide, readers can start from the beginning to get a tour of the Unix operating system, or look up specific tasks to learn just what they need to know. This task-based, visual reference guide uses step-by-step instructions and plenty of screenshots, and includes three years worth of new material based on the latest Unix developments. This reference guide details all Unix commands and options along with tips that put those commands in context. Leading Unix authorities Deborah S. Ray and Eric J. Ray leverage their expertise as technical writers and working in the industry (Sun Microsystems) as they take readers step-by-step through the most common Unix commands and options
Print Book, English, ©2009
Peachpit Press, Berkeley, CA, ©2009
xiv, 393 pages : illustrations ; 23 cm.
9780321636782, 0321636783
1: Getting Started With Unix
Accessing a Unix system
Connecting to the Unix system
Logging in
Changing your password with passwd
Listing directories and files with ls
Changing directories with cd
Finding yourself with pwd
Piping input and output
Redirecting output
Using wildcards
Viewing file contents with more
Displaying file contents with cat
Exploring the system
Getting help with man
Logging out
2: Using Directories And Files
Creating directories with mkdir
Creating files with touch
Copying directories and files with cp
Listing directories and files with ls (more goodies)
Moving files with mv
Removing fileswith rm
Removing directories with rmdir
Finding forgotten files with find
Locating lost files with locate
Linking with ln (hard links)
Linking with ln -s (soft links)
3: Working With Your Shell
Discovering which shell you're using
Understanding shells and options
Changing your shell with chsh
Changing your shell temporarily
Using completion in the bash shell
Viewing session history in the bash shell
Using completion in the zsh shell
Viewing session history in the zsh shell
Changing your identity with su
Fixing terminal settings with sty
Exiting the shell
4: Creating And Editing Files
Choosing an editor
Starting pico and dabbling with it
Saving in picco
Cutting and pasting text blocks in pico
Checking spelling in pico
Getting help in pico
Exiting pico
Startin vi and dabbling with it
Saving in iv
Adding and deleting text in vi
Importing files into vi
Searching and replacing in vi
Exiting vi
Starting emacs and dabbling with it
Using emacs menus to spell-check
Saving in emacs
Existing emacs
5: Controlling Ownership And Permissions
Understanding file ownership and permissions
Finding out who owns what
Finding out which group you're in
Changing the group association of files and directories with chgrp
Changing ownership of files and directories with chown
Changing permissions with chmod
Translating mnemonic permissions to numeric permissions
Changing permission defaults with umask. 6: Manipulating Files
Counting files and their contents with wc
Viewing file beginnings with head
Viewing file endings with tail
Finding text with grep
Using regular expressions with grep
Using other examples of regular expressions
Making global changes with sed
Chaning files with awk
Comparing files with cmp
Finding differences in files with diff
Finding differences in files with sdiff
Sorting files with sort
Eliminating duplicates with uniq
Redirecting to multiple locations with tee
Changing with tr
Formatting with fmt
Splitting files with split
7: Getting Information About The System
Getting system information with uname
Viewing file systems with df
Determining disk usage with du
Finding out file types with file
Finding out about users with finger
Learning who else is logged in with who
Learnig who else is logged in with w
Getting information about your userid with id
8: Configuring Your Unix Environment
Understanding your Unix environment
Discovering your current environment
Adding or changing variables
Looking at your zsh configuration files
Adding to your zsh path
Changing your zsh path
Looking at your bash configuration files
Adding to your bash path
Changing your bash prompt
Setting aliases with alias
9: Running Scripts And Programs
Running a command
Scheduling onetime jobs with at
Scheduling regularly occurring jobs with cron
Suspending jobs
Checking job status with jobs
Running jobs in the background with bg
Running jobs in the foreground with fg
Controlling job priority with nice
Timing jobs with time
Finding out what processes are running with ps
Deleting processes with kill
10: Writing Basic Scripts
Creating a shell script
Running a shell script
Making a script executable
Getting a head start on scripts with history
Embedding commands
Looping your scripts
Creating if-then statements
Accepting command-line arguments in your scripts
Accepting input while a script is running
Debugging scripts
11: Sending And Reading E-Mail
Choosing an e-mail program and getting started
Reading e-mail with pine
Sending e-mail with pine
Customizing pine
Reading e-mail with mutt
Sending e-mail with mutt
Reading e-mail with mail
Sending e-mail with mail
Creating a signature file
Automatically forwarding incoming messages
Announcing an absence with vacation
Configuring procmail
Managing e-mail with procmail
12: Accessing The Internet
Getting familiar with Unix Internet lingo
Logging in to remote systems with ssh
Logging in to remote systems with telnet
Communicating with others using write
Communicating with others using talk
Getting files from the Internet with ftp
Sharing files on the Internet with ftp
Surfing the Web with links
Surfing the Web with lynx
Downloading Web Sites with wget
Checking connections with ping
Tracing connections with traceroute
Matching domain names with IP addresses
13: Working With Encoded And Compressed Files
Encoding files with uuencode
Decoding files with uudecode
Archiving with tar
Unarchiving files with tar
Compressing files with compress
Uncompressing files with uncompress
Zipping a file or directory with gzip
Unzipping files and directories with zip
Unzipping zipped files with unzip
Combining commands
14: Using Handy Utilities
Calendaring with cal
Calculating with bc
Evaluating expressions with expr
Converting with units
Looking it up with look
Keeping a record of your session with script
15: Being Root
Acting like root with sudo
Becoming root with su
Starting, stopping and restarting Daemons
Changing the system configuration
Monitoring the system
Keeping up with watch
Checking boot messages with dmesg
Setting the date and time
16: Sensational Unix Tricks
Cleaning up HTML documents with tidy
Searching and replacing throughout multiple documents with sed
Generating reports with awk
Using input to customize your environment
Using ROT13 encoding with sed
Embedding ROT13 encoding in a shell script
Making backups with rsync
Using advanced redirection with stderr
Appendix A: Unix reference
Appendix B: What's what and what's where
Appendix C: Commands and flags
Includes index
Previously published under title: UNIX, 3rd ed., 2006