I would like to know the number of sub-directories created authorized. Do you know what to do to find out?
Asked
Active
Viewed 711 times
0
1 Answers
0
#!/bin/bash
let "limit = 0"
while(true)
do {
let "limit = limit + 1"
mkdir rep && cd rep && echo $limit
}
done

sabayke bremso
- 101
mkdir sub cd sub
loop won't stop creating new subdirectories inside themself, until you kill his execution. Also, avoid to do it, it could corrupt the disk – damadam Jan 08 '20 at 13:42