Solved

ls command parameters

Posted on 2010-08-12
3
911 Views
Last Modified: 2012-06-21
In the command ls -sh, what is the sh telling me?
0
Comment
Question by:xoxomos
  • 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now