Are you running any kind of Bash script that may cause this behavior? When you refer to Cloud Shell, do you mean the tool that comes included with the Google Cloud Console or other CLI tool? Cloud Shell only provisions 5 GB of persistent disk storage mounted as your $HOME directory on the instance.
If you are working over a Google Compute Engine, it also would be helpful to know it and its related settings.