Articles & Snippets

Search for content...
/

Start typing to search

Linux Find Large Files

Posted by Cătălin on Tue, 24 Sep 2013

You 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 2013

Mount 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 2013

Temporarily 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 2013

Largest 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

Leverage browser caching

Posted by Cătălin on Wed, 27 Feb 2013

Leverage 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