Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- dir_count=$(find . -type d |wc -l)
- echo "Directories: $dir_count"
- file_count=$(find . -type f |wc -l)
- echo "Regular Files: $file_count"
- ln_count=$(find . -type l |wc -l)
- echo "Symbolic Links: $ln_count"
- bl_count=$(find . -type b |wc -l)
- echo "Block Devices: $bl_count"
- chr_count=$(find . -type c |wc -l)
- echo "Character Devices: $chr_count"
- fifo_count=$(find . -type p |wc -l)
- echo "Named Pipes: $fifo_count"
- sock_count=$(find . -type s |wc -l)
- echo "Sockets: $sock_count"
Add Comment
Please, Sign In to add comment