Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you create a file in UNIX

Answer Posted / suchitra

cat > filename
this will create a file adn allows you to enter text and
to come out of the file,press ctrl+d.Then teh file will be
created.

touch command can also be used to create file.but this will
create empty file.

using Vi editor also the files can be created.

and few more editor like "ed" can also be used.
hence there are many ways to create a file in unix.

Is This Answer Correct ?    97 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which unix command lists files/folders in alphabetical order?

1691


What are file commands?

1187


What do chmod, chown, chgrp commands do?

1237


What does grep v grep do?

1046


Explain ‘system calls’ with respect to unix commands?

1059


Which command is used to create a directory?

1113


What is the function of grep command in unix?

1123


What are some command words?

1102


What is grep r?

1050


Write a command to display a file’s contents in various formats?

1171


What do know about tee command?

1123


How does shebang work?

1026


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

2193


What is the difference between awk and grep?

1172


Using unix command how to display no of records in oracle?

1133