01-06-2011
c = character special file (device)
b = block special file (device)
The first character is not a permissions but rather describes the type of file
This User Gave Thanks to Scrutinizer For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am using Korn Shell HP UNIX and i am writing my scripts with filename extension as ksh or sh ..
I want to know what is the difference if i am giving ksh and sh
Other thing when we execute the shell script either we make it as executable and run directly else we give '.' or 'sh'... (2 Replies)
Discussion started by: ravi.sadani19
2 Replies
2. Shell Programming and Scripting
Hi ,
I need your help to know the exact operation of this following code ..
cat file1 | ux2dos | tr -d ''>>file2
file1 contains only one line : "DTS-PO\SPECTRUM WO 56"
the data contains a META CHAR "\" .. look at the above line.
But , The file2 output contains :... (7 Replies)
Discussion started by: vparunkumar
7 Replies
3. Shell Programming and Scripting
I just now read the doc in https://www.unix.com/tips-tutorials/35535-understanding-unix-timekeeping.html
Need clarification that half of the files in any directory is shown in below pattern in which time stamp pattern is highlighted
And half of the files are shown in different pattern... (2 Replies)
Discussion started by: Sreejith_VK
2 Replies
4. Web Development
:confused:
Hi All,
i am new to unix....so i am not sure whether i am asking the related question with our forum..
My question .....Can anyone explain me about the CGI script
is it something related to Unix or Linux or some other language.
Thanks in advance
Sha (1 Reply)
Discussion started by: Shahul
1 Replies
5. UNIX for Advanced & Expert Users
We are facing problem while executin below script,
cat $PIPE_FILE | imscp - "${LRX_FILE_LOC}" 2>&1 | tee "${LIST_DIR}/${IMSCP_OUT_FILE}" &
sqlplus -s ${REPORTING_CONNECT} <<EOF
whenever sqlerror exit 1 rollback
spool ${PIPE_FILE}
start ${LRX_EXEC_SQL} ${LRX_MDL_RUN_DATE}
spool off
exit... (4 Replies)
Discussion started by: samiks14
4 Replies
6. UNIX for Advanced & Expert Users
Hi All,
I have a file cleanlogs_imgp01_files which has the contents as follows,
cold_log|/opt/elf/cold_spool
get_orion_log|/opt/elf/logs
get_coldFiles_log|/opt/elf/logs
get_coldFiles_TuesToSat_log|/opt/elf/logs
get_coldFiles_MonToSat_log|/opt/elf/logs
And when i execute this, I get the... (1 Reply)
Discussion started by: DevM
1 Replies
7. HP-UX
Hi,
I want to use the "SU" command in script it is asking me to enter the password manually.
pleas the say the syntax of su command in single line that includes username/password. :) (3 Replies)
Discussion started by: vigneshwaran007
3 Replies
8. UNIX for Advanced & Expert Users
Hi AM Using Unix Aix
Used
${CMD} 2> ${ERR}
Dont get what above statement works .
SCRIPT=`basename $0`
ERR=$PWD/$SCRIPT.err
DATE=`date +"%d/%m/%Y"`
CMD=2
${CMD} 2> ${ERR}
if
then
echo "SUCCESS"
else
echo "FAILURE"
fi (1 Reply)
Discussion started by: Venkatesh1
1 Replies
9. Solaris
Hello, I am going to upgrade the Firmware on a T5 Sparc server running Solaris 11.2 and just wanted to clarify a couple of things please.
I have downloaded the Firmware patch P24441083_96, however this says it is based on ILOM 3.2.6. Ive been trying to find the download ilom 3.2.6 but each time... (2 Replies)
Discussion started by: rakeman
2 Replies
10. Shell Programming and Scripting
I have Main.sh script which will call 3 scripts as shown below.
nohup script1.sh &
nohup script2.sh &
nohup script3.sh &
Clarifification:
Is all 3 scripts will be triggered at a time or it will trigger one by one(script1.sh---->script2.sh--->script3.sh)? (1 Reply)
Discussion started by: vamsi.valiveti
1 Replies
MKFS(1M) MKFS(1M)
NAME
mkfs - construct a file system
SYNOPSIS
/etc/mkfs special proto
DESCRIPTION
Mkfs constructs a file system by writing on the special file special according to the directions found in the prototype file proto. The
prototype file contains tokens separated by spaces or new lines. The first token is the name of a file to be copied onto block zero as the
bootstrap program, see bproc(8). The second token is a number specifying the size of the created file system. Typically it will be the
number of blocks on the device, perhaps diminished by space for swapping. The next token is the number of i-nodes in the i-list. The next
set of tokens comprise the specification for the root file. File specifications consist of tokens giving the mode, the user-id, the group
id, and the initial contents of the file. The syntax of the contents field depends on the mode.
The mode token for a file is a 6 character string. The first character specifies the type of the file. (The characters -bcd specify regu-
lar, block special, character special and directory files respectively.) The second character of the type is either u or - to specify set-
user-id mode or not. The third is g or - for the set-group-id mode. The rest of the mode is a three digit octal number giving the owner,
group, and other read, write, execute permissions, see chmod(1).
Two decimal number tokens come after the mode; they specify the user and group ID's of the owner of the file.
If the file is a regular file, the next token is a pathname whence the contents and size are copied.
If the file is a block or character special file, two decimal number tokens follow which give the major and minor device numbers.
If the file is a directory, mkfs makes the entries . and .. and then reads a list of names and (recursively) file specifications for the
entries in the directory. The scan is terminated with the token $.
If the prototype file cannot be opened and its name consists of a string of digits, mkfs builds a file system with a single empty directory
on it. The size of the file system is the value of proto interpreted as a decimal number. The number of i-nodes is calculated as a func-
tion of the filsystem size. The boot program is left uninitialized.
A sample prototype specification follows:
/usr/mdec/uboot
4872 55
d--777 3 1
usr d--777 3 1
sh ---755 3 1 /bin/sh
ken d--755 6 1
$
b0 b--644 3 1 0 0
c0 c--644 3 1 0 0
$
$
SEE ALSO
filsys(5), dir(5), bproc(8)
BUGS
There should be some way to specify links.
MKFS(1M)