Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Preventing Visual Studio Code to consume your quota in the $HOME file system

Excerpt

Home is often used by a variety of programs use store configuration files and directories along with some cached information. These directories can contain many files and use up quite a bit of storage. An example is vscode, which stores quite a bit of data within the .vscode-server  directory located in $HOME

...

. This directory can contain upwards of 1000 files and use on the order of 100 MB. This will impact your quota on home. We recommend moving such directories to a "fakeHome" directory in: /software/projects/<project>/<username>

...

/fakeHome. Then generate a symbolic link in $HOME

...

that points to the corresponding directory:

Column
Code Block
languagebash
themeDJango
titleTerminal X. Setting .vscode-server directory out of the HOME directory
$ mkdir -p $MYSOFTWARE/fakeHome
$ mv .vscode-server $MYSOFTWARE/fakeHome             # if .vscode_server already exists in your $HOME 
$ mkdir -p $MYSOFTWARE/fakeHome/.vscode-server       # if 
the directory
.vscode_server does not exist yet in your $HOME
$ cd $HOME
$ ln -s $MYSOFTWARE/fakeHome/.vscode-server          # generate a symbolic link
,
 (make sure you are in $HOME)



Related pages

...