I hope ls -lah will do the job. This command will give you the size of the file in bytes. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Unix command to check the filesize Ask Question. Asked 7 years, 4 months ago. Active 10 months ago.
Viewed k times. Improve this question. Van Van 1 1 gold badge 4 4 silver badges 10 10 bronze badges. What has become of the good old tradition of reading the manual pages? Add a comment. Active Oldest Votes. Improve this answer. Pushplata 3 3 silver badges 10 10 bronze badges. Please enter at least 3 characters 0 results found.
Abhishek Prakash. Quick tip to display file size in Linux using the ls command. Table of Contents. The du command in Linux is used for checking the size of directory. Here are various ways you can find the size of directory in Linux with the du command. Linux Handbook Abhishek Prakash. Quick tutorial to show you how to find the biggest files on your Linux machine using a few commands that you may already be familiar with du, sort, and head.
Linux Handbook Christopher Murray. Quick Tip. Send login link. Check your inbox and click the link. If you want to display only file names and sizes in kb, mb without any other details, then you can use -sh option with ls command as shown below. In the about output, ls command simply displays file name along with its size in kb, Mb, Gb depending on its size.
Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Toggle navigation. Related posts:. How to Create a Large File in Linux.
0コメント