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

Answers were Sorted based on User's Feedback



How do you create a file in UNIX..

Answer / sivasankar.s

$ cat >fruits.txt
apple
orange
grapes
^d (Press control+d)


$ cat fruits.txt
apple
orange
grapes

Is This Answer Correct ?    488 Yes 62 No

How do you create a file in UNIX..

Answer / guest

using touch command
using cat command

Is This Answer Correct ?    188 Yes 22 No

How do you create a file in UNIX..

Answer / c sivakumar

We can create a file by touch command

example: touch success

ls -ltr

-rw-rw-r-- 1 bd 0 Oct 31 09:08 success

Is This Answer Correct ?    199 Yes 53 No

How do you create a file in UNIX..

Answer / manikantan t s

many ways

1) touch <file name>
2) cat > <file name>
then the matters and stop using CTRL+D
3) > <file name>
4) using editors like vi

Is This Answer Correct ?    131 Yes 19 No

How do you create a file in UNIX..

Answer / 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

How do you create a file in UNIX..

Answer / tannu

its so easy there r 2 way
just type 1 way is
$cat > filename
\\here is the text or content u want to write in file
or to exit from file press ctrl+d
2 way is
open unix editor that is vi
just type "vi" and if u give only vi then before exit by
command :wq (u have to give file u want to put after it
command)
and if u give like vi filename then u dont want to give
file name before exit

Is This Answer Correct ?    106 Yes 30 No

How do you create a file in UNIX..

Answer / guest

with cat or touch command....

Is This Answer Correct ?    87 Yes 22 No

How do you create a file in UNIX..

Answer / divya

1.Touch filename
2.cat filename
3.cat >> filename
4.>filename
5.Using vi editor

Is This Answer Correct ?    70 Yes 17 No

How do you create a file in UNIX..

Answer / 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

How do you create a file in UNIX..

Answer / abhishek dilliwal

yeah above are the ways but i have 1 more,

echo "
Here u write contents of file
this is second line of file
" | cat > NewFile

Is This Answer Correct ?    57 Yes 38 No

Post New Answer

More Unix Commands Interview Questions

How do I search for text in vi?

0 Answers  


How to see unused port number in Solaris?

2 Answers   HCL,


how will u execute a file in unix

8 Answers   QA,


How do you create a file in UNIX

36 Answers   Accenture, EMG, Nokia, QA, TD,


what is the use of wild cards?

2 Answers  


Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...

27 Answers   CGI,


What is the use of the tee command?

0 Answers  


Enumerate some of the most commonly used network commands in unix?

0 Answers  


What is the command to find hidden files in the current directory?

0 Answers  


How are UNIX file permissions represented?

1 Answers  


What are file commands?

0 Answers  


Which mode is used for allowing file write,read and append mode?

9 Answers   BitWise, TM,


Categories