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

Discuss the two modes of the vi editor in solaris.

538


How can a user login to solaris?

574


What are the raid levels in solaris?

572


How many run levels are there and what are they?

523


Explain the difference between pid and ppid with example.

645






How do you remove a swap space?

552


Tell me how to mount the floppy & cd-rom?

537


How can the output be redirected to some other action process in place showing it in the screen?

574


In solaris 10 root Disk is 98% full what steps to be taken?

1674


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

537


Explain the difference between sc> and lom>?

543


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

2627


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

573


how to add your own run control script in server?

571


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

583