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 Management • Search packages • Install packages • Update/upgrade packages
Package Search Debian style • apt-get update • apt-cache search <str> Red Hat style • yum search <str>
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>
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>
Storage Control Commands • fdisk • fsck • fdfotmat • mkfs • dd • genisoimage • wodim • md5sum
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
Disk Dump Get info • ls – l /dev/sd* • df Dump • dd • dd if=/dev/sda1 of=out.img
Networking Commands • ping • traceroute • netstat • ftp • wget • ssh • scp • sftp
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