Skip to content Skip सामग्री के लिए


How to determine your free disk space in Linux कैसे Linux में आपका मुक्त डिस्क स्थान निर्धारित करने के लिए

लिनक्स

Although hard drive space is cheap today and we happily throw in a few hundred gigabytes into a server or a desktop, it's amazing how often the disk gets full. हालांकि हार्ड ड्राइव अंतरिक्ष आज सस्ता है और हमें खुशी से एक सर्वर या डेस्कटॉप में कुछ सौ गीगाबाइट में फेंक, यह अद्भुत कितनी बार डिस्क पूर्ण हो जाता है. Here are a few Linux tools to help you see how much of your disk has been eaten up, and what's eating it up, so that you can do something about it before it gets out of hand. यहाँ कुछ लिनक्स उपकरण के लिए मदद से आप देख अपनी डिस्क का कितना खा गया है, और यह क्या खा रहा है उठ रहे हैं, ताकि आप कुछ कर सकते हैं इसके बारे में पहले ही हाथ से निकल जाता है.

The first command we'll look at is the “df” command. पहली कमांड हम में देख लेंगे "लोमो" कमांड है. It comes bundled with all distributions of Linux. यह Linux के सभी वितरण के साथ बंडल आता है. “df” stands for “disk free”. "लोमो" डिस्क "के लिए मुफ्त खड़ा है." It gives you a reading of the state of all your partitions. यह आप सब अपने विभाजन के राज्य के एक पढ़ देता है. It gives you the total disk space, the used space, the space available, and then the percentage of space being used. यह आप कुल डिस्क स्थान प्रदान करता है, इस्तेमाल अंतरिक्ष, अंतरिक्ष उपलब्ध है, और फिर अंतरिक्ष का प्रतिशत उपयोग किया जा रहा.

# df -h # H df -
Filesystem Size Used Avail Use% Mounted on फ़ाइल का आकार लाभ% का प्रयोग करें प्रयुक्त पर घुड़सवार
/dev/sda5 57G 2.4G 52G 5% / / dev/sda5 57G 52G 2.4G 5% /
/dev/sda1 99M 12M 83M 12% /boot / dev/sda1 99M 83M 12M 12% / बूट
/dev/sda2 15G 1.3G 13G 10% /home / dev/sda2 15G 13G 1.3G 10% / घर

The is the kind of reading you can get from df. तुम लोमो से प्राप्त कर सकते हैं पढ़ने की तरह है. In the above example I have used the option “-h” which gives the output in a human-readable format. ऊपर के उदाहरण में मुझे "विकल्प का इस्तेमाल किया है, ज" जो एक मानव पठनीय प्रारूप में आउटपुट देता है. So, instead of showing me the disk space in bytes it uses megabytes and gigabytes which is easier for us to interpret. तो, के बजाय मेरे बाइट्स यह मेगाबाइट और जो आसान है हमारे लिए व्याख्या के लिए उपयोग करता है गीगाबाइट में डिस्क स्थान दिखाने का.

Another command I find a lot of use for is “du”. एक अन्य आदेश के उपयोग के लिए मैं एक बहुत मिल रहा है "DU". “du” stands for “disk usage”. "" के लिए डिस्क उपयोग du "खड़ा है." It can give you a reading of the amount of space a file or folder is using up. यह तुम अंतरिक्ष की राशि का एक पढ़ने एक फ़ाइल या फ़ोल्डर को उपयोग कर रहा है दे सकते हैं. To check the amount of space being consumed by a directory called 'data' use the following command: अंतरिक्ष की राशि एक निर्देशिका का उपयोग किया जा रहा जाँच 'नामक' डेटा निम्न कमांड का उपयोग करें:

# du -sh data # Du-श डेटा
104K data/ 104K डाटा /

For the above command I have used the following options – “-s” which stands for “summarize”, and “h”, which makes the output human-readable. इसके बाद के संस्करण कमान मैं निम्नलिखित विकल्पों के लिए इस्तेमाल किया है - "जो s" "के लिए संक्षिप्त" खड़ा है, और 'ज' है, जो उत्पादन मानव पठनीय बनाता है. You can also use this command to see the details of the files and directories inside a directory. आप भी इस कमांड का प्रयोग कर फाइल और निर्देशिका की निर्देशिका के अंदर विवरण देख सकते हैं. To see the individual and total disk of usage or files and directories inside the “data” directory do the following: करने के लिए "डाटा" निर्देशिका के अंदर उपयोग या फ़ाइलें और निर्देशिका के व्यक्तिगत और कुल डिस्क देखने के बाद:

