
losetup | 257
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
size n[k|M]
Rotate logfile when it is greater than n bytes. n can optionally
be followed by k for kilobytes or M for megabytes.
sharedscripts
Run prescript and postscript only once for the session.
start n
Use n as the starting number for rotated logs. Default is 0.
tabooext [+] extlist
Replace taboo extension list with the given extlist.If+ is speci-
fied, add to existing list. The default list is .rpmorig .rpmsave ,v
.swp .rpmnew ~.
weekly
Rotate logfiles if more than a week has passed since their last
rotation.
uncompresscmd command
Use command to uncompress logfiles. Default is gunzip.
look
look [options] string [file]
Search for lines in file (/usr/dict/words by default) that begin with
string.
Options
-a Use alternate dictionary, /usr/dict/web2.
-d Compare only alphanumeric characters.
-f Search is not case-sensitive.
-t character
Stop checking after the first occurrence of character.
losetup
losetup [options] loopdevice [file]
System administration command. Set up and control loop devices.
Attach a loop device to a regular file or block device, detach a loop
device, or query a loop device. A loop device can be used to mount
an image file as if it were a normal device.
Options
-d Detach specified loopdevice.
-e encryption, -E number
Use specified kernel encryption module ...