Skip to content

Instantly share code, notes, and snippets.

@CesarCapillas
Last active May 16, 2017 21:47
Show Gist options
  • Save CesarCapillas/092af829f9f3aba7e62f9f30e6a66065 to your computer and use it in GitHub Desktop.
Save CesarCapillas/092af829f9f3aba7e62f9f30e6a66065 to your computer and use it in GitHub Desktop.
Ubuntu recipes
#Si difieren mucho puede indicar balloning
ps aux | tr -s ' ' | awk 'BEGIN{sum=0}{ sum+=$6 }END{print expr sum/1024}'
free -m
sudo hdparm -tT /dev/sda
dd if=/dev/zero of=/tmp/testfile1 bs=1G count=1 oflag=direct
dd if=/dev/zero of=/tmp/testfile3 bs=512 count=1000 oflag=direct
curl -v telnet://<server>:<port>
nc -v <server> <port>
telnet <server> <port>
nmap <server>
dpkg --get-selections | grep linux-image
sudo apt-get remove --purge <linux-image-?.?.?-??-generic>
find . -name \*.metadata.properties.xml -print0 | tar -czvf /root/backup-xml.tar.gz --null -T -
Ubuntu 16.04:
sudo apt-get install ttf-mscorefonts-installer fonts-noto fontconfig libcups2 libfontconfig1 libglu1-mesa libice6 libsm6 libxinerama1 libxrender1 libxt6
Ubuntu 14.04:
sudo apt-get install ttf-mscorefonts-installer fonts-droid fontconfig libcups2 libfontconfig1 libglu1-mesa libice6 libsm6 libxinerama1 libxrender1 libxt6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment