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)

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is shebang used?

1134


What is the command to find maximum memory taking process on the server?

1225


What does the “echo” command do?

1161


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1576


What command is used to check the current users?

1136


Is grep faster than awk?

1048


Which unix command lists files/folders in alphabetical order?

1765


What is the unix command to confirm a remote host is alive or not?

1221


What is nr in awk command?

1212


What is updatedb?

1057


What are the dos commands?

1267


What is difference between grep and find command in unix?

1217


What is s and g in sed command?

1120


What is awk good for?

1145


How does shebang work?

1074