![]() To complete the steps in this article, you just need a Linux system. Sooner or later you’ll run into a situation where you want to obtain the size of a directory on the server and you’ll wonder: How do I use the Linux command line to get the size of this particular directory? This article explains exactly that: How to get the size of a directory using the Linux command line, while working in the terminal. When performing server administration tasks, you typically open up your terminal program, SSH into the server and you work remotely on the command line. These statistics shows you the huge adoption Linux has in the server world. A whopping 90% of all cloud server infrastructure runs on Linux.Only 2% of all desktop operating systems worldwide run Linux.So why would you want to know how to get the directory size using the Linux command line? Why use the terminal if you can use a graphical user interface application? Some 2021 Linux statistics to consider: It presents you with a dialog, listing the number of files in the directory and the total size of the directory: Next, right-click the directory of interest and select something along the lines of Properties from the pop-up menu. Just open up your desktop environment’s file manager: Nautilus on GNOME, Dolphin on KDE, Thunar on XFCE, Nemo on Cinnamon and Caja on Mate. When you run Linux on your desktop PC, you can easily obtain the size of everything inside a directory. ![]() This article explains who to get the size of a directory using the Linux command line, while working in the terminal. For example, when interacting with a server over SSH. ![]() When working on the command line in the terminal, it’s a different story. Right-click the directory and select Properties from the pop-up menu. With the help of your desktop environment’s file manager, you can easily obtain the size of a directory’s contents. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |