03-28-2011
On UFS file system check available inodes with: df -F ufs -o i
Check file system type with : df -n
This User Gave Thanks to petervg For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can any one tell me how to know the free space in perticular folder in unix.
size in bytes/MB.
thanks in adv.
spandu (7 Replies)
Discussion started by: spandu
7 Replies
2. Shell Programming and Scripting
Hello All,
I am getting error while passing a folder name that has space to the cmd line argument.
sh log_delete2.sh "/home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A RM"
log_delete2.sh: line 17: cd: /home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A:... (3 Replies)
Discussion started by: pulkit
3 Replies
3. Shell Programming and Scripting
hi
my folder name is below
FTP_DIR="/DATA/TEMP/PA Mthly and Qrty files"
But when i am using the varaible in my ftp shel script i am getting the error
'/DATA/TEMP/VA: The system cannot find the path specified
please advice.
thanks in advance
sam (2 Replies)
Discussion started by: sam99
2 Replies
4. UNIX for Advanced & Expert Users
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies
5. Shell Programming and Scripting
A solaris server with SAMBA share folder. The PC users created many folders with space on it, I want to find them out, but not list its subfolders.
For example, I have below folders
Copy of ABC/efg/xy
sa/Test again/xyt
If I use command: find . -type d |grep " " I will list 6 folders, but... (2 Replies)
Discussion started by: rdcwayx
2 Replies
6. Shell Programming and Scripting
how to find a job which is writing a big file and eating up space? (3 Replies)
Discussion started by: rush2andy
3 Replies
7. Shell Programming and Scripting
I'm working on my little Script that writes two pieces of data at a time, with different variables, vendor and alias, to a file. I can't seem to figure out how to separate them with a space, tab, or some other kind of separator so I can read them individually from the file at a later time. Can... (3 Replies)
Discussion started by: Straitsfan
3 Replies
8. Shell Programming and Scripting
I have a script which generates env setup xml file by reading path.It read the path and checks if there is any file/dir present recurseively.
If a file is found under sub directory then it will read the file and the values from the file are passed to generate xml format.
Problem is if i have a... (0 Replies)
Discussion started by: Optimus81
0 Replies
9. HP-UX
Hi,
What are the correct parameters to list folders size in MBs under a particular directory in HP-UX ?
I know and commands but cannot get the output of folder sizes in MBs. (4 Replies)
Discussion started by: mohtashims
4 Replies
10. Shell Programming and Scripting
I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies
LEARN ABOUT FREEBSD
cgread
CGREAD(3) BSD Library Functions Manual CGREAD(3)
NAME
cgread, cgread1, cgwrite1 -- read/write cylinder groups of UFS disks
LIBRARY
UFS File System Access Library (libufs, -lufs)
SYNOPSIS
#include <sys/param.h>
#include <sys/mount.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
#include <libufs.h>
int
cgread(struct uufsd *disk);
int
cgread1(struct uufsd *disk, int c);
int
cgwrite1(struct uufsd *disk, int c);
DESCRIPTION
The cgread() and cgread1() functions provide cylinder group reads for libufs(3) consumers. The cgread1() function reads from one cylinder
group, specified by c into the d_cg field of a userland UFS disk structure. It sets the d_lcg field to the cylinder group number c.
The cgread() function operates on sequential cylinder groups. Calling the cgread() function is equivalent to calling cgread1() with a cylin-
der group specifier equivalent to the value of the current d_ccg field, and then incrementing the d_ccg field.
The cgwrite1() function stores cylinder group specified by c from d_cg field of a userland UFS disk structure on disk.
RETURN VALUES
Both functions return 0 if there are no more cylinder groups to read, 1 if there are more cylinder groups, and -1 on error.
ERRORS
The function cgread() may fail and set errno for any of the errors specified for the library function bread(3).
The function cgread1() has semantically identical failure conditions to those of cgread().
The function cgwrite1() may fail and set errno for any of the errors specified for the library function bwrite(3).
SEE ALSO
bread(3), bwrite(3), libufs(3)
HISTORY
These functions first appeared as part of libufs(3) in FreeBSD 5.1.
AUTHORS
Juli Mallett <jmallett@FreeBSD.org>
BSD
June 4, 2003 BSD