Mac Linux Check the capacity directly under a specific directory

Purpose

--Introduce a command to check the capacity directly under a specific directory in a Bash execution environment such as Mac or Linux as a memo.

Implementation environment

--Hardware environment

item information
OS macOS Catalina(10.15.5)
hardware MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
Processor 2 GHz quad core Intel Core i5
memory 32 GB 3733 MHz LPDDR4
Graphics Intel Iris Plus Graphics 1536 MB

Introduction

  1. The command to check the capacity directly under the specified directory is described below.

    $ du -sh Directory path you want to check
    

Recommended Posts

Mac Linux Check the capacity directly under a specific directory
[Linux] Directory under the root
It's a Mac. What is the Linux command Linux?
Check capacity on Linux
Avoiding the pitfalls of using a Mac (for Linux users?)
File access under the directory
Display the signal strength RSSI of a specific SSID (mac)
[Golang] Check if a specific character string is included in the character string
Run all unittests under a directory
For Windows: Get a list of directories and files under a specific directory.
Display the signal strength RSSI of a specific SSID (raspberry pi (linux))
Replace the directory name and the file name in the directory together with a Linux command.
Get the filename of a directory (glob)
Import by directly specifying the directory path
How to access the contents of a Linux disk on a Mac (but read-only)