Solved

Ls-commando

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now