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 / lafir gk

touch:- This can be used to create a file with size 0 and
to change the time stamp of a file.

cat:- This can be used to display the content of a
file,concatinate etc.

Ex :
# cat Example.txt
AIX
HPUX
SOLARIS
LINUX

touch command changes the modified date and time of the
file.

before use touch command
#ls -ltr
-rw-r--r-- 1 s file1 02 Nov 29 19:24 Example.txt

# touch Example.txt

#ls -ltr
-rw-r--r-- 1 s file1 02 Nov 29 19:43 Example.txt

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is used to type command?

1008


What is the difference between cat and more command?

1225


Which command is used to find whether the system is 32 bit or 64 bit?

1075


What command will change your prompt to myprompt?

1251


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

1013


How to find $ai_serual resolved path by using unix

1638


What are the dos commands?

1195


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

1091


What command is used to switching between users in unix?

1026


Describe the zip/unzip command using gzip.

1099


What is s and g in sed command?

1058


What is the command to compare two files in unix?

1053


What is the command to view process running?

1068


How do I clear my terminal history?

1090


What is command substitution?

1266