侧边栏壁纸
  • 累计撰写 99 篇文章
  • 累计创建 54 个标签
  • 累计收到 1 条评论

目 录CONTENT

文章目录

Finding File Size in Debian

FlyingEagle
2023-04-25 / 0 评论 / 0 点赞 / 23 阅读 / 653 字

Finding File Size in Debian

Message From You:

how to find the file size bigger than 1G in debian?

Message From ChatGPT:

You can use the find command to search for files larger than 1 gigabyte in size. Open a terminal and enter the following command:

sudo find / -type f -size +1G -exec ls -lh {} \; 2>/dev/null

This command searches the entire system (starting at the root directory “/”) for files that are larger than 1 gigabyte in size (-size +1G) and then uses the ls command to display the file name, size, and path information (-exec ls -lh {} 😉. The “2>/dev/null” part of the command redirects any error messages to /dev/null so they are not displayed on the screen.

Note: This command may take some time to run depending on the size of your system and the number of files it contains.

0

评论区