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

$cat > file.c, on executing this commnd, teh user is
required to manually terminate the execution of this
process, since cat command is expecting the input parameter
to read, but unable to locate so and also for the file.c,
the file et truncated.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / madhavareddy

cat is used to view the content of the file .

if we have file name like file.c having data
214
215
216.

if we want to see the data give the command cat file.c.

if we want to over write the data in file.c give command
like

cat > file.c
219 (give ctl+D)

now if we want to see the data give
cat file.c
219

Is This Answer Correct ?    1 Yes 0 No

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

Answer / nirupam

If $cat is command then it will give an error. Otherwise it
will owerwrite the existing file i.e. file.c

Is This Answer Correct ?    1 Yes 1 No

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

Answer / koti

it will create the file with file.c name and at the same time
sdd some data in this file.it means we can file with data.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / hari

see the data for the file.file is current directory.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / maruthi

This is called as purging. we generally use to clear the
contents of the file. The time stamp of the file would not
change. Hence still it would be the current log and the
qouta level of that super user would decrease.

==> It would clear the contents of the file

Is This Answer Correct ?    0 Yes 0 No

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

Answer / amudha

$cat > file.c
$cat is like a normal variable. since this variable is not
defined elsewhere it will not give any o/p.
In this part ">file.c" will create a new empty
file , 'file.c' in the current time stamp

Is This Answer Correct ?    7 Yes 9 No

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

Answer / lavanya

it depends on setting of environmental variable

Is This Answer Correct ?    5 Yes 22 No

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

Answer / visu_kvg

it will show an error becuse here $cat will not work like
narmal cat command.$cat is not a command it is a variable
which should be defined prevously according to that the o/p
will depend.

Is This Answer Correct ?    10 Yes 35 No

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

Answer / guest

display the content of the file

Is This Answer Correct ?    4 Yes 44 No

Post New Answer

More Unix Commands Interview Questions

What is Unix, and how does it differ from other operating systems?

2 Answers  


How do you remove a directory?

1 Answers  


in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?

6 Answers  


Which command is used to delete all files in the current directory and all its sub-directories?

0 Answers  


What is the difference between pipe and xargs?

2 Answers   Amazon, CTS,


What is “chmod” command?

0 Answers  


Who command in unix operating system?

0 Answers  


By using which command we can find the CPU utilization time?

7 Answers   Amazon,


How can you see the command line history?

0 Answers  


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


Does cp command overwrite files?

0 Answers  


How to get the last ten lines of a file using awk utility?

1 Answers   Infosys,


Categories