• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

size

GCP Bucket Size

March 26, 2020

Here are the commands to find out the bucket size in GCP.

gsutil du -s gs://bucket-name/

gsutil du -s gs://bucket-name/

Filed Under: Cloud Tagged With: bucket, gcp, size

Change MTU Size

November 26, 2019

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

Filed Under: Cloud, Linux Tagged With: mtu, network, size

Get Directory Size

September 7, 2019

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

Filed Under: Linux Tagged With: directory, linux, size

MacOS Custom Launchpad

February 28, 2019

Are the icons too big in MacOS Launchpad? You can customize them. Here are the commands.

# change the launchpad icon size by changing the columns and rows
defaults write com.apple.dock springboard-columns -int 10
defaults write com.apple.dock springboard-rows -int 10
killall Dock
# reset the launchpd
defaults write com.apple.dock ResetLaunchPad -bool TRUE
killall Dock
# reset to defaults
defaults delete com.apple.dock springboard-columns 
defaults delete com.apple.dock springboard-rows
killall Dock

# change the launchpad icon size by changing the columns and rows defaults write com.apple.dock springboard-columns -int 10 defaults write com.apple.dock springboard-rows -int 10 killall Dock # reset the launchpd defaults write com.apple.dock ResetLaunchPad -bool TRUE killall Dock # reset to defaults defaults delete com.apple.dock springboard-columns defaults delete com.apple.dock springboard-rows killall Dock

Filed Under: Mac Tagged With: custom, icon, lauchpad, size

  • Home
  • About
  • Archives

Copyright © 2023