# du -shc data/* # Du-shc डाटा / *
4.0K data/1log_script.sh 4.0K data/1log_script.sh
64K data/logs_files 64K डाटा / logs_files
4.0K data/generic_script.sh 4.0K डाटा / generic_script.sh
8.0K data/random_script1.sh 8.0K data/random_script1.sh
4.0K data/random_script2.sh 4.0K data/random_script2.sh
4.0K data/random_script3.sh 4.0K data/random_script3.sh
4.0K data/hello_world.sh 4.0K डाटा / hello_world.sh
4.0K data/data_backup.log 4.0K डाटा / data_backup.log
4.0K data/log_backup.log 4.0K डाटा / log_backup.log
100K total 100K कुल

We have added the option “c” to the previously used command. हम विकल्प जोड़ लिया है "पहले इस्तेमाल कमांड में ग '. “c” adds total disk usage at the end. "अंत में सी" कुल डिस्क उपयोग कहते हैं.

Another tool that I use to checkout what's on my disk is the “find” command. एक और उपकरण है कि मैं Checkout क्या मेरी डिस्क पर है फायदा नहीं है "खोज" कमांड. Using find I like to make a list of all the files over a certain size. पता मुझे एक निश्चित आकार में सभी फ़ाइलों की एक सूची का उपयोग करना है. Say I wanted to check to see which files in my '/home' partition are larger than 10 MB, here's what I would use: कहते हैं मैं अपने '/' घर विभाजन हो MB से अधिक 10 में जो फ़ाइलें देखने को देखना चाहता था, यहाँ है कि मैं क्या प्रयोग करेंगे:

# find /home -size +10000k # मिल / घर आकार 10,000 कश्मीर

The command is pretty self-explanatory. कमांड बहुत स्पष्ट है. You can change the “/home” to the directory you want to scan for files, and the “+10000k” to the size of file you want to filter it by. आप बदल सकते हैं "/ घर" निर्देशिका आपको फ़ाइलों के लिए स्कैन करना चाहते हैं, और "द्वारा फ़ाइल आप फ़िल्टर के लिए चाहते हैं के आकार के 10,000 कश्मीर '.

Hope you find these useful. आशा है कि आप इन उपयोगी पाते हैं.

Posted in पोस्ट में Linux लिनक्स . .

Get Simple Help tutorials just like this one in your email inbox every day - for free! बस अपने ईमेल इनबॉक्स के लिए मुफ्त हर दिन - में यह एक तरह सरल सहायता ट्यूटोरियल जाओ! Just enter your email address below: बस नीचे अपना ईमेल पता दर्ज करें:

You can always opt out of this email subscription at any time. तुम हमेशा इस ईमेल सदस्यता से बाहर किसी भी समय विकल्प चुन सकते हैं.

3 Responses 3 जवाब

Stay in touch with the conversation, subscribe to the बातचीत के साथ संपर्क में रहो, की सदस्यता लें RSS feed for comments on this post आरएसएस के इस पोस्ट पर टिप्पणियों के लिए फ़ीड . .

  1. Hamdoon says Hamdoon कहते हैं,

    Hellow, Hellow,
    I'm programmer in developer 6i ,and i have system to develope it but there are some problems.This system designed by developer 6i and required to display hard disk free space for Linux inside text tool. मैं 6i डेवलपर में प्रोग्रामर हूँ, और मैं यह प्रणाली विकसित करने पर कुछ problems.This डेवलपर 6i द्वारा तैयार की व्यवस्था कर रहे हैं और पाठ उपकरण के अंदर लिनक्स के लिए हार्ड डिस्क स्थान मुक्त प्रदर्शन की जरूरत है. So How can i display it . तो मैं कैसे यह प्रदर्शित कर सकते हैं.
    please replay the the solution to my email (hamdon85@yahoo.com)> कृपया फिर से खेलना मेरा ईमेल (hamdon85@yahoo.com) को हल>

    Thanks धन्यवाद
    Hamdoon. Hamdoon.

  2. imtiaz ali इम्तियाज अली says कहते हैं,

    plz tell me how to display free space in linux OS. plz मुझे बताओ कैसे Linux OS में मुफ्त जगह प्रदर्शित करने के लिए. i will wait. मैं इंतज़ार करूँगा.

  3. Shaun शॉन says कहते हैं,

    imatiaz since you if your system uses gnome go to the panel right click and select add to panel. imatiaz के बाद अगर आप अपने सिस्टम का उपयोग करता है सूक्ति पैनल ठीक क्लिक करने के लिए जाओ और पैनल में जोड़ें चुनें. Then on the menu select what I think is called system info then click it on the panel then go to the first tab. फिर पर मेनू का चयन करें जो मुझे लगता है कि सिस्टम जानकारी तो नाम पर क्लिक करें यह पैनल पर तो पहला टैब पर जाना है.



Some HTML is OK कुछ HTML है ठीक है

or, reply to this post via या, इस पोस्ट के माध्यम से जवाब trackback Trackback . .