How to create null files in solaris ?

Answer Posted / murali thangavel

# touch <filename> ----> new empty file will create
# cat /dev/null> <filename> ---> existing file will empty
# > <filename> ---> existing file will empty

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a user increase the number of pseudo-ttys?

677


How can a user login to another system on his network remotely?

652


What are the raid levels in solaris?

655


How can the user in solaris check the status of processes?

644


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






Explain what is multi homed system?

631


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

668


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

1831


What is difference between swap -l & swap -s?

618


Benefits of SMF compared LRC(legacy run control)?

2656


Explain the run levels that are used in solaris10?

613


Explain the types of installations in solaris

668


Explain how to kill a process.

670


What causes the rpc.ttdbserverd process to be cpu bound? How can it be rectified?

623


Explain the difference between pid and ppid with example.

742