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...


what will this do $cat > file.c ?(file.c is a file in
current directory)

Answers were Sorted based on User's Feedback



what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / ram

It will allow you to create file.c ( if file.c is
available, it will be overwritten with new data )

Is This Answer Correct ?    73 Yes 6 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / nagarjuna@rvr

the cat command is used to create and append info to the
files. by using the cat>file.c we create the file file.c.
if it is already in the current directory then it erise the
old info and place the new info onto the file file.c.

Is This Answer Correct ?    29 Yes 2 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / manikya girish

if we consider the command as cat > file.c

If we run this command the user gets back the control and he
needs to type something and once done, hit Ctrl+C to come
out of the scope. Whatever you have typed after executing
the command will be there in the file file.c

Is This Answer Correct ?    17 Yes 0 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / pramod krishna

Given file.c is a file in current dirctory.
So the command will remove the existing content and keep
the new content typing

Is This Answer Correct ?    14 Yes 1 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / guest

it will overwrite the contents present in the file.c file

Is This Answer Correct ?    12 Yes 5 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / prakash reddy

if file.c exists in current directory, entire content will
be erased, if it is not present a new file by the name
file.c is created

Is This Answer Correct ?    6 Yes 0 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / bhaskar

it will create a new file

Is This Answer Correct ?    14 Yes 10 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / suvarna

cat >file.c -- wait for input data....
If we type something and press ctrl+d, whatever we typed
would be saved to file.c
else if we press ctrl+c, the file remains unchanged.

Is This Answer Correct ?    5 Yes 1 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / rohit

First of all it is 'cat' command '$' is representing the
shell on which this command will be executed.

After execution of this command the system will expect you
to type in the contents of the file and then press the Ctrl-
d to terminate. The text you typed in will be stored in
file.c file.

Is This Answer Correct ?    4 Yes 0 No

what will this do $cat > file.c ?(file.c is a file in current directory)..

Answer / sudhansu mallick

It will allow you to create file.c ( if file.c is
available, it will be overwritten with new data )

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What is the difference between pipe (|) and tee command in unix

14 Answers   Cap Gemini, TCS,


What does grep v grep do?

0 Answers  


what will this do $cat > file.c ?(file.c is a file in current directory)

20 Answers   IBM,


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


What do know about tee command and its usage?

0 Answers  


How to install scsi driver in unix? give me explanation clearly?

1 Answers   HCL, TCS,


Which is the command used to find out currently executing Process in UNIX?

6 Answers   Amazon,


Why is it called grep?

0 Answers  


how will u execute a file in unix

8 Answers   QA,


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


How to see unused port number in Solaris?

2 Answers   HCL,


Explain how to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


Categories