08-10-2012
thx man but i think it's not rational !!
a file with 999 in bytes which can store in only 1 block use 8 blocks ???
1 block for store and 7 blocks reserve for it ????
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi! I ran into a problem with a job I'm running. All it is doing is a "touch" on a filename. However, when I ran the job, it error'd out and got the message 'cannot stat'. When I restarted the job (making no changes) it worked just fine. Anyone know what this means? (1 Reply)
Discussion started by: lgardner
1 Replies
2. UNIX for Advanced & Expert Users
I'm not sure where to post this so I'll try it here.
I'm trying to load a software package to my server and I keep getting a cannot stat error. I'll post the error line below along with my configuartaion line. Can anyone help or point me in the right direction. Thanks!
This is the error.
... (1 Reply)
Discussion started by: Homer Allman
1 Replies
3. UNIX for Advanced & Expert Users
the output of stat command is
Size: 238 Blocks: 8 IO Block: 4096 regular file
Device: 80ah/2058d Inode: 736783 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 500/ gajju) Gid: ( 500/ gajju)
Access: 2008-09-08 20:00:15.000000000 +0530
Modify: 2008-09-08... (6 Replies)
Discussion started by: gajju
6 Replies
4. Programming
From reading various articles on the net, I know stat() is used on files to get things like permissions, sizes etc... As a folder is a special type of file in Unix, I assumed that stat() could work on it as well as any general file.
However, from running my program, perror() reported that the... (3 Replies)
Discussion started by: JamesGoh
3 Replies
5. Shell Programming and Scripting
I'm trying to find .tif files in a directory tree and rename them prior to zipping them and moving them to another dir. this is my code:
cd $TMPPATH
pwd
ctr=0
for i in 'find . -name "*.tif"'
do
let "ctr+=1"
newtifname=$DATEDIR"_"$SEQ"_"$ctr".tif"
mv "$i"... (6 Replies)
Discussion started by: rss0213
6 Replies
6. Shell Programming and Scripting
I have a string with escape differentiators as a result of searching for a file using find. Essentially find returned to my shell variable several absolute paths each ending with the file name and each path/file separated by \n.
Echo recognizes the escape sequence and is able to print the paths... (3 Replies)
Discussion started by: Ebodee
3 Replies
7. Shell Programming and Scripting
If i do ls -l i get the result rwx-rw-r ...... ............... file.
How can i get the result in octal format.
All other output will be the same as ls -l shows.
The rwx-rw-r would be like 755 etc. (7 Replies)
Discussion started by: cola
7 Replies
8. UNIX for Dummies Questions & Answers
i know this command does not exist in solaris. however, i read somewhere on this forum that basically everything the stat command provides in other oses can be obtained in solaris using the ls command.
i've searched the forum for a while now and i cant find the thread. does anyone know about... (1 Reply)
Discussion started by: SkySmart
1 Replies
9. Shell Programming and Scripting
Die to what all operations, the "Modify" and "Change" values of stat output changes for a file.
I found, during editing a file, Change and Modify alters. When chmod'ing Change alters, while Modify doesnot alters. Is there more situations where these changes? (1 Reply)
Discussion started by: anil510
1 Replies
10. Shell Programming and Scripting
Hi All,
I am getting the below error can anyone please help with this?
cp ${AI_SERIAL}/file_name ${AI_SERIAL_ARCH}/${ODATE}_file_name
cp: cannot stat `$AI_SERIAL/FILE_NAME': No such file or directory
+ gzip:$AI_SERIAL_ARCH./$ODATE_FILE_NAME
gzip:$AI_SERIAL_ARCH./$ODATE_FILE_NAME: No such... (2 Replies)
Discussion started by: bhanudhingra
2 Replies
icheck(8) System Manager's Manual icheck(8)
NAME
icheck - File system storage consistency check
SYNOPSIS
/usr/sbin/icheck [-b numbers] [file system]
DESCRIPTION
The icheck command is obsoleted for normal consistency checking by fsck.
The icheck command examines a file system, builds a bit map of used blocks, and compares this bit map against the free map maintained on
the file system. If the file system is not specified, a set of default file systems is checked. The normal output of icheck includes a
report of the following items: The total number of files and the numbers of regular, directory, block special, character special, and fifo
files. The total number of blocks in use and the numbers of single-, double-, and triple-indirect blocks and directory blocks. The number
of free blocks. The number of blocks missing; that is, not in any file or in any free map.
A list of block numbers follows the -b option; whenever any of the named blocks turn up in a file, a diagnostic is produced.
The icheck command is faster if the raw version of the special file is used since it reads the i-list many blocks at a time.
NOTES
Since icheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems. It believes even
preposterous super-blocks and consequently causes a core dump.
DIAGNOSTICS
For duplicate blocks and bad blocks which lie outside the file system, icheck announces the difficulty, the i-number, and the kind of block
involved. If a read error is encountered, the block number of the bad block is printed and icheck considers it to contain zero.
FILES
Specifies the command path.
RELATED INFORMATION
Commands: clri(8), fsck(8), ncheck(8) delim off
icheck(8)