Unix/Linux Go Back    

CentOS 7.0 - man page for unshare (centos section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

UNSHARE(1)				  User Commands 			       UNSHARE(1)

       unshare - run program with some namespaces unshared from parent

       unshare [options] program [arguments]

       Unshares  specified  namespaces	from  parent process and then executes specified program.
       Unshareable namespaces are:

       mount namespace
	      mounting and unmounting filesystems will not affect rest of the system (CLONE_NEWNS
	      flag),  except  for  filesystems	which  are  explicitly marked as shared (by mount
	      --make-shared). See /proc/self/mountinfo for the shared flags.

       UTS namespace
	      setting hostname, domainname will not  affect  rest  of  the  system  (CLONE_NEWUTS

       IPC namespace
	      process will have independent namespace for System V message queues, semaphore sets
	      and shared memory segments (CLONE_NEWIPC flag).

       network namespace
	      process will have independent IPv4 and IPv6 stacks,  IP  routing	tables,  firewall
	      rules, the /proc/net and /sys/class/net directory trees, sockets etc. (CLONE_NEWNET

       pid namespace
	      children will have a distinct set of pid to process  mappings  than  their  parent.
	      (CLONE_NEWPID flag).

       See the clone(2) for exact semantics of the flags.

       -h, --help
	      Print a help message,

       -m, --mount
	      Unshare the mount namespace,

       -u, --uts
	      Unshare the UTS namespace,

       -i, --ipc
	      Unshare the IPC namespace,

       -n, --net
	      Unshare the network namespace.

       -p, --pid
	      Unshare the pid namespace.

       unshare(2), clone(2)

       None known so far.

       Mikhail Gusarov <dottedmag@dottedmag.net>

       The unshare command is part of the util-linux package and is available from ftp://ftp.ker-

util-linux				   January 2013 			       UNSHARE(1)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 11:30 PM.