Linux Commands Examples

A great documentation place for Linux commands

kpsestat

compute octal mode from mode of existing file


see also : chmod

Synopsis

kpsestat mode file


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
mkdir "./$pathcomp" || { errstatus=$?; break; }
chmod `kpsestat ${MT_APPEND_MASK} "$pathcomp"/..` "./$pathcomp"
0
source
            
mkdir "./$pathcomp" || { errstatus=$?; break; }
chmod `kpsestat ${MT_APPEND_MASK} "$pathcomp"/..` "./$pathcomp"
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus

description

kpsestat prints the octal permission of file modified according to mode on standard output. The mode parameter accepts a subset of the symbolic permissions accepted by chmod(1). Use = as the mode to obtain the unchanged permissions.

options

kpsestat accepts the following options:

--help

Print help message and exit.

--version

Print version information and exit.


see also

chmod .

How can this site be more helpful to YOU ?


give  feedback