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

Explain how to kill a process.

756


How can a user login to solaris? What is the login shell?

727


How to solve the system hang issue. Found that the memory state is free, commands to check and solve the issue?

793


Explain custom jumpstart procedure?

2684


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

2801


List out a few performance monitoring tools.

712


What are nfs daemons?

770


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

760


How to view shared memory statistics?

728


How to login to a remote host with solaris secure shell?

712


Tell me how to set the path for core file?

724


What do you understand by mail aliases?

724


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

1848


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

758


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

730