8 lines
		
	
	
		
			138 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			138 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| echo Top 10 directory space hogs
 | |
| set DIR="$1"
 | |
| if [ -z $DIR ]; then
 | |
|     set DIR = "."
 | |
| fi 
 | |
| du -k $DIR | sort -n -r | head -n 10
 |