05-27-2007
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi guys,
Is there any way to create a file of specified size ..ie...during creation itself u should be able to specify the size of it... (12 Replies)
Discussion started by: deep
12 Replies
2. UNIX for Advanced & Expert Users
Version-Release number of selected component (if applicable):
==================================================================
root@server # cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
root@server # uname -a
Linux server.integrityserver.net... (16 Replies)
Discussion started by: fed.linuxgossip
16 Replies
3. Solaris
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
4. Homework & Coursework Questions
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies
5. Shell Programming and Scripting
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies
6. UNIX for Dummies Questions & Answers
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
7. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
8. Shell Programming and Scripting
Hi All,
We have main directory called "head"
under this we have several sub directories and under these directories we have sub directories.
My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well.
And create... (14 Replies)
Discussion started by: ROCK_PLSQL
14 Replies
9. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
10. Shell Programming and Scripting
In the below I am trying to create a parent directory using the R_2019 line from f1 if what above it is not empty.
I then create sub-directories under each parent if there is a match between $2 of f1 and $2. Inside each sub-folder the matching paths in $3 and $4 in f2are printed. If there is no... (2 Replies)
Discussion started by: cmccabe
2 Replies
mkfs(1M) System Administration Commands mkfs(1M)
NAME
mkfs - construct a file system
SYNOPSIS
mkfs [-F FSType] [generic_options] [-o FSType-specific_options] raw_device_file [operands]
DESCRIPTION
The mkfs utility constructs a file system on the raw_device_file by calling the specific mkfs module indicated by -F FSType.
Note: ufs file systems are normally created with the newfs(1M) command.
generic_options are independent of file system type. FSType-specific_options is a comma-separated list of keyword=value pairs (with no
intervening spaces), which are FSType-specific. raw_device_file specifies the disk partition on which to write the file system. It is
required and must be the first argument following the specific_options (if any). operands are FSType-specific. See the FSType-specific
manual page of mkfs (for example, mkfs_ufs(1M)) for a detailed description.
OPTIONS
The following are the generic options for mkfs:
-F Specify the FSType to be constructed. If -F is not specified, the FSType is determined from /etc/vfstab by matching the
raw_device_file with a vfstab entry, or by consulting the /etc/default/fs file.
-V Echo the complete command line, but do not execute the command. The command line is generated by using the options and arguments
provided and adding to them information derived from /etc/vfstab or /etc/default/fs. This option may be used to verify and vali-
date the command line.
-m Return the command line which was used to create the file system. The file system must already exist. This option provides a means
of determining the command used in constructing the file system.
-o Specify FSType-specific options. See the manual page for the mkfs module specific to the file system type.
USAGE
See largefile(5) for the description of the behavior of mkfs when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
FILES
/etc/default/fs Default file system type. Default values can be set for the following flags in /etc/default/fs. For example:
LOCAL=ufs
LOCAL The default partition for a command if no FSType is specified.
/etc/vfstab List of default parameters for each file system
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
mkfs_ufs(1M), newfs(1M), vfstab(4), attributes(5), largefile(5)
Manual pages for the FSType-specific modules of mkfs.
NOTES
This command might not be supported for all FSTypes.
You can use lofiadm to create a file that appears to a mkfs command as a raw device. You can then use a mkfs command to create a file sys-
tem on that device. See lofiadm(1M) for examples of creating a UFS and a PC (FAT) file system (using mkfs_ufs(1M) and mkfs_pcfs(1M)) on a
device created by lofiadm.
SunOS 5.10 17 Nov 2000 mkfs(1M)