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 | 29 | 30 | 31 |
Tags
- NAT
- crontab
- OSPF
- Inter VLAN
- CKA
- Chrony
- tunneling
- eigrpv2
- 장비
- stp
- ACL
- ipv6
- DHCP
- 라우터
- ripng
- GLBP
- vrrp
- 명령어
- ospfv3
- Etherchannel
- OSI 7 layer
- rip
- 헤더
- eigrp
- Redistribute
- 스위치
- Vlan
Archives
- Today
- Total
목록Language/Shell Script (10)
Net Eng
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dgRQdd/btsHVqI9P5I/2AZBaKKj1xnZazRkqE0m91/img.png)
#!/bin/bashUSERLIST=user.listcat $USERLIST | while read UNAME UPASSdo userdel -r $UNAME > /dev/null 2>&1 \ && echo "[ OK ] $UNAME removed." \ || echo "[ FAIL ] $UNAME not removed"done
Language/Shell Script
2024. 6. 8. 22:54
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bZ64Ey/btsHUHrjGPc/0iGcnbQVPsPHEbku9KfYSk/img.png)
#!/bin/bashUSERLIST=user.listcat $USERLIST | while read UNAME UPASSdo useradd $UNAME > /dev/null 2>&1 \ && echo "[ OK ] $UNAME added." \ || echo "[ FAIL ] $UNAME not added" echo $UPASS | passwd --stdin $UNAME > /dev/null 2>&1 \ && echo "[ OK ] $UNAME password changed." \ || echo "[ FAIL ] $UNAME password not changed"done
Language/Shell Script
2024. 6. 8. 22:53