Solved

ls command parameters

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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 …
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 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.:

759 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

22 Experts available now in Live!

Get 1:1 Help Now