Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
in my Slackware's /etc/rc.d/rc.local_shutdown
The command cleans out the entire /tmp directory everytime I shut down the system. It's got its drawbacks and
some people prefer doing it on the startup of the system.
Anyway, having files in /tmp is not a bug, it's a feature. The problem is when for some reason it doesn't
get cleaned regularly. In Slackware it doesn't get cleaned automatically by default. I'm not sure how other
distros (ie. openSuse) approach it.
As to your kdevelop problem, I don't know you could check ~/.kde for some lock files or move temporarily
~/.kde/share/apps/kdevelop and see what happens.
I have followed the post no. 12 solution and rebooted the system, this didn't help
I deleted the /tmp:
Code:
linux-dpjj:/tmp # ls
.ICE-unix .X0-lock .X11-unix .xfsm-ICE-PKFOOV
linux-dpjj:/tmp # rm -rf
linux-dpjj:/tmp # ls
.ICE-unix .X0-lock .X11-unix .xfsm-ICE-PKFOOV
These files reappeared even when I deleted them individually, HELP!!
If home is filling up there's NO point in deleting stuff from
/tmp as it's part of your root file-system.
Identify what's gobbling up space in /home this time, and kill
off large things you don't need anymore.
If I interpreted the "home" bit incorrectly have a look for deleted
files, and see if you're still writing to/reading from a file that
you thought you deleted using lsof ...
If you run SuSE's /etc/sysconfig editor, you can configure it to delete temporary files when you shut down. That will prevent /tmp from containing stale files. You can also configure your system to delete old /tmp files periodically. Or edit /etc/sysconfig/cron manually.
I noticed a large tar backup (myHome.tar) in your HOME directory. Could you move that to an external drive?
If you use KDE, look at using konqueror. It has a View -> View Mode -> File Size View setting that shows graphically how much space is used by directories and files. When KDE 4 was new, I had a bug fill up ~/.xsessionerrors to several Gigs. Using konqueror, I found it quickly.
Whenever I'm looking to clear space out of my home directory I always work to a list showing the size of each file and directory:
Code:
du -a --block-size=M $HOME | sort -nr | less
You can scroll up and down the outputted list using the arrow keys to see everything you have. To exit just hit q. You might wish to open up a second terminal window to do the business of deleting while keeping this one open for referencing.
To see files smallest first knock out the 'r' (reverse) of 'sort -nr'.
But yeah, I agree that tarball sticks out like a sore thumb!
anisha@linux-dpjj:~> du -sm /tmp/*|sort -n
du: cannot access `/tmp/*': No such file or directory
Quote:
Originally Posted by jschiwal
If you run SuSE's /etc/sysconfig editor, you can configure it to delete temporary files when you shut down. That will prevent /tmp from containing stale files. You can also configure your system to delete old /tmp files periodically.
Did you click the link shown in post 12?
I have deleted the tar file!
Code:
anisha@linux-dpjj:~/Desktop> g++ constructor.cpp -Wall -Wextraconstructor.cpp:40: fatal error: error writing to /tmp/ccqrQMkY.s: No space left on device
compilation terminated.
anisha@linux-dpjj:~/Desktop> cd
anisha@linux-dpjj:~> ll
total 156
drwxr-xr-x 2 anisha users 4096 2010-07-20 22:57 bin
drwxr-xr-x 3 anisha users 4096 2010-08-01 19:49 Comics
drwxr-xr-x 8 anisha users 4096 2010-12-26 12:03 cppPrograms
drwxr-xr-x 6 anisha users 12288 2011-01-09 21:10 Desktop
drwxr-xr-x 20 anisha users 4096 2010-12-29 21:50 Documents
-rw-r--r-- 1 anisha users 114896 2010-09-09 22:28 Frm_Reports.aspx
-rw-r--r-- 1 anisha users 2548 2010-08-16 21:49 How to install wireless LAN card
drwxr-xr-x 3 anisha users 4096 2010-08-29 11:45 Photography
drwxr-xr-x 2 anisha users 4096 2010-09-21 23:27 tarballs
anisha@linux-dpjj:~> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 10325748 10307996 0 100% /
udev 1031068 256 1030812 1% /dev
/dev/sda2 41286828 8635888 30553656 23% /home
Last edited by Aquarius_Girl; 01-10-2011 at 09:40 AM.
anisha@linux-dpjj:~> df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda1 10084 10067 0 100% /
udev 1007 1 1007 1% /dev
/dev/sda2 40320 8967 29305 24% /home
anisha@linux-dpjj:~> cd Desktop/
anisha@linux-dpjj:~/Desktop> g++ constructor.cpp -Wall -Wextra
constructor.cpp:40: fatal error: error writing to /tmp/ccSD0AVT.s: No space left on device
compilation terminated.
anisha@linux-dpjj:~/Desktop> su
Password:
linux-dpjj:/home/anisha/Desktop # du -sm /tmp/*|sort -n
du: cannot access `/tmp/*': No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.