Contact us

Print

Using Touch

The touch command can be used to create ordinary files. You will create “ file11, file12, file21, and file22 “ in the folders created above.

To use touch


1. Change directory i.e. “cd” to folder1 and create file11


[root@localhost folder1]# touch file11


2. While still in folder1 create “file12”


[root@localhost folder1]# touch file12

3. Now return to root’s home directory.

4. cd to folder2 and create “file21” and “file22”


[root@localhost folder2]# touch file21 file22


5. Return to root’s home directory.


Created by: system. Last Modification: Wednesday 26 of November, 2008 19:13:48 EST by wale.

...