09-10-2007
make a find / -type f -exec ls -l {} \;
save to a file, grep for every user in a loop and add the file sizes
sort for size
done
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
When I run top on my machine it says I have 497M swap space in use, and 380M swap space free,
but I have only allocated 512M swap space to the machine!!!!
Does anyone know how swap used is calculated in the top command?
Thanks... (1 Reply)
Discussion started by: chorgan
1 Replies
2. Shell Programming and Scripting
Hi all, I am needing a bash shell script to generate a list of the top 5 users using the most disk space. I am thinking that the du command would be used somehow but I am at a loss. Can anyone help? Thanks! (3 Replies)
Discussion started by: sytemx
3 Replies
3. Shell Programming and Scripting
is it possible from shell utility that we can track top 10 ipaddress from squid access.log who visit facebook.com.
cat /var1/log/squid/access.log | grep "192.168.1.13" | grep "facebook" | wc -l
777
above will find only one (2 Replies)
Discussion started by: learnbash
2 Replies
4. Shell Programming and Scripting
For the first 4 users only that are currently logged in output their effective user id.
It's not important the order in which each logged in i just want to have the top 4.
Same question as here...... (0 Replies)
Discussion started by: whyatepies
0 Replies
5. UNIX for Dummies Questions & Answers
For the first 3 users only that are currently logged in output their effective user id.
thank you. (6 Replies)
Discussion started by: whyatepies
6 Replies
6. Red Hat
Hi All,
I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
7. Shell Programming and Scripting
Hi
I'm doing some resilience testing and need to write a script to consume all of the available disk space on a partition and then to free it up again.
This would need to be -
Safe
Dynamic, in that it calculates the free space prior to consuming it.
I might want to go on to consume a... (7 Replies)
Discussion started by: bbq
7 Replies
8. Shell Programming and Scripting
I am trying for a shell script like, if the ram utilization is less than 300M and the load average is more then 4.00 , should take all the top users of memory and CPU utilization through "top" and "ps " command and put under one path. (6 Replies)
Discussion started by: gsiva
6 Replies
9. Shell Programming and Scripting
I want to see top 5 users,who have occupied most amount of disk space in a filesystem.
But not sure how to do it.
I can get the usage for a particular user
find . -user user -type f exec df -h {} \;|awk '{ s = s+$1 } END { print "Total used: ",s }'
But how to get without specifying any user... (6 Replies)
Discussion started by: rka
6 Replies
10. UNIX for Beginners Questions & Answers
Hi Members,
I'm new to unix. Could you help me in solving my issue.
My requirement is I need to pull Top 15 users in every mount. I could able to get the mount level information but I couldn't able to pull the top users in every mount. I see in every mount I could see a lot of nested... (3 Replies)
Discussion started by: UBEE
3 Replies
LEARN ABOUT CENTOS
xcb_change_save_set
xcb_change_save_set(3) XCB Requests xcb_change_save_set(3)
NAME
xcb_change_save_set - Changes a client's save set
SYNOPSIS
#include <xcb/xproto.h>
Request function
xcb_void_cookie_t xcb_change_save_set(xcb_connection_t *conn, uint8_t mode, xcb_window_t window);
REQUEST ARGUMENTS
conn The XCB connection to X11.
mode One of the following values:
XCB_SET_MODE_INSERT
TODO: NOT YET DOCUMENTED.
XCB_SET_MODE_DELETE
TODO: NOT YET DOCUMENTED.
Insert to add the specified window to the save set or Delete to delete it from the save set.
window The window to add or delete to/from your save set.
DESCRIPTION
TODO: explain what the save set is for.
This function either adds or removes the specified window to the client's (your application's) save set.
RETURN VALUE
Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop.
If you want to handle errors directly with xcb_request_check instead, use xcb_change_save_set_checked. See xcb-requests(3) for details.
ERRORS
xcb_window_error_t
The specified window does not exist.
xcb_value_error_t
You specified an invalid mode.
xcb_match_error_t
You created the specified window. This does not make sense, you can only add windows created by other clients to your save set.
SEE ALSO
xcb-requests(3), xcb_reparent_window(3)
AUTHOR
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_change_save_set(3)