Posts

Showing posts from April, 2021

Delete .DS_Store file in OneDrive on Mac

Background This is the "find" command to remove all (including OneDrive) .ds_store in a particular directory. Pay attention to the ".", run the command only at the directory level you would like to search and execute.  Command find . -type f -name '.DS_Store' -exec rm {} \;

Use PHP 7.4 in Hostgator CLI

Login to the shell vim ~/.bashrc add the following in the .bashrc alias php='/opt/cpanel/ea-php74/root/usr/bin/php' export PATH="/opt/cpanel/ea-php74/root/usr/bin:$PATH" source the .bashrc, or do a re-login Reference https://stackoverflow.com/questions/39643805/need-to-run-composer-update-on-ssh-on-hostgator-but-php-v-to-low