You are previewing Linux Pocket Guide.
O'Reilly logo
Linux Pocket Guide

Book Description

O'Reilly's Pocket Guides have earned a reputation as inexpensive, comprehensive, and compact guides that have the stuff but not the fluff. Every page of Linux Pocket Guide lives up to this billing. It clearly explains how to get up to speed quickly on day-to-day Linux use. Once you're up and running, Linux Pocket Guide provides an easy-to-use reference that you can keep by your keyboard for those times when you want a fast, useful answer, not hours in the man pages. Linux Pocket Guide is organized the way you use Linux: by function, not just alphabetically. It's not the 'bible of Linux; it's a practical and concise guide to the options and commands you need most. It starts with general concepts like files and directories, the shell, and X windows, and then presents detailed overviews of the most essential commands, with clear examples. You'll learn each command's purpose, usage, options, location on disk, and even the RPM package that installed it. The Linux Pocket Guide is tailored to Fedora Linux--the latest spin-off of Red Hat Linux--but most of the information applies to any Linux system. Throw in a host of valuable power user tips and a friendly and accessible style, and you'll quickly find this practical, to-the-point book a small but mighty resource for Linux users.

Table of Contents

  1. Linux Pocket Guide
    1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
    2. 1. Linux Pocket Guide
      1. What's in This Book?
        1. What's Linux?
        2. What's Fedora Linux?
        3. What's a Command?
        4. Users and Superusers
        5. Reading This Book
          1. Input and output
          2. Standard heading
            1. ls [options] [files]
          3. Standard symbols
          4. Your friend, the echo command
      2. Getting Help
      3. Fedora: A First View
        1. The Role of the Shell
        2. How to Run a Shell
      4. Logins, Logouts, and Shutdowns
        1. shutdown [options] time [message]
      5. The Filesystem
        1. Home Directories
        2. System Directories
          1. Directory path part 1: category
          2. Directory path part 2: scope
          3. Directory path part 3: application
        3. Operating System Directories
        4. File Protections
      6. The Shell
        1. The Shell Versus Programs
        2. Selected bash Features
          1. Wildcards
          2. Brace expansion
          3. Tilde expansion
          4. Shell variables
          5. Search path
          6. Aliases
          7. Input/output redirection
          8. Pipes
          9. Combining commands
          10. Quoting
          11. Escaping
          12. Command-line editing
          13. Command history
          14. Filename completion
        3. Job Control
          1. jobs
          2. &
          3. ^Z
          4. suspend
          5. bg [%jobnumber]
          6. fg [%jobnumber]
        4. Killing a Command in Progress
        5. Terminating a Shell
        6. Tailoring Shell Behavior
      7. Installing Software
        1. up2date [options] [packages]
        2. rpm [options] [files]
      8. tar.gz and tar.bz2 files
        1. tar.gz and tar.bz2 files
      9. Basic File Operations
        1. ls [options] [files]
        2. cp [options] files (file|dir)
        3. mv [options] source target
        4. rm [options] files| directories
        5. ln [options] source target
      10. Directory Operations
        1. cd [directory]
        2. pwd
        3. basename path
        4. dirname path
        5. mkdir [options] directories
        6. rmdir [options] directories
      11. File Viewing
        1. cat [options] [files]
        2. less [options] [files]
        3. head [options] [files]
        4. tail [options] [files]
        5. nl [options] [files]
        6. od [options] [files]
        7. xxd [options] [files]
        8. gv [options] file
        9. xdvi [options] file
      12. File Creation and Editing
        1. Your Default Editor
          1. emacs [options] [files]
          2. vim [options] [files]
          3. umask [options] [mask]
          4. soffice [files]
          5. abiword [options] [files]
          6. gnumeric [options] [files]
      13. File Properties
        1. stat [options] files
        2. wc [options] [files]
        3. du [options] [files| directories]
        4. file [options] files
        5. touch [options] files
        6. chown [options] user_spec files
        7. chgrp [options] group_spec files
        8. chmod [options] permissions files
        9. chattr [options] [+-=]attributes [files]
        10. lsattr [options] [files]
      14. File Location
        1. find [directories] [expression]
        2. slocate [options]
        3. which file
        4. type [options] commands
        5. whereis [options] files
      15. File Text Manipulation
        1. grep [options] pattern [files]
        2. egrep [options] pattern [files]
        3. fgrep [options] [fixed_strings] [files]
        4. cut -(b|c|f)range [options] [files]
        5. paste [options] [files]
        6. tr [options] charset1 [charset2]
        7. sort [options] [files]
        8. uniq [options] [files]
        9. tee [options] files
      16. More Powerful Manipulations
        1. More Powerful Manipulations
          1. awk
          2. sed
          3. m4
          4. perl, python
      17. File Compression and Packaging
        1. gzip [options] [files]
        2. compress [options] [files]
        3. bzip2 [options] [files]
        4. zip [options] []
        5. uuencode [options] newfile infile
      18. File Comparison
        1. diff [options] file1 file2
        2. comm [options] file1 file2
        3. cmp [options] file1 file2 [offset1 [offset2]]
        4. md5sum files | --check file
      19. Disks and Filesystems
        1. df [options] [disk devices| files| directories]
        2. mount [options] device | directory
        3. umount [options] [device | directory]
        4. fsck [options] [devices]
        5. sync
      20. Partitioning and Formatting Disks
        1. Partitioning and Formatting Disks
      21. Backups and Remote Storage
        1. mt [-f device] command
        2. dump [options] partition_or_files
        3. restore [options] [files]
        4. tar [options] [files]
        5. cdrecord [options] tracks
        6. rsync [options] source destination
      22. File Printing
        1. lpr [options] [files]
        2. lpq [options]
        3. lprm [options] [job_IDs]
      23. Spelling Operations
        1. look [options] prefix [dictionary_file]
        2. aspell [options] file | command
        3. spell [files]
      24. Viewing Processes
        1. ps [options]
        2. uptime
        3. w [username]
        4. top [options]
        5. xload
        6. free [options]
      25. Controlling Processes
        1. kill [options] [process_ids]
        2. nice [-priority] command_line
        3. renice priority [options] PID
      26. Users and Their Environment
        1. logname
        2. whoami
        3. id [options] [username]
        4. who [options] [filename]
        5. users [filename]
        6. finger [options] [user[@host]]
        7. last [options] [users] [ttys]
        8. printenv [environment_variables]
      27. Working with User Accounts
        1. useradd [options] username
        2. userdel [-r] username
        3. usermod [options] username
        4. passwd [options] [username]
        5. chfn [options] [username]
        6. chsh [options] [username]
      28. Becoming the Superuser
      29. Working with Groups
        1. groups [usernames]
        2. groupadd [options] group
        3. groupdel group
        4. groupmod [options] group
      30. Basic Host Information
        1. uname [options]
        2. hostname [options] [name]
        3. ifconfig interface
      31. Host Location
        1. host [options] name [server]
        2. whois [options] domain_name
        3. ping [options] host
        4. traceroute [options] host [packet_length]
      32. Network Connections
        1. ssh [options] host [command]
        2. telnet [options] host [port]
        3. scp local_spec remote_spec
        4. sftp (host | username@host)
        5. ftp [options] host
      33. Email
        1. evolution
        2. mutt [options]
        3. mail [options] recipient
      34. Web Browsing
        1. mozilla [options] [URL]
        2. lynx [options] [URL]
        3. wget [options] URL
      35. Usenet News
        1. slrn [options]
      36. Instant Messaging
        1. gaim [options]
        2. talk [user[@host]] [tty]
        3. write user [tty]
        4. mesg [y|n]
        5. tty
      37. Screen Output
        1. echo [options] strings
        2. printf format_string [arguments]
        3. yes [string]
        4. seq [options] specification
        5. clear
      38. Math and Calculations
        1. xcalc [options]
        2. expr expression
        3. dc [options] [files]
      39. Dates and Times
        1. xclock [options]
        2. cal [options] [month [year]]
        3. date [options] [format]
        4. ntpdate timeserver
      40. Scheduling Jobs
        1. sleep time_specification
        2. watch [options] command
        3. at [options] time_specification
        4. crontab [options] [file]
      41. Graphics and Screensavers
        1. eog [options] [files]
        2. gqview [options] [file]
        3. ksnapshot [options]
        4. gimp [options] [files]
        5. gnuplot [options] [files]
        6. xscreensaver
      42. Audio and Video
        1. grip [options]
        2. cdparanoia [options] span [outfile]
        3. xmms [options] [files]
        4. audacity [files]
        5. xcdroast [options]
      43. Programming with Shell Scripts
        1. Whitespace and Linebreaks
        2. Variables
        3. Input and Output
        4. Booleans and Return Codes
          1. test and "["
          2. true and false
        5. Conditionals
        6. Loops
        7. Break and Continue
        8. Creating and Running Shell Scripts
        9. Command-Line Arguments
        10. Exiting with a Return Code
        11. Beyond Shell Scripting
      44. Final Words
        1. Acknowledgments
    3. Index
    4. About the Author
    5. SPECIAL OFFER: Upgrade this ebook with O’Reilly