Slackware Linux Basics - University of .Preface This book aims to provide an introduction to Slackware

  • View
    214

  • Download
    0

Embed Size (px)

Text of Slackware Linux Basics - University of .Preface This book aims to provide an introduction to...

  • Slackware Linux Basics

    For Slackware Linux 10.0

    Danil de Kok

  • Slackware Linux Basics: For Slackware Linux 10.0by Danil de Kok

    Copyright 2002, 2003, 2004 by Danil de Kok

    License

    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    1. Redistributions of this book must retain the above copyright notice, this list of conditions and the followingdisclaimer.

    2. All advertising materials mentioning features or use of this book must display the followingacknowledgement: This product includes content written by Danil de Kok.

    3. The name of the author may not be used to endorse or promote products derived from this book withoutspecific prior written permission.

    THIS BOOK IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED

    WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS

    FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE

    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,

    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR

    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT

    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS BOOK,

    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    Linux is a registered trademark of Linus Torvalds. Slackware Linux is a registered trademark of Patrick Volkerding and Slackware Linux, Inc.

  • Table of ContentsPreface .................................................................................................................................................. iI. Getting started.................................................................................................................................. i

    1. About this book....................................................................................................................... 1Availability ........................................................................................................................ 1Conventions ....................................................................................................................... 1

    File names ................................................................................................................ 1Commands ............................................................................................................... 1Screen output ........................................................................................................... 1Notes ........................................................................................................................ 1

    2. An introduction to Slackware Linux ....................................................................................... 2What is Linux? .................................................................................................................. 2What is GNU/Linux?......................................................................................................... 2What is Slackware Linux?................................................................................................. 2Slackware Linux 10.0 features .......................................................................................... 2Slackware Linux on CD-ROM .......................................................................................... 3

    3. Sources of help........................................................................................................................ 4On your system.................................................................................................................. 4

    Linux HOWTOs...................................................................................................... 4Manual pages ........................................................................................................... 4

    On the internet ................................................................................................................... 44. General concepts ..................................................................................................................... 6

    Multitasking....................................................................................................................... 6Introduction.............................................................................................................. 6Processes and threads............................................................................................... 6

    Filesystem hierarchy.......................................................................................................... 7Structure................................................................................................................... 7Mounting.................................................................................................................. 8Common directories................................................................................................. 8

    Devices .............................................................................................................................. 9Introduction.............................................................................................................. 9ATA and SCSI devices ........................................................................................... 10

    5. Installing Slackware Linux ................................................................................................... 11Booting the installation CD-ROM................................................................................... 11Partitioning a hard disk.................................................................................................... 11Installing Slackware Linux.............................................................................................. 12

    II. GNU/Linux Basics ....................................................................................................................... 206. The Bash shell ....................................................................................................................... 21

    Introduction ..................................................................................................................... 21Starting the shell .............................................................................................................. 21Shell basics ...................................................................................................................... 21

    Executing commands ............................................................................................. 21Browsing through shell commands........................................................................ 21Completion............................................................................................................. 22Wildcards ............................................................................................................... 22

    Matching a string of characters .................................................................... 22Matching single characters........................................................................... 23Matching characters from a set .................................................................... 23

    Redirections and pipes ........................................................................................... 23Redirection ................................................................................................... 23

    i

  • pipes ............................................................................................................. 247. Files and directories .............................................................................................................. 25

    Introduction ..................................................................................................................... 25The basics ........................................................................................................................ 25Permissions...................................................................................................................... 27Archives........................................................................................................................... 29

    Introduction............................................................................................................ 29Extracting archives................................................................................................. 29Creating archives.................................................................................................... 30

    Extended attributes .......................................................................................................... 30Introduction............................................................................................................ 31Installing the necessary utilities ............................................................................. 31Showing extended attributes .................................................................................. 31Setting extended attributes ..................................................................................... 31

    Mounting filesystems....................................................................................................... 32In