Solved

Ls-commando

Posted on 2004-03-22
6
376 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

Technology Partners: 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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

756 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