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

DIfferent between swap -l & swap -s

1 Answers  


Explain the difference between svm and vxvm?

0 Answers  


format command is not working. It is showing all disks, but not going to further step. How to resolve that?

2 Answers   IBM,


how to check network card speed ? set it mode(half/full duplex)? ndd -get /dev/hme0 link-speed

1 Answers   Satyam, Wipro,


Discuss the two modes of the vi editor in solaris.

0 Answers  






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

0 Answers  


How can a user login to solaris?

0 Answers  


In solaris RAID half of replicas fails Suppose out of 6 replica 4 got failed -> what will be the impact if system will not come up & if system will not come up how to fix this issue.

1 Answers  


How to check version of NFS?

6 Answers   Satyam, Wipro,


major diffences b/w solars 9 & 10?

10 Answers   Satyam, Wipro,


What are the comman user problems?

2 Answers   Satyam, Wipro,


Hardware and software revision information ? showrev

3 Answers   Satyam, Wipro,


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)