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

How many unix commands are there?

1158


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

1259


Is ‘du’ a command? If so, what is its use?

1155


What are the unix commands?

1097


What does this command do? Cat food 1 > kitty

1586


What does the command ' $who | sort –logfile > newfile' do?

1280


Explain command to view process running?

1134


What is the behavioural difference between cmp and diff commands?

1287


Which command can you use to find the currently running process in unix server?

1128


What command is used to switching between users in unix?

1082


Explain ‘library functions’ with respect to unix commands?

1175


What is the command to view process running?

1111


How do you grep a case insensitive?

1050


Which command is used to copy files?

1176


How do I use nslookup?

1097