Linux Find Large Files
Posted by Cătălin on Tue, 24 Sep 2013You can easily list all large files along with size, by using the following syntax
You can easily list all large files along with size, by using the following syntax: Search or find big files Linux (50MB) in current directory, enter: $ find . -type f -size +50000k -exec ls -lh...
Read More...code
Mount USB flash in Linux
Posted by Cătălin on Mon, 15 Jul 2013Mount USB flash in Linux
Detecting USB flash: # fdisk -l Creating mount point: mkdir /mnt/usbflash Mount USB flash: mount /dev/sdb1 /mnt/usbflash
Read More...code
Temporarily stopping the X server
Posted by Cătălin on Wed, 10 Jul 2013Temporarily stopping the X server
Close the graphical session by selecting “System -> Logout” in the top menu. Press Ctrl+Alt+F1 This shuts down the X server, and we land in an alphanumerical window. However, the windows manager...
Read More...code
Largest top files on Linux
Posted by Cătălin on Thu, 27 Jun 2013Largest top files on Linux
How do you find the largest top files and directories on a Linux? du -sh * Specific folder: du -a /var | sort -n -r | head -n 20
Read More...code
mySQL password (Mac OS X Lion)
Posted by Cătălin on Fri, 22 Mar 2013mySQL password (Mac OS X Lion)
Setup root password for MySQL: /usr/local/mysql/bin/mysqladmin -u root -p password
Read More...code
Leverage browser caching
Posted by Cătălin on Wed, 27 Feb 2013Leverage browser caching
How to add Expires headers <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year” # Images ExpiresByType image/gif...
Read More...code