How to create NULL files of specific size in solaris ?

Answers were Sorted based on User's Feedback



How to create NULL files of specific size in solaris ?..

Answer / lawrance

/dev/null > filename

Is This Answer Correct ?    13 Yes 4 No

How to create NULL files of specific size in solaris ?..

Answer / prabakaren

mkfile -size Filename

Eg: mkfile -10m file1

The above command will create a file names file1 which size
is 10 mb.

Is This Answer Correct ?    8 Yes 4 No

How to create NULL files of specific size in solaris ?..

Answer / vvvv

touch <filetname> 'to create null file'

Is This Answer Correct ?    3 Yes 2 No

How to create NULL files of specific size in solaris ?..

Answer / jai

dd if=/dev/null of=file1 bs= count=bs*1024mb

Is This Answer Correct ?    1 Yes 1 No

How to create NULL files of specific size in solaris ?..

Answer / raj

#touch file1
the touch command creates 0byte fiel which means null file
in the above cmd the file1 is a file with a size of 0byte

Is This Answer Correct ?    0 Yes 0 No

How to create NULL files of specific size in solaris ?..

Answer / kannan

/dev/null > filename

Note -Here, filename is which one we need to make as empty.

Is This Answer Correct ?    0 Yes 0 No

How to create NULL files of specific size in solaris ?..

Answer / guest



mkfile -nv 10m sun. sun is a null file created with
10m of size

Is This Answer Correct ?    5 Yes 6 No

How to create NULL files of specific size in solaris ?..

Answer / venkataravi

/div/null >/filename

Is This Answer Correct ?    4 Yes 8 No

How to create NULL files of specific size in solaris ?..

Answer / bhaskar.solaris

????????????????

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More Solaris Commands Interview Questions

How to lock the user id in solaris?

4 Answers  


How to do the disk cloning on solaris

1 Answers  


how do u configure the disk

5 Answers  


How to remove the root mirror

2 Answers  


please post few interview questions ? or any url related to solaris

0 Answers  


What are thing you must ensure to provide security the system

2 Answers  


What is the basic requirement for cluster.

2 Answers   ITC Infotech,


How to configure the virtual ip address

3 Answers  


How to find memory status i.e.. it is full like 100%?

5 Answers   HP,


how to recover root passwd ?

11 Answers   HP,


Which service assign port no dynamically

1 Answers  


Disaster recovery steps if OS corrupted

3 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)