Solved

Ls-commando

Posted on 2004-03-22
6
378 Views
Last Modified: 2010-04-21
Hi,

My rootfile system is 100% full (I cleande it yetserday to 82% and now it is full again).

How  can I do an ls-commando where i see

the files in order of last use or in order of last modification over all the subdirectories under the root.


I tried ls -xlt | more

But it don't give me the sybddirectories.
Thanks for quick answer
Nicky

0
Comment
Question by:haezeban
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 50 total points
ID: 10647410
Use find to do the job.

eg, find all the files (modify for the last 2 days)

find /dirname -mtime -2 -print

delete all the core files in your system (login/su as root)
find / -type f -name core -exec rm {} \;

man find
to learn more

also ckeck all the log dir/tmp dirs

/var/log
/var/adm/log
/tmp
/usr/tmp

0
 
LVL 62

Expert Comment

by:gheist
ID: 10651910
another pass:
look at
$ df -k
output
if you do not see separate pfilesystem for /var and /tmp - the logs are filling your / filesystem
What to do? - Find spare space (unpartitioned) and add 1G /var and 1G /tmp or so, if this is not possible, consider this for next time you install same operating system.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10652938
ls -ltR|more
0
 
LVL 6

Expert Comment

by:danths
ID: 10909929
Watch out for those syslogs in /var/log
wtmpx in /var/adm
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question