Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Linux only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Linux
How to get the size of a particular file in bytes in unix using command?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
monika gharwal
#1
How to get the size of a particular file in bytes in unix using command?
Oct 13 '10, 09:15 AM
I have used du and find command but it is giving the size of a file in blocks as I need the size in bytes.
ashitpro
Recognized Expert
Contributor
Join Date:
Aug 2007
Posts:
542
#2
Oct 13 '10, 09:22 AM
have you tried 'ls -l' command?
Comment
Post
Cancel
Nepomuk
Recognized Expert
Specialist
Join Date:
Aug 2007
Posts:
3111
#3
Oct 13 '10, 09:48 AM
Or check the
du
manpage and find that the option
-b
or
--bytes
will do the job.
Greetings,
Nepomuk
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment