[root@localhost ~]# mkdir -p /tmp/test
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
Lucky Boy
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
Lucky Boy
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
[root@localhost ~]# ls /tmp/test
ls: cannot access '/tmp/test': No such file or directory
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
Lucky Boy
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
Lucky Boy
[root@localhost ~]# [ $[$RANDOM % 6] == 0 ] && sudo rm -rf /tmp/test || echo "Lucky Boy"
[root@localhost ~]# ls /tmp/test
ls: cannot access '/tmp/test': No such file or directory
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/11676/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2023-1-16 11:12
评论列表