Here are the commands to find out the bucket size in GCP.
gsutil du -s gs://bucket-name/ |
cloud engineer
Here are the commands to find out the bucket size in GCP.
gsutil du -s gs://bucket-name/ |
gsutil du -s gs://bucket-name/
MTU means maximum transmission unit. The default value is 1500 for Ethernet, which is also the standard for the Internet. If your application or network requires a different MTU size, you can set the MTU size by running the following commands.
# Edit ifcfg-eth0 vi /etc/sysconfig/network-scripts/ifcfg-eth0 #Add MTU, settings: MTU="1460" # Save and close the file. Restart networking: service network restart |
# Edit ifcfg-eth0 vi /etc/sysconfig/network-scripts/ifcfg-eth0 #Add MTU, settings: MTU="1460" # Save and close the file. Restart networking: service network restart
Here’s how to get the size of a directory.
du -sh /var/www |
du -sh /var/www
Output:
2.1GB /var/www |
2.1GB /var/www
Size of the directories and files one level down.
du -sh /var/www/* |
du -sh /var/www/*
Sort with biggest files from top to bottom.
du -sh /var/www/* | sort -rh |
du -sh /var/www/* | sort -rh
Top 5 biggest files from top to bottom.
du -sh /var/www/* | sort -rh | head -5 |
du -sh /var/www/* | sort -rh | head -5