- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Easy points for all...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 11:28 PM
10-09-2001 11:28 PM
Excuse me but I can't "find"
files with some size.:(
I type below:
#find . -size c1000000
and get:
./.dt/sessions/current/dt.session
./.dt/Trash/files.err
./.dt/.Printers/Hardcopy_Print
./.dt/.Printers/Line_Print
./.dt/.Printers/List_Print
./.dt/.Printers/OnlineB_Print
./.dt/.Printers/Postscript_Print
./.dt/.Printers/Printer1_Print
./.dt/.Printers/Printer2_Print
Where is a mistake?
(I need to find files with some size)
Thanx in advance. Oleg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 11:32 PM
10-09-2001 11:32 PM
Re: Easy points for all...
find . -size +1000000c -exec ls -l {} \;
Will do it.
Change size to suit.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 11:42 PM
10-09-2001 11:42 PM
Re: Easy points for all...
try this:
find . -size +1000000c | xargs ll
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 11:56 PM
10-09-2001 11:56 PM
Re: Easy points for all...
Sorri but in case:
#find . -size +1000000c -exec ls -l {} \;
I got nothing. :(
In case:
#find . -size +1000000c | xargs ll
I got list of files of folder with sizes. Size - any.
Whats up?
Thanx.Oleg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 11:57 PM
10-09-2001 11:57 PM
Re: Easy points for all...
Sorri but in case:
#find . -size +1000000c -exec ls -l {} \;
I got nothing. :(
In case:
#find . -size +1000000c | xargs ll
I got list of files of folder with sizes. Size - any.
Whats up?
Thanx.Oleg
P.S. Sorry what in "databases"...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 12:12 AM
10-10-2001 12:12 AM
Re: Easy points for all...
This indicates that you have no files greater than 1000000 bytes within your current directory.
Don't forget to use "xargs ll -d", NOT "xargs ll". Try reducing the number down if you want to see some output.
find . -size +500000c | xargs ll -d
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 12:13 AM
10-10-2001 12:13 AM
Re: Easy points for all...
when you do:
find . -size +1000000
it searches for files greater then 1000000 Bytes (1MB)
If you only whant to list files not dirs use:
find . -type f -size +1000000c
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 02:05 AM
10-10-2001 02:05 AM
Re: Easy points for all...
It is a shame to me...
I has mixed "/- root folder" - and ". - current folder" and I found files with sizes >1 Mb where isnt.
Excuse me. ITS WORK!!
Thanx all.
But I'm interesting - what to do command:
find . -size +1000000c -exec ls -l {} \;
Oleg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 02:10 AM
10-10-2001 02:10 AM
Re: Easy points for all...
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 02:51 AM
10-10-2001 02:51 AM
Re: Easy points for all...
One point to remember. When you ask find to process a lot of files, the "xargs" method is a lot more efficient, because it will collect the filenames as multiple arguments within one command (or as many as will fit per line). "-exec" will spawn one process per file.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 05:37 AM
10-10-2001 05:37 AM
Re: Easy points for all...
du -kx . | sort -rn > /tmp/du.root
Now the largest directories will be at the top. Note that the root filesystem must have only 3 big directories: /sbin /etc /dev. Any other big directory is in the wrong place and must be moved. And /dev should be less than 100, typically less than 50. If it is very large, there is a mistake, usually a misspelled device file such as /dev/rmt/om rather than 0m.
Now / may be your root's $HOME directory in which case, root's home may contain a lot of unnecessary files. To make things easier to identify and to remove the possibility of a mistake using rm, move root's $HOME to another directory, perhaps /root.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2001 07:21 PM
10-15-2001 07:21 PM
Re: Easy points for all...
Excuse me for small points - your message was useful and late answer - my internet traffic has been low. :(
How I can "to compensate" it?
Oleg