Skip to content

Commit e9a668d

Browse files
committed
changed from rm to mv when making link from scratch to home
1 parent 8ea7c76 commit e9a668d

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

docs/hpc/03_storage/05_best_practices.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,19 @@ As mentioned elsewhere in our documentation, a problem we often see for our user
4141

4242
Our recommended fix for this is to make a directory for these files in your `/scratch` directory and then make a symbolic link in your `/home` that points to the one you just created in `/scratch`. This allows these applications to write to what appears to be your `/home` directory, but is actually stored in your `/scratch` directory. This can be accomplished with the following commands:
4343

44-
:::warning
45-
The first part of the following commands will remove the contents of the dot directory in your `${HOME}` directory. Be sure to copy anything you'd like to save from that directory before executing.
46-
:::
47-
4844
For VSCode:
4945
```bash
50-
rm -rf ${HOME}/.vscode-server && mkdir -p ${SCRATCH}/vscode-server && ln -s ${SCRATCH}/vscode-server ${HOME}/.vscode-server
46+
mv ${HOME}/.vscode-server ${SCRATCH}/.vscode-server && ln -s ${SCRATCH}/.vscode-server ${HOME}/.vscode-server
5147
```
5248

5349
For Cursor:
5450
```bash
55-
rm -rf ${HOME}/.cursor-server && mkdir -p ${SCRATCH}/cursor-server && ln -s ${SCRATCH}/cursor-server ${HOME}/.cursor-server
51+
mv ${HOME}/.cursor-server ${SCRATCH}/.cursor-server && ln -s ${SCRATCH}/.cursor-server ${HOME}/.cursor-server
5652
```
5753

5854
For RStudio:
5955
```bash
60-
rm -rf ${HOME}/.local/share/rstudio && mkdir -p ${SCRATCH}/.local/share/rstudio && ln -s ${SCRATCH}/.local/share/rstudio ${HOME}/.local/share/rstudio
56+
mv ${HOME}/.local/share/rstudio ${SCRATCH}/.local/share/rstudio && ln -s ${SCRATCH}/.local/share/rstudio ${HOME}/.local/share/rstudio
6157
```
6258

6359
For details about changing your default RStudio directory please see [User state storage](https://docs.posit.co/ide/server-pro/admin/rstudio_pro_sessions/workspace_management.html#user-state-storage).

0 commit comments

Comments
 (0)