I needed this command today when my disk ran out of space: sudo rm `sudo find /var/log -name ‘*.log.*’` -f The command will delete every […]
Continue readingCategory: Linux
Linux
Setup Cloudera Manager Parcel Distribution from a Central Repository
Cloudera Manager supports parcels as an alternate form of distribution for CDH and other system packages. Among other benefits, parcels provide a mechanism for upgrading […]
Continue readingTest if a File Exists in Ubuntu and Delete
Use the test command to test if a file exists and delete the file if it exists. Or output a message that the file does […]
Continue readingClean Packages and Get Back Storage in Ubuntu
When I am low on space or I just want to clean house: Clean Packages 1. Update your sources.list sudo apt-get update 2. Clean any […]
Continue readingRepair Packages in Ubuntu
If you run sudo apt-get update and receive an error similar to the following, you may have a newer version of linux-image-server and linux-headers-server than […]
Continue readingRenew DHCP in Ubuntu Linux
I often have to look this up. Release a DHCP lease in Ubuntu with the following command (for the GUI search for gnome-terminal): sudo dhclient -r […]
Continue readingInstall Oracle Java 7 on Ubuntu Linux
The blogger at http://tuxtuts.com saved me a lot of time, thanks! How to: Install Oracle Java 7 (JDK & JRE) in Ubuntu 12.10 and Linux Mint 13 […]
Continue readingDisable IPv6 in Ubuntu Linux
Recently I was asked to disable IPv6 on an Ubuntu Linux server. Here are the steps: Test if IPv6 is enabled: cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0 means […]
Continue readingRename an Ubuntu Linux Server
I had to look this up (I forgot about /etc/hosts): To rename an Ubuntu server (in this case 12.04), SSH to the server and: sudo […]
Continue readingFind string within files on a Linux Server
This is a very useful bit of code, used to search within files on a Linux server. Replace the . after find to search within […]
Continue reading