02-18-2006
I'm not a regular BSD user, but this can be done in a shell script using "cut"
look up the man page for "cut" and you should immediately see how you can use it to parse the output of df
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I want to write to my output_file using:
if((fptr = creat(output_file, _S_IWRITE)) == -1)
{
printf("output_file..."..);
return (1);
}
for(...)
{
_write(fptr, buffer, BUF_SIZE);
}
It says "_S_IWRITE" undeclared!!!
Anybody knows what function I can use for that and what I... (3 Replies)
Discussion started by: lacasa
3 Replies
2. UNIX for Dummies Questions & Answers
I am on AOL now,and i am using 56 k,i was gonna install FreeBSD,but i dont know if aol works on BSD,or my modem.
Do they work on BSD? (2 Replies)
Discussion started by: kita
2 Replies
3. UNIX for Dummies Questions & Answers
i am new at unix and am VERY confused about the compression processes. what progs do i need to unzip and zip files? there must be a standard one similar to winzip? (1 Reply)
Discussion started by: Mindscan
1 Replies
4. UNIX for Dummies Questions & Answers
What is FreeBSD, who does use Free? (3 Replies)
Discussion started by: cyberangel
3 Replies
5. BSD
I want someone tell me the positives and negatives points of FreeBSD 5.2.1, if someone help me, i thanks a lot! (4 Replies)
Discussion started by: israel
4 Replies
6. BSD
B]I want the best of the best FreeBSD version for my study in Unix...please sugest me... Thanks (5 Replies)
Discussion started by: israel
5 Replies
7. BSD
I just download the FreeBSD 5.3 i386 iso files. And I have a problem now, I can't copy the 5.3-RELEASE-i386-disc2.iso to the cd, I try a lot of times, even change lots of blank cd to try but still cannot. But I can copy the other three iso files, i.e. 5.3-RELEASE-i386-bootonly.iso,... (4 Replies)
Discussion started by: GarbageKing
4 Replies
8. Programming
Hello there,
My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64.
It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386).
The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies
9. Fedora
I'm using Windows mostly and the only *nix thing I used during my life was cygwin (I like command line :)).
But currently I have (by an occasion) a DVD with latest FreeBSD. I don't know why, but I want to install it...
But probably, this OS is too difficult for a beginner. I heard, it's used on... (3 Replies)
Discussion started by: TeenageWerewolf
3 Replies
LEARN ABOUT FREEBSD
tmpfs
TMPFS(5) BSD File Formats Manual TMPFS(5)
NAME
tmpfs -- efficient memory file system
SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:
options TMPFS
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
tmpfs_load="YES"
DESCRIPTION
The tmpfs driver will permit the FreeBSD kernel to access tmpfs file systems.
OPTIONS
The following options are available when mounting tmpfs file systems:
gid Specifies the group ID of the root inode of the file system. Defaults to the mount point's GID.
uid Specifies the user ID of the root inode of the file system. Defaults to the mount point's UID.
mode Specifies the mode (in octal notation) of the root inode of the file system. Defaults to the mount point's mode.
inodes Specifies the maximum number of nodes available to the file system. If not specified, the file system chooses a reasonable maximum
based on the file system size, which can be limited with the size option.
size Specifies the total file system size in bytes. If zero (the default) or a value larger than SIZE_MAX - PAGE_SIZE is given, the
available amount of memory (including main memory and swap space) will be used.
maxfilesize
Specifies the maximum file size in bytes. Defaults to the maximum possible value.
EXAMPLES
To mount a tmpfs memory file system:
mount -t tmpfs tmpfs /tmp
SEE ALSO
nmount(2), unmount(2), fstab(5), mdmfs(8), mount(8)
HISTORY
The tmpfs driver first appeared in FreeBSD 7.0.
AUTHORS
The tmpfs kernel implementation was written by Julio M. Merino Vidal <jmmv@NetBSD.org> as a Google SoC project.
Rohit Jalan and others ported it from NetBSD to FreeBSD.
This manual page was written by Xin LI <delphij@FreeBSD.org>.
BUGS
Some file system mount time options may not be well-supported.
BSD
April 23, 2012 BSD