tools for storage network
play

Tools for Storage/Network Network Package Storage IASP 321 IASP - PowerPoint PPT Presentation

Command-line Linux Packages Tools for Storage/Network Network Package Storage IASP 321 IASP 221 Dr. John Yoon Packages Each distribution uses different packaging systems Debian style (.deb) Red Hat style (.rpm) Package


  1. Command-line Linux Packages Tools for Storage/Network Network Package Storage IASP 321 IASP 221 Dr. John Yoon

  2. Packages  Each distribution uses different packaging systems • Debian style (.deb) • Red Hat style (.rpm)  Package Management • Search packages • Install packages • Update/upgrade packages

  3. Package Search  Debian style • apt-get update • apt-cache search <str>  Red Hat style • yum search <str>

  4. Package Update/Installation/Remove/Upgrade  Debian style o apt-get update o apt-get install <pkg> o apt-get remove <pkg> • Using downloaded media o dpkg – install <pkg> o dpkg – install <pkg>  Red Hat style o yum update o yum install <pkg> o yum erase <pkg> • Using the downloaded media o rpm – i <pkg> o rpm – U <pkg>

  5. Package Listing/Status  Debian style o dpkg --list o dpkg --status <pkg> o apt-cache show <pkg> o dpkg --search <file name>  Red Hat style o rpm --qa o rpm -q <pkg> o yum info <pkg> o rpm -qf <file name>

  6. Storage Control  Commands • fdisk • fsck • fdfotmat • mkfs • dd • genisoimage • wodim • md5sum

  7. Mount/Unmounting Devices  Storage devices • File locations: o /dev/cdrom, /dev/dvd, /dev/floppy, /dev/hd*, /dev/sd* • Referring to Table 15-2 on page 165  File about file systems • /etc/fstab • Referring to Table 15-1 on page 161  Command • mount /mnt/cdrm • umount /dev/hdc

  8. Disk Dump  Get info • ls – l /dev/sd* • df  Dump • dd • dd if=/dev/sda1 of=out.img

  9. Networking  Commands • ping • traceroute • netstat • ftp • wget • ssh • scp • sftp

  10. Most commands are shown in the text  A few sample • netstat – ie • netstat – r  Non-interactive network downloader • wget http://linuxcommand.org/index.php

Recommend


More recommend