FG
💻 Software

How to get file/folder size with SSH on linux?

Fresh7 days ago
Mar 15, 2026139532 views
Confidence Score0%
0%

Problem

I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to get file/folder size with SSH on linux?

Low Risk

use the du command

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment