Difference between revisions of "Linux"

From www.wiki.chlamdb.ch
Jump to navigation Jump to search
Line 29: Line 29:
 
<syntaxhighlight lang="Bash" line='line'>
 
<syntaxhighlight lang="Bash" line='line'>
 
df -h
 
df -h
 +
</syntaxhighlight>
 +
 +
== Docker ==
 +
 +
* ubuntu network access problem
 +
 +
<syntaxhighlight lang="Bash" line='line'>
 +
sudo mv /etc/resolv.conf{,.bak}
 +
sudo ln -s /etc/resolv.conf /run/systemd/resolve/resolv.conf
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 09:59, 6 November 2018

user/groups

create group and add users to the group

1sudo groupadd metagenlab
2
3# a: append
4# G: group
5sudo usermod -a -G <group> <user>
  • group file conf
1cat /etc/group

HDD

  • liste des disques
1lsblk -io KNAME,TYPE,SIZE,MODEL

utilisation des diques

1df -h

Docker

  • ubuntu network access problem
1sudo mv /etc/resolv.conf{,.bak}
2sudo ln -s /etc/resolv.conf /run/systemd/resolve/resolv.conf