How to create null files in solaris ?

Answer Posted / kumarsaneesh

To make a null file use touch command
eg.

$ touch file_name

use the following to make an existing file empty.

$ :> file_name

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how to solve the system hung issue. Found that the memory state is free, commands to check and solve the issue?

622


Explain what is multi homed system?

631


What can be done to protect the system from overflow exploits?

657


Suppose I have 20 gb free space in my file system but my inode size full. How will I increase or how will I fix this issue?

683


What can be a reason for the solaris system slowing down? How can it be rectified?

668






How can a user access a dos-format disk in solaris?

623


environment? Is it heterogeneous (mix of linux, solaris,other UNIX)?

1831


Explain the vmstat output?

650


What kind of issues you get?

1750


how to add Kernel patch in all systems at a time?

2704


Explain the types of installations in solaris

668


What are nis daemons?

661


How can threads be created in a solaris environment? Write an example

669


Performace degradations in NFSv4 when upgraded from NFSv3? problems with NFS v4?

1859


How can threads be created in a solaris environment?

652