Search Results

Search: Posts Made By: kilobyter
Forum: Red Hat 08-12-2013
1,964
Posted By Scott
Red Hat 8 is very old, but this works in RHEL 5: ...
Red Hat 8 is very old, but this works in RHEL 5:

https://www.unix.com/302480934-post2.html
Forum: Linux 12-16-2010
5,813
Posted By mark54g
Another option would be to use the script...
Another option would be to use the script "rescan-scsi-bus.sh" which can be downloaded free (gratis) from the internet.
Forum: Linux 12-16-2010
5,813
Posted By Scott
Without knowing too much about your setup, I...
Without knowing too much about your setup, I normally do something like:


for H in /sys/class/scsi_host/*; do
echo "- - -" > /sys/class/scsi_host/$H/scan
done
3,592
Posted By RudiC
Not sure what your OS will allow you to do. You...
Not sure what your OS will allow you to do. You can tryfind . -name file -printf "%u %g %m %f\n"
user group 664 file
find . -name file -ls
260136 4 -rw-rw-r-- 1 user group 169 Aug 12...
3,592
Posted By MadeInGermany
NB -a is default, find . ! -user AAA -a !...
NB -a is default,
find . ! -user AAA -a ! -group BBBis identical with
find . ! -user AAA ! -group BBB--
OS is Solaris (stated in #1).
find . ! \( -user AAA -a -group BBB \) -ls
With the...
3,592
Posted By RudiC
You also can use parentheses (probably escaped)...
You also can use parentheses (probably escaped) to group your tests, like ! \( -user AAA -a -group BBB \)
Reading man pages and some playing around usually helps!
3,592
Posted By rbatte1
Hello and welcome kilobyter, Your question...
Hello and welcome kilobyter,

Your question also needs to clarify what logic do you want?

If you want to exclude files that are both user AAA and group BBB:-find . ! -user AAA -o ! -group BBB...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 10:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy