How to create null files in solaris ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / kitchimca
#using touch cmd
Ex:touch <filename>
#using cat cmd
Ex:cat /dev/null > <filename>
Is This Answer Correct ? | 6 Yes | 3 No |
What are nis daemons?
what is coredump & crashdump.what's the difference between these two.
2 Answers Abasca Resources, Ashtech, Cognizant, HP,
Veritas logging file?
What can be a reason for the solaris system slowing down? How can it be rectified?
how to solve the system hung issue. found that the memory state is free... commands to check and solve the issue
Tell me how to discover global zone name from local zone?
command used to synchronize changes done in /etc/passwd to /etc/shadow file?
Explain the difference between pid and ppid with example.
How do you delete tmp files if file system is full becoz of /tmp dir ?
what are the daemons running In NIS? how to do u create NIS users and update Maps?
how to set default runlevel in solaris.How to set the default Runlevel as INIT-2.
How do you remove a swap space?