Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 2 : du -sh /var/log, which summarizes directory disk usage human-readably / du -sh /var/log, जो डायरेक्टरी के डिस्क उपयोग का मानव-पठनीय सार देती है

Advertisement

Detailed Solution

सही उत्तर du -sh /var/log, which summarizes directory disk usage human-readably / du -sh /var/log, जो डायरेक्टरी के डिस्क उपयोग का मानव-पठनीय सार देती है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

A junior admin must report how much disk space the /var/log directory tree is consuming, shown in human-readable units like GB and MB. Which command does this correctly? / एक कनिष्ठ प्रशासक को बताना है कि /var/log डायरेक्टरी ट्री कितनी डिस्क जगह ले रही है, GB और MB जैसी मानव-पठनीय इकाइयों में। कौन सी कमांड यह सही करती है?

1.
df -h /var/log, which reports filesystem-level free space / df -h /var/log, जो फ़ाइलसिस्टम-स्तरीय खाली जगह बताती है
2.
du -sh /var/log, which summarizes directory disk usage human-readably / du -sh /var/log, जो डायरेक्टरी के डिस्क उपयोग का मानव-पठनीय सार देती है
3.
ls -lh /var/log, which totals the space of all subdirectories / ls -lh /var/log, जो सभी उपडायरेक्टरियों की जगह का योग करती है
4.
du /var/log, which prints sizes only in human-readable form / du /var/log, जो आकार केवल मानव-पठनीय रूप में छापती है

Correct Answer: du -sh /var/log, which summarizes directory disk usage human-readably / du -sh /var/log, जो डायरेक्टरी के डिस्क उपयोग का मानव-पठनीय सार देती है

du measures directory-tree disk usage and the -s -h flags summarize it in human-readable units; df reports whole filesystems and ls lists files without totaling directory trees. / du डायरेक्टरी-ट्री के डिस्क उपयोग को मापता है और -s -h फ़्लैग इसे मानव-पठनीय इकाइयों में सारांशित करते हैं; df पूरे फ़ाइलसिस्टम बताता है और ls डायरेक्टरी ट्री का योग नहीं करती।

Downloaded from PrepSnap (prepsnap.in)