Ahh, yes, the standard find command on HP-UX only accepts blocks (512 Bytes) or bytes as parameters for the size option. The default is blocks so, your 100k would be "-size +200" or "-size +102400c". Also, the "-ls" option doesn't appear to be supported so use "-exec ls {} \;" instead.
Other than that the sort command and head command should accept those parameters so the command should work.
I am bit unclear of how Linux was set in the real world, please advise me how it's supposed to be.
When I log in as root and do a ls -l, I find: /boot, /, /var, /usr, /tmp, /home, /u01, /u02, /u03 and of of this partition is owned by root and the group also belong to root. Is that the way it's... (1 Reply)
hello
I search a script (ksh for Aix 5.3) to save all permissions, groups and owner for all files. Because we work much to change it, and a mystake ......!
So i want execute this script to save/ execute permissions for all files.
If you have this script, thank you for your help ;)
best... (2 Replies)
hi all,
i need to capture all the files in a directory and its subdirectories that have owner name different than the root owner.
for one file it is " stat -c %U filename " but i need to search for each and every file and record it.
thanks in advance (14 Replies)
Hi all,
We have some files are under 744 permissions and the the owner is say owner1 and group1.
Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that.
... (14 Replies)
If I have to identify the group owner of an AIX group, what is the command to be used. Example: there is an mqadm group, how do I find the owner of this group?
Please help. (6 Replies)
Dears
it is normal that the below binaries stay without any owner and group
I have checked it in many servers and the like the below
/usr/lpp/bos.net/inst_root/etc/ipsec# ls -lrt
total 248
-r-xr-xr-x 1 987 987 13589 Jun 29 2005 default_group
-r-xr-xr-x ... (5 Replies)
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
I am searchingfor files owned by particular owner and group in a particular directory including its sub-directories. I use
find <dir> -user <user> -group <group> -exec ls -l {} \;
It does not work completely. In the sense is a subdirectory is owned by 'user' and group 'group' then all... (9 Replies)
I want to add a condition is my find command to include files/sub-directory whose owner or group is all numeric number.
My current find command is
find . \( -user root -o -user soham\) -type f -exec ls -l {} \; 2>&1
---------- Post updated at 10:20 AM ---------- Previous update was at... (5 Replies)
Discussion started by: Soham
5 Replies
LEARN ABOUT SUNOS
quot
quot(1M) System Administration Commands quot(1M)NAME
quot - summarize file system ownership
SYNOPSIS
quot [-acfhnv] filesystem...
quot -a [-cfhnv]
DESCRIPTION
quot displays the number of blocks (1024 bytes) in the named filesystem (one or more) currently owned by each user. There is a limit of
2048 blocks. Files larger than this will be counted as a 2048 block file, but the total block count will be correct.
OPTIONS
The following options are supported:
-a Generate a report for all mounted file systems.
-c Display three columns giving a file size in blocks, the number of files of that size, and a cumulative total of blocks containing
files of that size or a smaller size.
-f Display three columns giving, for each user, the number of blocks owned, the count of number of files, and the user name. This
option is incompatible with the -c and -v options.
-h Estimate the number of blocks in the file. This does not account for files with holes in them.
-n Attach names to the list of files read from standard input. quot -n cannot be used alone, because it expects data from standard
input. For example, the pipeline
ncheck myfilesystem | sort +0n | quot -n myfilesystem
will produce a list of all files and their owners. This option is incompatible with all other options.
-v In addition to the default output, display three columns containing the number of blocks not accessed in the last 30, 60, and 90
days.
OPERANDS
filesystem mount-point of the filesystem(s) being checked
USAGE
See largefile(5) for the description of the behavior of quot when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
EXIT STATUS
0 Successful operation.
32 Error condition (bad or missing argument, bad path, or other error).
FILES
/etc/mnttab Lists mounted file systems.
/etc/passwd Used to obtain user names
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO du(1), mnttab(4), passwd(4), attributes(5), largefile(5)NOTES
This command can only be used by the super-user.
SunOS 5.10 30 May 2001 quot(1M)