Hello, can you please help me writing a command that would output the biggest files on my system from biggest to smallest? I want this to print only the files, not the directories.
I have tried
However, this also prints out all the directories - which I do not want.
Hello,
I would like to list the files from all directories that has been modified more than 1 month ago, and whose name is like '*risk*log'.
I think a script like this should work :
ls -R | find -name '*risk*.log' -mtime 30 -type f
But it tells me "no file found" though I can see some.
... (4 Replies)
hi all,
is there any way how i can output the top 10-30 biggest files for all filesystem?
using du -sh * is quite tedious since i have to move from 1 directory at a time.
thanks (3 Replies)
I want to count how many levels there are under a directory. I repeat level.
Also how i count only all the files in a directoy ( all files of all directories of all leves down!)
and how can i count only all the directories under a directory (including subdirectories, all levels down)
... (2 Replies)
Hi!
I'm using Unix HP
I'm looking for a command which find the 20 (less or more) biggest files on / but which exclude every other files system
Thanks;) (7 Replies)
Hi
I am looking for the correct syntax to find all files in the current directory without listing sub-directoris. I was using the following command, but it still returns subdirectoris and files inside them:
$ ls -laR | grep -v ^./
Any idea? Thanks
PS I am in ksh88 (4 Replies)
Hi,
Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.
I tried 'ls -FR' but that display files as... (3 Replies)
Hi,
I try to list all files in a folder, including all the subdirs (and their subdirs) and all files contained in each of these folders. I then print it to a simple txt file.
I use ls -R -1 >test.txt
This sort of does what I need, yet, the result is something like:
It reasonably comes... (53 Replies)
I want to search a server beginning at /home and list directories with more than X files
I found a hack that injects tons of files into a directory
How can I search the server recursively and list directories with more than X files?
Thank you!
like,
find /home (directories, that meet the... (5 Replies)
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Hi everyone
My issue is this, I need to list all the sub directories in a directory that contains files that have the extension *.log, *.dat and *.out . After reviewing the output i need to delete those directories i do not need. I am running Solaris 10 in a bash shell. I have a script that I... (2 Replies)
Discussion started by: jsabo40
2 Replies
LEARN ABOUT ULTRIX
uuclean
uuclean(8c)uuclean(8c)Name
uuclean - uucp spool directory clean-up
Syntax
uuclean -p[pre] [ options ... ]
Description
The command scans the spool directory for files with the specified prefix and deletes all those which are older than the specified number
of hours.
The -ppre argument causes the command to scan for files with pre as the file prefix. You can specify up to 10 arguments. A without any
pre following causes all files older than the specified time to be deleted. You must specify at least one argument.
Options-ntime Delete all files whose age is more than time, in hours, (default is 72 hours) and that have the specified pre as their file
prefix.
-m Send mail to the owner of the file when it is deleted.
-ssystem Delete files in all directories that are subdirectories of the per system spool directory that exists for system. If ALL is
specified, then all system directories are processed. ALL is the default.
-ddirectory Delete files that reside in the named directory. The default directory is The option over rides the option.
The command typically starts the program. In earlier versions, a deleted work file (C.file) would result in mail to the owner of the work
file, regardless of the option. Now, notification of deleted work files is sent to the user ID "uucp". If the option is used, mail is
also sent to the owner.
Examples
Here are some example command lines:
# uuclean -pLTMP. -pLOG. -n4 -d/usr/spool/uucp
# uuclean -d/usr/spool/uucp/.XQTDIR -p -n
# uuclean -smarkie -p -n84
The third example deletes all files for the system that are older than 84 hours.
Files
Directory with commands used by uuclean internally
See Alsouucp(1c), uux(1c), cron(8)uuclean(8c)