The steps to check your current disk-space usage in your home directory in the lab and clean the unnecessary files are given below.
-
Login into the lab console at either https://e.cloudxlab.com/ or https://f.cloudxlab.com/ using your lab userid and password. Detailed instructions to login are given here
-
Run the following command to check the disk-space usage in your home directory:
cd ~
du -sch .[!.]* * |sort -h
-
If the total size reported by the command above is less than 3G (or 3072M), you don’t need to do anything right now, and you can ignore the rest of the steps.
If the size reported by the command above is more than 3G (or 3072M), then you need to delete some files in your home directory in order to reduce your disk usage below 3GB (or else you will not be able to create any new files in the home directory until your disk usage falls below 3GB). -
Before deleting any files, we recommend that you backup your important files offline to your own computer. You can upload and download files between your home directory and your local computer using the program WinSCP on Windows, or the program scp on Mac/Linux.
Detailed instructions to upload and download files are given here -
If your current disk usage is above 3GB, then after backing up your important files to your local computer, you can delete unneeded files from your home directory to reduce your disk usage.
-
To delete files in your home directory use:
rm file-name
-
To delete a directory and ALL of its contents including its subdirectories use:
WARNING: Please be very careful while running this command, it will delete a directory and ALL of its contents including its subdirectories without asking for any confirmation!!!
rm -r directory-name
-
After cleaning out your un-needed files and directories, you can re-check if your disk usage is below 3GB, by again using this command:
cd ~
du -hs