Difference between revisions of "Linux"

From www.wiki.chlamdb.ch
Jump to navigation Jump to search
Line 15: Line 15:
 
/etc/group
 
/etc/group
 
<syntaxhighlight>
 
<syntaxhighlight>
 +
 +
<syntaxhighlight lang="Python" line='line'>
 +
def quickSort(arr):
 +
less = []
 +
pivotList = []
 +
more = []
 +
if len(arr) <= 1:
 +
return arr
 +
else:
 +
pass
 +
</syntaxhighlight>

Revision as of 10:07, 9 October 2018

user/groups

create group and add users to the group

sudo groupadd metagenlab

  1. a: append
  2. G: group

sudo usermod -a -G <group> <user>


  • group file conf
 1/etc/group
 2<syntaxhighlight>
 3
 4<syntaxhighlight lang="Python" line='line'>
 5def quickSort(arr):
 6	less = []
 7	pivotList = []
 8	more = []
 9	if len(arr) <= 1:
10		return arr
11	else:
12		pass