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 is the difference between Touch & cat command

Answer Posted / sricharan

touch:
It can be used to create 0 byte empty file.
syntax: touch filename.txt
we can create multiple file using touch command.
syntax: touch file1.txt file2.txt file3.txt ..... filen.txt
touch commnad is also used to update time stamp
Syntax:touch filename

cat:
It can be use to view the file.
Syntax:cat filename
It can be use to append the existing file.
syntax: cat >> filename
It can be use to concatinate n number of files to one file.
syntax: cat file1 file2 file3 file4 >> newfile
cat is also used to create a file
syntax: cat filename

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nr in awk command?

1203


Can you explain a little bit about command substitution?

1116


What is unix command line?

1256


Explain ‘library functions’ with respect to unix commands?

1175


How do you grep a case insensitive?

1048


What does grep v grep do?

1077


What is the comma to show the space allocation of files?

1090


What is .sh file?

1185


Differentiate cat command from more command.

1151


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1226


What is the difference between grep and grep?

1135


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

1215


What is used to type command?

1062


What is ‘ps’ command for?

1184


What is the nmap command?

1186