Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「stat」を使用して、ディレクトリ A 内のすべての使用可能なスペースを確認したいと考えています。次に、「du」を使用してディレクトリ B のサイズを確認し、ディレクトリ A に十分な空き容量がある場合は、B を A にコピーします。
問題は、出力を同じ形式 (ノード、バイトなど) で返すために、「stat」コマンドと「du」コマンドにどの引数を渡す必要があるかということです。