How to create null files in solaris ?

Answers were Sorted based on User's Feedback



How to create null files in solaris ?..

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

How to create null files in solaris ?..

Answer / hyma

Using touch command to create null file

Is This Answer Correct ?    10 Yes 4 No

How to create null files in solaris ?..

Answer / sandeep

1.by using touch
2.cat /dev/null>filename

any one can be used

Is This Answer Correct ?    6 Yes 3 No

How to create null files in solaris ?..

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

How to create null files in solaris ?..

Answer / kitchimca

#using touch cmd
Ex:touch <filename>

#using cat cmd
Ex:cat /dev/null > <filename>

Is This Answer Correct ?    6 Yes 3 No

Post New Answer

More Solaris General Interview Questions

What are nis daemons?

0 Answers  


what is coredump & crashdump.what's the difference between these two.

2 Answers   Abasca Resources, Ashtech, Cognizant, HP,


Veritas logging file?

1 Answers   Satyam, Wipro,


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

0 Answers  


how to solve the system hung issue. found that the memory state is free... commands to check and solve the issue

1 Answers  






Tell me how to discover global zone name from local zone?

0 Answers  


command used to synchronize changes done in /etc/passwd to /etc/shadow file?

5 Answers   Satyam, Wipro,


Explain the difference between pid and ppid with example.

0 Answers  


How do you delete tmp files if file system is full becoz of /tmp dir ?

2 Answers   Satyam, Wipro,


what are the daemons running In NIS? how to do u create NIS users and update Maps?

5 Answers   Satyam, Wipro,


how to set default runlevel in solaris.How to set the default Runlevel as INIT-2.

5 Answers   Microland,


How do you remove a swap space?

0 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)