What is mknod file present in /etc folder in AIX server used for ?


 
Thread Tools Search this Thread
Operating Systems AIX What is mknod file present in /etc folder in AIX server used for ?
# 1  
Old 03-18-2012
What is mknod file present in /etc folder in AIX server used for ?

Hi Guys,
On my AIX server , I have this file "mknod" present in the /etc/ directory. When i try opening it , I dont find
any ascii characters. It shows some encryption/binary format which is not readable. Is it any executable ? what is the
purpose of having this file in etc folder? what if this file is not present ? Request your inputs for the same. Thanks in
advance. Smilie
# 2  
Old 03-18-2012
Well, you could have answered to your question by doing a little:

Code:
ls -l /etc/mknod

It's a link to /usr/sbin/mknod which is a binary executable file. You should not remove the /etc/mknod file as it might be used by other programs or scripts, etc. /etc/mknod gets created by default.
# 3  
Old 03-18-2012
mknod is for example used to create special (asm, voting, ocr) devices for oracle asm. Syntax would be mknod /dev/asm_disk01 c 14 1 where 14 would be the major and 1 the minor number of the disk, the device you created is residing.

Regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX script to replace old date with current date dynamically in multiple files present in a folder

I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server $ cat temp.txt RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
1 Replies

2. AIX

Connect from AIX 5.x to windows Server 2000 Shared Folder

Hi, I followed this procedure in order to mount in AIX a shared folder in windows server 2000. https://www-304.ibm.com/support/docview.wss?uid=isg3T1012550 Ive tested the shared folder from other windows Server, and its fine. What Ive do in AIX is: Logon as root Under /Home/spss/ I... (2 Replies)
Discussion started by: trevian3969
2 Replies

3. Shell Programming and Scripting

Copy one file from a server to a local folder

Hi, Is there a way I can copy a file from a server to a local folder (i.e. My Documents)? can it be done by scp? I tried this but it just rename the file as the folder it has to be transferred at. scp -r name@some_server:/home/user/file.txt 'somehere\home\home_dir' Thanks. (4 Replies)
Discussion started by: erin00
4 Replies

4. Shell Programming and Scripting

How to copy all the contents of a list of files present in a folder to a particular file?

Hi All, I want to copy all the contents of a list of files in a folder to a particular file. i am using following command: cat dir/* >> newFile.txtIt's not working. Could you please help? Thanks, Pranav (3 Replies)
Discussion started by: Pranav Bhasker
3 Replies

5. Shell Programming and Scripting

Copy folder and files from unix server to linux server

We would be migrating unix solaries to Linux redhat. Basically source is unix and target is linux. i would like to copy entire file system unix/source/* to target linux/souce/* but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies

6. Shell Programming and Scripting

how to execute a program present on another server using SFTP in perl

Hi, I want to execute a program which is present on another server. i want to use SFTP in perl, is it possible? how ? thanks. (1 Reply)
Discussion started by: anandgodse
1 Replies

7. UNIX and Linux Applications

Need to copy the latest file from Unix server to Shared folder

Hi All, One job in unix server will generate .csv files daily. I need to copy the latest of these .csv file from the unix server to the shared drive/folder in windows through unix script. My shared folder will look something like W:\some folder(for example). Could any one of you please help... (3 Replies)
Discussion started by: jaya@123
3 Replies

8. Shell Programming and Scripting

How read the name of present folder into a variable???

Dear all, Now I have a bunch of files need to be renamed. For instance, I have ten files in a folder with a name 'olefin', and I would like to change all the ten files name into 'olefin01,olefin02,...,olefin10'. I suppose it can be done with the command 'pwd'. However, the command 'pwd' will... (7 Replies)
Discussion started by: liuzhencc
7 Replies

9. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

10. Shell Programming and Scripting

how to FTP a file from the local folder to unix server

Hi All, please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server. Where as i know the IP for the Unix server. i could do this process by using ftp command. pls help me to write as Shell script. Thanks in advance for all of your answers.:b::b: (3 Replies)
Discussion started by: little_wonder
3 Replies
Login or Register to Ask a Question