Solved

Ls-commando

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX    Volume group Auto ON/OFF question 2 105
Linux performance issues with 100% swap usage, etc 15 93
auto mounter on solaris 1 62
Remote Change Dates on AIX Automation 7 63
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.:

825 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