Magento 2 useful commands

update DB command

 sudo php -d memory_limit=-1 bin/magento setup:upgrade
 sudo php -d memory_limit=-1  bin/magento setup:db-schema:upgrade 

//deploy static content

sudo php -d memory_limit=-1 bin/magento setup:static-content:deploy -f

// change permissions

sudo chmod -R 777 var pub 

//deply setup content

sudo php -d memory_limit=-1 bin/magento setup:di:compile

//enable/disable module

sudo bin/magento module:disable --clear-static-content Component_Name