Solved

ls command parameters

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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.:
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.

617 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