I notice that there is a tmp folder in my home folder, which is ~/tmp. Apparently it is functioned as the /tmp in other distros. Now I want to move it to RAM so that I can get more use of my 4GB RAM and clean the content in there every reboot.
I already added a line of tmpfs /dev/shm tmpfs defaults 0 0 in /etc/fstab according to my previous Bald Bricks Bodacious Bacon setting but it doesn't help.
I tried to create a link of ~/tmp to /tmp, but there is already a folder named tmp in home folder so never succeeded.
What should I do?
Many of us have /tmp
in RAM. So if ~/tmp
is a link to /tmp
, both /tmp
will be in RAM.
To get /tmp into ram you need the line
none /tmp tmpfs defaults 0 0
. Its created automatically if you check "Clean /tmp at each boot" in PCC.
If you add it manually, remember to empty /tmp
before you reboot (or everything in /tmp will remain on your hard drive but hidden under the tmp in RAM).
If you wish to make ~/tmp
a symbolic link to /tmp
, first check that it isn't a link already; if it isn't, remove your existing ~/tmp
and, as your normal user, create the link with the command
ln -s /tmp ~/tmp
or by drag and drop in Konqueror or Dolphin.