Tag Archives: limit

Archiving with pax

In some cases where there are lots of files to archive, the use of tar with find don’t work because of the many arguments find would present the tar process. Instead of tar, here is a one-liner on how to use pax for archiving: # find . -atime +7 | pax -w | gzip > [...]

Variable sizes in KSH

It looks like the POSIX shell doesn’t support variable sizes greater than 2 Gigabytes. In the following example, the LIMIT variable is of 1 Gbyte, and the VALUE is 4 GBytes. # LIMIT=1073741824 # VALUE=4294967296 # if [ $LIMIT -lt $VALUE ] > then > echo “exceeds limit” > else > echo “passed” > fi [...]

VXFS maximum subdirectory limit

It is not commonly known that VXFS has a “maximum subdirectory limit”, but you may come across this if e.g. you are administering a large archive server. The limit is at 32766, and the only thing you can do about that is to double it: # kctune -s vx_maxlink=65534 Having a VXFS filesystem with millions [...]

Correct usage of ulimit

The “ulimit” and “limit” commands are often built into the shell, but there may exist some binaries with the same name. For example: # /usr/local/bin/bash bash> type ulimit ulimit is a shell builtin bash> which ulimit /usr/bin/ulimit