An example of using dd to create a 1GB file.
dd if=/dev/zero of=testfile bs=1M count=1024
Or alternatively, create a sparse file ( very quick to create, but will lead to fragmentation later)
dd if=/dev/zero of=testfile bs=1M seek=1024 count=0
Large files can be formatted with a file system and mounted:
mkfs.ext3 -F testfile
mount -o loop -t ext3 testfile /mnt
SET FOREIGN_KEY_CHECKS = 0;
SET FOREIGN_KEY_CHECKS = 1;
Alexander Stetsenko blog has more info about it.
Not immediately obvious, but if you’re looking for an rpm to install the Apache2::Request module you need perl-libapreq2 (this works in CentOS 5 and I imagine others as well).
yum install perl-libapreq2
YUM reference cheatsheet:
Find out which package includes a given file
yum provides "*/repoquery"
List available repositories
Search by package name (case insensitive)
yum list "*package*"
List files inside a repository package (regardless if that package has been installed, requires the yum-utils to be installed)
repoquery --list <PACKAGE_NAME>
Add the following to the /etc/sudoers file:
<USERNAME> ALL= NOPASSWD: ALL