52
is also re-run every time you boot the computer, so if you reboot you don't have to run it
manually.)
mknod /dev/fd0 b 2 0
(=make node, as root) Create a device file. This example shows how to create a device file
associated with your first floppy drive and could be useful if you happened to accidentally erase
it. The options are: b=block mode device (c=character mode device, p=FIFO device,
u=unbuffered character mode device). The two integers specify the major and the minor device
number.
fdformat /dev/fd0H1440
mkfs -c -t ext2
(=floppy disk format, two commands, as root) Perform a low-level formatting of a floppy in the
first floppy drive (/dev/fd0), high density (1440 kB). Then make a Linux filesystem (-t ext2),
checking/marking bad blocks (-c ). Making the files system is an equivalent to the high-level
format.
badblocks /dev/fd01440 1440
(as root) Check a high-density floppy for bad blocks and display the results on the screen. The
parameter "1440" specifies that 1440 blocks are to be checked. This command does not modify
the floppy.
fsck -t ext2 /dev/hda2
(=file system check, as root) Check and repair a filesystem. The example uses the partition hda2,
filesystem type ext2.
dd if=/dev/fd0H1440 of=floppy_image
dd if=floppy_image of=/dev/fd0H1440
(two commands, dd="data duplicator") Create an image of a floppy to the file called
"floppy_image" in the current directory. Then copy floppy_image (file) to another floppy disk.
Works like DOS "DISKCOPY".
Program installation
rpm -ivh filename.rpm
(=RedhatPackageManager, install, verbose, hashes displayed to show progress, as root.) Install a
content of RedHat rpm package(s) and print info on what happened. Keep reading if you prefer a
GUI installation.
rpm -qpi filename.rpm
(=RedhatPackageManager, query, package, list.) Read the info on the content of a yet uninstalled
package filename.rpm.
rpm -qpl filename.rpm
(=RedhatPackageManager, query, package, information.) List the files contained in a yet
uninstalled package filename.rpm.
rpm -qf filename
(=RedhatPackageManager, query, file.) Find out the name of the *.rpm package to which the file
filename (on your hardrive) belongs.
rpm -e packagename
(=RedhatPackageManager, erase=uninstall.) Uninstall a package pagckagename. Packagname is
the same as the beginning of the *.rpm package file but without the dash and version number.
kpackage
gnorpm
glint
(in X terminal, as root if you want to be able to install packages) GUI fronts to the Red Hat
Package Manager (rpm). "glint" comes with RH5.2, "gnorpm" with RH6.0, "kpackage" comes
with RH6.1 or must be installed separately but is the best of the three. Use any of them to view
which software packages are installed on your system and the what not-yet-installed packages
Commenti su questo manuale