---
title: "linux 磁盘空间命令"
author: "sooxin"
date: "2020-03-06T23:39:20Z"
tags: []
categories: ["非技术"]
slug: "linux"
draft: false
lastmod: "2020-03-06T23:59:42Z"
id: 2512853
url: "https://sooxin.iteye.com/blog/2512853"
---

查看硬盘空间
df -h

查看当前目录下文件夹大小
du -sh ./*

查看端口被什么进程占用
netstat -tunlp