Complete the code to show disk usage of the current directory.
du [1] .The -h option shows sizes in a human-readable format like KB, MB.
Complete the code to show only the total disk usage of the current directory.
du [1] .The -s option summarizes the total size of the directory.
Fix the error in the code to show disk usage in human-readable format for /var directory.
du -h [1]The absolute path /var is needed to correctly specify the directory.
Fill both blanks to show disk usage of /home directory in human-readable format and summarize only total size.
du [1] [2] /home
Use -h for human-readable sizes and -s to summarize total size.
Fill all three blanks to create a dictionary comprehension that maps each subdirectory in /tmp to its size in human-readable format, only if size is greater than 100K.
sizes = [1]: subprocess.check_output(['du', '-h', '-s', f'/tmp/[2]']).decode().split()[0] for [3] in os.listdir('/tmp') if int(subprocess.check_output(['du', '-s', f'/tmp/[2]']).decode().split()[0]) > 100}
Use the same variable d for key and value construction and iteration.