How to get the size of a particular file in bytes in unix using command?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monika gharwal

    How to get the size of a particular file in bytes in unix using command?

    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
    • Aug 2007
    • 542

    #2
    have you tried 'ls -l' command?

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      Or check the du manpage and find that the option -b or --bytes will do the job.

      Greetings,
      Nepomuk

      Comment

      Working...