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

solaris booting process.

4 Answers   HCL, Satyam, Wipro,


What does ssh?

2 Answers   Satyam, Wipro,


in solaris 10 nfs4 version is using ..in that any new daemons are available or not

2 Answers  


Veritas logging file?

1 Answers   Satyam, Wipro,


How to create diskgroup in veritas?

2 Answers   Satyam, Wipro,






How to reset root password if root password is gone?

1 Answers   Satyam, Wipro,


How to check whether a particular port is open or not?

2 Answers   Satyam, Wipro,


what is the difference between svm and vxvm

4 Answers   Infosys, Tech Mahindra, VxVM,


1.Have you used vxboot ? 2.Minimum requirement for mirror volume to created ?

0 Answers   Wipro,


They have user like aa with home dir /export/home/aa. They want to change home dir to /export/home/bb & username remains same. User files in /export/home/aa moved to bb? What do u do?

1 Answers   Satyam, Wipro,


What are the raid levels in solaris?

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  


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)