du -s *.txt
Title
Question
du -s *.txt, this command gives the file size in which format?
Linux Basics-of-System-Administration 11-12 min 40-50 sec
Answers:
du -s format display only a total size of a file without KB, MB, GB.
The best way is to use du -sh format to get a display size like 1K 234M 2G.
We use 'h' parameter for human-readable format (e.g., 1K 234M 2G)
Login to add comment