cat /dev/urandom | pv -c - >/bigfile
vzctl set 100 --iolimit 3M --save
cat /dev/urandom | pv -c - >/bigfile
vzctl set 100 --iolimit 3M --save
Set the lowest priority:
vzctl set 101 --ioprio 0 --save
Set the highest priority:
vzctl set 101 --ioprio 7 --save
ssh-copy-id “user@host -p 2222”
chsh -s /bin/bash someuser
yum install bash-completion
centos support until dates:
10 Jun 2014, EOL 30 Jun 2024) RHEL 7
10 Nov 2010, EOL 30 Nov 2020) RHEL 6
14 Mar 2007, EOL 31 March 2017) RHEL 5
echo ‘Your text’ | ssh root@server “cat >> /tmp/some_file”
vzctl chkpnt 101 –dumpfile /tmp/Dump.101
mv /etc/vz/conf/101.conf /etc/vz/conf/102.conf
mv /vz/private/101 /vz/private/102
mv /vz/root/101 /vz/root/102
vzctl restore 102 –dumpfile /tmp/Dump.101
Raid Levels:
[‘Primary-0, Secondary-0, RAID Level Qualifier-0’] = RAID-0
[‘Primary-1, Secondary-0, RAID Level Qualifier-0’] = RAID-1
[‘Primary-5, Secondary-0, RAID Level Qualifier-3’] = RAID-5
[‘Primary-6, Secondary-0, RAID Level Qualifier-3’] = RAID-6
[‘Primary-1, Secondary-3, RAID Level Qualifier-0’] = RAID-10
./MegaCli64 -LDInfo -Lall -aALL | grep RAID
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
RAID Level : Primary-1, Secondary-3, RAID Level Qualifier-0
SELECT User FROM mysql.user;
dmidecode | grep -A3 '^System Information'
SET PASSWORD FOR ‘user’@’host’ = PASSWORD(‘newpass’);
To output the data with no headers and no grid just use both -s and -N.
mysql -sN …
ipmitool lan print 1
SELECT CONCAT("GRANT SELECT ON ",SCHEMA_NAME,".* TO 'test_user'@'localhost';") FROM information_schema.SCHEMATA WHERE SCHEMA_NAME NOT LIKE 'mysql';