Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for type

January 21, 2020

Determine USB Format Type

Here’s how to determine what type of USB format a thumb drive is in Linux.

  • df -Th (shows the file system type)
  • lsblk (shows the block devices)
  • lsusb (show usb ports and devices)
  • fdisk -l (displays the USB format type)

To display, use “fdisk -l” to display either NTFS, FAT32 or exFAT32.

November 18, 2019

GCP Change Instance Type

Here’s how to change instance types via the command line

# Set Project
gcloud config set project your-project-id
 
# Change instance type to 2 CPU 20GB memory.
gcloud compute instances set-machine-type your-server-name \
--zone us-east1-a \
--machine-type n2-custom-2-20480
 
# Change instance type to original settings.
gcloud compute instances set-machine-type your-server-name \
--zone us-east1-a \
--machine-type n2-custom-2-15360

# Set Project gcloud config set project your-project-id # Change instance type to 2 CPU 20GB memory. gcloud compute instances set-machine-type your-server-name \ --zone us-east1-a \ --machine-type n2-custom-2-20480 # Change instance type to original settings. gcloud compute instances set-machine-type your-server-name \ --zone us-east1-a \ --machine-type n2-custom-2-15360

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021