
Answer-first summary for fast verification
Answer: ~/bin
The correct answer is A: ~/bin. This is because Cloud Shell provisions 5 GB of free persistent disk storage mounted as your $HOME directory. This storage does not time out on inactivity and all files stored in your $HOME directory, including ~/bin, persist between sessions. The ~/bin directory is in the default execution path for all users in Cloud Shell, ensuring that any installed utilities remain accessible across sessions.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In the context of using Google Cloud Shell, you have a requirement to install a custom utility that you plan to use in a few weeks. It is important that this utility is stored in a location that persists across sessions and is in the default execution path. Where should you store the file?
A
~/bin
B
Cloud Storage
C
/google/scripts
D
/usr/local/bin