Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ls command parameters

Posted on 2010-08-12
3
Medium Priority
?
980 Views
Last Modified: 2012-06-21
In the command ls -sh, what is the sh telling me?
0
Comment
Question by:xoxomos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:xoxomos
ID: 33421891
Basically if i ls -la, i get
ls -la bb_bb60_stats_indx_file3.dbf
-rw-r-----   1 oracle   oracle   22074630144 Aug 12 09:10 bb_bb60_stats_indx_file3.dbf
and if i ls -sh, i get
ls -sh bb_bb60_stats_indx_file3.dbf 43135584 bb_bb60_stats_indx_file3.dbf

What is the difference in what I am being shown?
0
 
LVL 6

Accepted Solution

by:
jghelfman40 earned 1000 total points
ID: 33422007
-s displays number of blocks used in the file system by each file
-h is human readable (byte, kb, mb, gb, tb, pb)

If you have man pages installed on your system you can run this command and it should tell you what the switches you are asking about mean:

man ls

Open in new window

0
 

Author Closing Comment

by:xoxomos
ID: 33422175
Thanks.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question