-
Notifications
You must be signed in to change notification settings - Fork 0
55 Linux常用命令及场景
Jinxin Chen edited this page Jan 26, 2019
·
2 revisions
55 Linux常用命令及场景
dir=$(dirname $0)
echo $dir
curl ${url} | tar -xz -C ./tmp/
find . -name mysql-*.jar -exec cp {} /destination/ \;
# 添加用户,自动创建主目录,密码等
adduser [username]
# 删除用户
userdel [username]
# 添加用户到组
usermod -aG [groupname] [username]
# 切换用户登录
su [username]
# 使用user的 public key 登录
ssh-keygen
cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys