file size info


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting file size info
# 1  
Old 05-04-2009
file size info

Hello.
I can't figure out how to see file size info here.
Can someone comment on this ?

Code:
bash-3.2$ uname -a
HP-UX fms-a B.11.31 U ia64 1717699127 unlimited-user license
bash-3.2$ pwd
/u01/app/oracle/oradata/fms
bash-3.2$ ls -l fms_tools_1.dbf
lrwxr-xr-x   1 root       sys             21 Dec 28 01:59 fms_tools_1.dbf -> /dev/rdisk/disk115_p2
bash-3.2$ cd /dev/rdisk/
bash-3.2$ pwd
/dev/rdisk
bash-3.2$ ls -l disk115_p2
crw-r-----   1 oracle     dba         23 0x0000d6 May  4 09:49 disk115_p2

# 2  
Old 05-04-2009
Quote:
Originally Posted by tonijel
Hello.
I can't figure out how to see file size info here.
Can someone comment on this ?

Code:
bash-3.2$ uname -a
HP-UX fms-a B.11.31 U ia64 1717699127 unlimited-user license
bash-3.2$ pwd
/u01/app/oracle/oradata/fms
bash-3.2$ ls -l fms_tools_1.dbf
lrwxr-xr-x   1 root       sys             21 Dec 28 01:59 fms_tools_1.dbf -> /dev/rdisk/disk115_p2
bash-3.2$ cd /dev/rdisk/
bash-3.2$ pwd
/dev/rdisk
bash-3.2$ ls -l disk115_p2
crw-r-----   1 oracle     dba         23 0x0000d6 May  4 09:49 disk115_p2

The highlighted text is the size of the file.

cheers,
Devaraj Takhellambam
# 3  
Old 05-04-2009
Quote:
Originally Posted by devtakh
The highlighted text is the size of the file.

cheers,
Devaraj Takhellambam
sorry ,
are that numbers 21 and 23 ?
If so, in what isze units are expresed ?
And why they are not in bytes as usual ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

2. Programming

[c] How to calculate size of the file from size of the buffer?

Hi, Can I find size of the file from size of the buffer written? nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie); Thank You :) (1 Reply)
Discussion started by: ezee
1 Replies

3. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

4. Shell Programming and Scripting

File size and dir size

How to use 'df' only to get the 'Available' space for a specific dir, and then compare with a specific file size using stat -c %s file.txt to see if the file actually can be copied into the dir. Is there any quick way to see if a file can fit into a dir? (4 Replies)
Discussion started by: Emilywu
4 Replies

5. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

6. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

7. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

8. Shell Programming and Scripting

find with file size and show the size

Hi All... is the below command be modified in sucha way that i can get the file size along with the name and path of the file the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also.. find / -name "*.*" -size +100000k ... (3 Replies)
Discussion started by: rpraharaj84
3 Replies

9. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

10. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies
Login or Register to Ask a Question