adspace
Answer Posted / Manoj Kumar Pal
"To create a new file in Unix, you can use the touch command:
`touch filename`nThis will create a new empty file named 'filename'. If 'filename' already exists, it will be overwritten unless it has write permissions denied. To create an empty file with specific permissions, you can use the following command:
`touch -c -m -u username filename && chmod 644 filename`nThis will create a new empty file named 'filename' and change its owner to 'username', and set the permissions to 644 (readable and writable by the owner, read-only for everyone else)."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers