Ctyun

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Ubuntu image)
(Ubuntu image)
第2行: 第2行:
  
 
<source lang=bash>
 
<source lang=bash>
# ifconfig
+
# install ifconfig
 
$ apt-get install net-tools
 
$ apt-get install net-tools
  
# sudo
+
# cfg sudo
 
$ visudo    # official editor of /etc/sudoers
 
$ visudo    # official editor of /etc/sudoers
 
# User privilege specification  
 
# User privilege specification  

2023年9月14日 (四) 15:12的版本

Ubuntu image

# install ifconfig
$ apt-get install net-tools

# cfg sudo
$ visudo    # official editor of /etc/sudoers
# User privilege specification 
comcat ALL=(ALL:ALL) NOPASSWD: ALL
jack ALL=/usr/bin/mysql, /usr/bin/mysqldump, /usr/bin/docker, /usr/bin/du, /usr/bin/cp, /usr/bin/ls, /usr/bin/bash
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
$ apt-key fingerprint 0EBFCD88
$ echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable" >> /etc/apt/source.list

$ sudo apt-get install docker-ce docker-ce-cli



个人工具
名字空间

变换
操作
导航
工具箱