Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- rip
- Chrony
- ospfv3
- crontab
- CKA
- DHCP
- 라우터
- ripng
- ipv6
- eigrp
- Inter VLAN
- Vlan
- 헤더
- GLBP
- 명령어
- NAT
- tunneling
- OSI 7 layer
- 장비
- OSPF
- Redistribute
- eigrpv2
- 스위치
- ACL
- vrrp
- stp
- Etherchannel
Archives
- Today
- Total
Net Eng
userdel.sh 본문
#!/bin/bash
USERLIST=user.list
cat $USERLIST | while read UNAME UPASS
do
userdel -r $UNAME > /dev/null 2>&1 \
&& echo "[ OK ] $UNAME removed." \
|| echo "[ FAIL ] $UNAME not removed"
done'Language > Shell Script' 카테고리의 다른 글
| auto_telnet_ftp.sh (0) | 2024.06.08 |
|---|---|
| check_file.sh (0) | 2024.06.08 |
| auto_reboot.sh (0) | 2024.06.08 |
| user_admin.sh (0) | 2024.06.08 |
| useradd.sh (0) | 2024.06.08 |