How do you create a file in UNIX

Answer Posted / punit sharma

There are diffferent ways of crating a file on Unix

1. touch <filename>
2. cat <filename>
3. echo > <filename>
4. > <filename>
5. Using Vi editor


Is This Answer Correct ?    78 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rmdir command?

553


What difference between cmp and diff commands?

722


Which command is used to copy files?

556


What is grep and how do you use it?

576


Describe the usage and functionality of the command rm –r * in unix?

822






Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

622


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

639


Which command is used to restrict incoming messages?

592


What are awk commands?

582


Is ‘du’ a command? If so, what is its use?

637


What are some command words?

562


What does the command ' $who | sort –logfile > newfile' do?

768


What do chmod, chown, chgrp commands do?

638


How does the system know where one command ends and another begins?

1576


What will the following command do?

615