Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, Iam working on suse linux 10 on x86_64. On my system, i have an application dump file ( usually max in GB) When i try to check the size ...
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    7

    "ls" command issue on file size

    Hi,

    Iam working on suse linux 10 on x86_64.
    On my system, i have an application dump file ( usually max in GB)

    When i try to check the size of the file with ls -lh, it's giving huge size(TB)
    _____________
    *root:/dump> ls -lh core
    -rw------- 1 root root 1.8T Aug 25 10:04 core
    *root:/dump>
    _____________

    But when i try to check with ls -sh, i could able to get in GB's
    _____________
    *root:/dump ls -sh core
    417M core
    *root:/dump>
    _____________

    Also when i try to check with du -h command, i could able to get in GB's
    _____________

    *root:/dump> du -h core
    417M core
    *root:/dump>
    _____________

    So we are not able to judge which command to use to check the file size.
    also why is this difference.

    Thanks in advance.

    By
    Basu

  2. #2
    Just Joined! nareshjethva's Avatar
    Join Date
    Aug 2008
    Location
    Rajkot
    Posts
    92
    try
    # ls -al
    & further reference try
    #man ls

  3. #3
    Just Joined!
    Join Date
    Feb 2006
    Posts
    7
    i tried with "man ls". they have not gievn anything perticular abt that.

    But while displaying the size, it should not be so high differnece.

    your view on this.

    By
    Basu

  4. #4
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    In physics problems, the first thing to check are the units and dimensions. Are all the programs providing the same units: characters, blocks, etc? ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  5. #5
    Just Joined!
    Join Date
    Aug 2008
    Posts
    3
    wat was tat .....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...