Skip to content

Instantly share code, notes, and snippets.

@daniyalzade
Last active December 11, 2015 07:19
Show Gist options
  • Save daniyalzade/4565801 to your computer and use it in GitHub Desktop.
Save daniyalzade/4565801 to your computer and use it in GitHub Desktop.
# MySQL get number of rows per table
select TABLE_NAME, TABLE_ROWS, DATA_LENGTH from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'db_name';
# Delete vim files
rm -rf ls -l **/.*.swp
# Find large ( 100MB > ) files
sudo find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment