随笔分类 - linux
linux os and command share
摘要:1.首先确定是否安装expect/home/root> which expect/usr/bin/expect如果没有安装,先安装一下安装方法: 请参考http://www.cnblogs.com/daojian/archive/2012/10/10/2718390.htmlyour script:#!/usr/bin/expect -f#!/usr/bin/expect -f set ip 16.235.158.92 set password redhat06 set timeout 5 spawn ssh sqdev8@$ip expect { "*yes/no"
阅读全文
摘要:linux添加新用户使用 useradd -----create a new user or update default new user information删除用户使用userdel -----delete a user account and related filesuseadd options:-c, --comment COMMENT set the GECOS field for the new user account-d, --home-dir HOME_DIR home directory for the new user account-p, --password P
阅读全文