Explore Courses Blog Tutorials Interview Questions
0 votes
in Linux by (18.4k points)

I am using the below commands to create the 0B file and set its extn to 644

touch filename.ext

chmod 777 filename.txt

I want to know whether there is any command in Unix that will do the 2 things together that is to say create a 0B fil with desired permission?

1 Answer

0 votes
by (36.8k points)

Use the below code:

install -m 777 /dev/null filename.txt

Want to be a Linux expert? Come and join this Linux course


Related questions

Browse Categories