shell-批量删除用户


#!/bin/bash

#the userdel file
for user in $(seq 1 50)
do
userdel 'student$user'
rm -fr /home/'student$user'
done


你可能感兴趣的:(批量删除用户)