aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/umask.txt
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-18 00:30:50 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-18 00:30:50 +1000
commit4fb2dc3f55f1b55ba9893a7f4a321bb641451539 (patch)
treeaba26881c3e9452b69d5216518909247c0a4508c /doc_src/umask.txt
parent1a5a49dcae3007cc15174557c9ede69188864187 (diff)
Add documentation for umask
darcs-hash:20051017143050-ac50b-0943033514159966b93adcb4073fa52cc8925597.gz
Diffstat (limited to 'doc_src/umask.txt')
-rw-r--r--doc_src/umask.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc_src/umask.txt b/doc_src/umask.txt
new file mode 100644
index 00000000..7995543d
--- /dev/null
+++ b/doc_src/umask.txt
@@ -0,0 +1,21 @@
+
+\section umask umask - Set or get the shells resurce usage limits
+
+\subsection umask-synopsis Synopsis
+<code>umask [OPTIONS] [MASK]</code>
+
+\subsection umask-description Description
+
+With no argument, the current file-creation mask is printed, if an
+argument is specified, it is the new file creation mask.
+
+- <code>-h</code> or <code>--help</code> print this message
+- <code>-S</code> or <code>--symbolic</code> prints the file-creation mask in symbolic form instead of octal form. Use <code>man chmod</code> for more information.
+- <code>-p</code> or <code>--as-command</code> prints any output in a form that may be reused as input
+
+The umask implementation in fish should behave identically to the one in bash.
+
+\subsection umask-example Example
+
+<code>umask 600</code> sets the file creation mask to read and write for the owner and no permissions at all for any other users.
+