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
How do I find previous commands in unix?
Which unix command to make a new directory?
How does the system know where one command ends and another begins?
hw will u use awk in replacing cahrs and files
What are the dos commands?
What is used to type command?
What is updatedb?
Which unix command lists files/folders in alphabetical order?
Who command in unix operating system?
How can you see the command line history?
What command is used to check the current users?
What is the use of cut command in unix?
Write a command that will display files in the current directory, in a colored, long format.
Explain command to show the space allocation of files?
Is ‘du’ a command? If so, what is its use?