commit 9394409235203113bee25c86ec4ea7b96cc0056e parent 1c94fbbcd6c8d662c82ac0434b85fc5c3c634cfd Author: s-p-k <firstname.lastname@example.org> Date: Sat Apr 12 20:13:34 +0300 add unshare.1, swapon.8, swapoff.8 and update df.1 Diffstat:
diff --git a/df.1 b/df.1 @@ -9,7 +9,8 @@ If no arguments are given, df shows all the file systems using 512-byte blocks. .SH OPTIONS .TP -\fB-a\fR Show all file systems including dummy ones. +\fB-a\fR Show all file systems including dummy ones. This is the default +option. .TP \fB-h\fR Not implemented. .TP diff --git a/swapoff.8 b/swapoff.8 @@ -0,0 +1,11 @@ +.TH SWAPOFF 8 ubase-VERSION +.SH NAME +\fBswapoff\fR - disable devices and files for paging and swapping +.SH SYNOPSIS +\fBswapoff\fR [\fB-a\fI device\fR] +.SH DESCRIPTION +\fBswapoff\fR disables swapping on the specified devices and files. +.SH OPTIONS +.TP +\fB-a\fR +Disable swapping on all known swap devices and files as found in /etc/fstab. diff --git a/swapon.8 b/swapon.8 @@ -0,0 +1,19 @@ +.TH SWAPON 8 ubase-VERSION +.SH NAME +\fBswapon\fR - enable devices and files for paging and swapping +.SH SYNOPSIS +\fBswapon\fR [\fB-dp\fR] [\fB-a\fI device\fR] +.SH DESCRIPTION +\fBswapon\fR is used to specify devices on which paging and +swapping are to take place. +.SH OPTIONS +.TP +\fB-d\fR +Discard freed swap pages before they are reused. +.TP +\fB-p\fR +Set higher priority than the default to the new swap area. +.TP +\fB-a\fR +Make all devices marked as ``swap'' in /etc/fstab are made +available, except for those with the ``noauto'' option. diff --git a/unshare.1 b/unshare.1 @@ -0,0 +1,36 @@ +.TH UNSHARE 1 ubase-VERSION +.SH NAME +\fBunshare\fR - run program with some namespaces unshared from parent +.SH SYNOPSIS +\fBunshare\fR [\fB-muinpU\fR] cmd [\fIargs...\fR] +.SH DESCRIPTION +\fBunshare\fR +Unshares the indicated namespaces from the parent process +and then executes the specified program. The namespaces to be unshared are +indicated via options. +.SH OPTIONS +.TP +\fB-m\fR +Unshare the mount namespace, so that the calling process has a private +copy of its namespace which is not shared with any other process. +.TP +\fB-u\fR +Unshare the UTS IPC namespace, so that the calling process has a +private copy of the UTS namespace which is not shared with any other +process. +.TP +\fB-i\fR +Unshare the System V IPC namespace, so that the calling process has a +private copy of the System V IPC namespace which is not shared with +any other process. +.TP +\fB-n\fR +Unshare the network namespace, so that the calling process is moved +into a new network namespace which is not shared with any previously +existing process. +.TP +\fB-p\fR +Create the process in a new PID namespace. +.TP +\fB-U\fR +The process will have a distinct set of UIDs, GIDs and capabilities.