Important: do read about the access rights on/of your personal (home) directory.
For each account on the computer systems of the Department of Computer Sciences, a private directory is available, in which personal files can be saved.
Your personal (home) directory is mounted as /home/<loginname> on each system of the computerlabs.
These directories are backed up daily, so you can always restore an earlier version of a file or a file that you have deleted by accident. To restore something from backup please contact helpdesk.
You can only save or modify files in your own directory. You might be able to read the personal directory of others, but you cannot modify it. If you want to protect your own directory by prohibiting others to read your directory or files, you use the chmod command. Read then the manual page about it:man chmod. If you use the K Desktop Environment, you can also use the Properties window, which you obtain by clicking with the right mouse button on a file in the K File Manager, and activate the Permissions tab page. Of course, in this way, you can also protect sub directories and/or separate files in your personal directory. You can specify the default access rights with the umask shell command. You can put this command into your login files .cshrc and/or .profile (dependent of your login shell), so it effects each process you start up.
We distribute the total amount of available disk-space among the total number of our accounts. When you need more quota for your practicum or thesis, then you have to ask the assistent who is responsible for the practicum or guides you with your thesis.
You can look up your quota with the quota command.
If you exceed this quota in your home directory, you are informed of this when saving your files and you will receive mails warning about this. You are given some days to delete your files. After this time, you can not log in anymore and you have to ask the helpdesk to delete some files for you, before you can log in.
You can check where exactly your quota is being used for with the commands shown below:
Gnome GUI command: baobab
KDE GUI command: k4dirstat
Command line commands:
check your quota: quota -s
interactive disk usage tool: ncdu ~/
find the largest directories: du -h ~/ | sort -h
list the contents of a directory: ls -la
(including hidden files and sub-directories)
delete a file: rm file-in-question
delete/empty an entire directory: rm -fr directory-in-question
(make sure to check the contents of the directory-in-question first ...
probably with a similar du -sk command as above)
Please do notice that there are hidden files and directories that are not always shown: any file and directory whose name starts with a . (e.g. .m2) needs special flags before you can see it (the -a option with ls, the View Hidden Files in a GUI File Manager, ...)
Some typical directories where often many and/or large files can be found and that can be cleaned up easily are:
- Your Trash:
- You can empty it with the corresponding GUI function
- You can empty it on the command line:
- rm -fr ~/.local/share/Trash/{files,info}/*
- Cache of your browser(s):
- You can empty it with the corresponding GUI function
- You can configure it not to use too much disk quota
- You can empty it on the command line:
- Firefox: rm .cache/mozilla/firefox/*/cache2/entries/*
- Google Chrome: rm .cache/google-chrome/Default/Cache/*
Access to personal directory and files
You can also reach your personal directory and files from other systems than the ones in the computer lab by using the SFTP, SCP or rsync tools. In this way your password (and your files) are encrypted and sent in a non clear-text legible way. Preferably, you do this by means of user friendly SSH/SFTP/SCP client software. With this SSH/SFTP/SCP client, you can connect to a machine in the computer lab, log in with your own account and move your files to the system on which you want to work. You can also put files in your personal directory: the SSH/SFTP/SCP protocol works in both directions: obtain files from the server and save files to it.
The computer lab machines are not accessible from within the Internet directly. You must first connect to a machine within the KU Leuven (e.g. st.cs.kuleuven.be) via ssh and from there connect to the computer lab. This is a two-step procedure via the in-between machine (unless you use a tunnel ... see the ssh documentation).
More information on the use of ssh to access the machines can be found on these pages.
CD-ROM
You can also use the CD-ROM reader on the PCs. Most probably it will be mounted automatically. And most probably you will not be able to eject it as long as some process is still using it (watch out for terminal-processes that have the mounted cd-rom directory as current working directory!). If you don't use the KDE or Gnome desktop environment, you most likely have to mount and un-mount the CD-ROM yourself in the same way as you have to do with USB devices as explained below.
USB Devices
To learn about the use of USB devices (memory sticks etc.) read this page.

