Solved

ls command parameters

Posted on 2010-08-12
3
947 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

751 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