09-17-2007
du -k /var | sort -rn | more
Just replace /var with whatever directory you looking for.
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
local.users
local.users(5) SELinux configuration local.users(5)
NAME
local.users - The SELinux local users configuration file
DESCRIPTION
The file contains local user definitions in the form of policy language user statements and is only found on older SELinux systems as it
has been deprecated and replaced by the semange(8) services.
This file is only read by selinux_mkload_policy(3) when SETLOCALDEFS in the SELinux config file (see selinux_config(5)) is set to 1.
selinux_users_path(3) will return the active policy path to the directory where this file is located. The default local users file is:
/etc/selinux/{SELINUXTYPE}/contexts/users/local.users
Where {SELINUXTYPE} is the entry from the selinux configuration file config (see selinux_config(5)).
FILE FORMAT
The file consists of one or more entries terminated with ';', each on a separate line as follows:
user seuser_id roles role_id [[level level] [range range]];
Where:
user
The user keyword.
seuser_id
The SELinux user identifier.
roles
The roles keyword.
role_id
One or more previously declared role identifiers. Multiple role identifiers consist of a space separated list enclosed in
braces '{}'.
level
If MLS/MCS is configured, the level keyword.
level
The users default security level. Note that only the sensitivity component of the level (e.g. s0) is required.
range
If MLS/MCS is configured, the range keyword.
range
The current and clearance levels that the user can run. These are separated by a hyphen '-' as shown in the EXAMPLE section.
EXAMPLE
# ./users/local.users
user test_u roles staff_r level s0 range s0 - s15:c0.c1023;
SEE ALSO
selinux(8), semanage(8), selinux_users_path(3), selinux_config(5), selinux_mkload_policy(3)
Security Enhanced Linux 28-Nov-2011 local.users(5)