From a715e0fa36f53115501102655bff7b61baf38d37 Mon Sep 17 00:00:00 2001 From: saikumar <159767386+saikumar-pujari@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:36:21 +0530 Subject: [PATCH] Add newFile.txt with file creation commands --- modifying-file-permissions/newFile.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modifying-file-permissions/newFile.txt b/modifying-file-permissions/newFile.txt index e69de29..08b0a81 100644 --- a/modifying-file-permissions/newFile.txt +++ b/modifying-file-permissions/newFile.txt @@ -0,0 +1,15 @@ +#touch creates a new empty file +touch filename.txt + +# Using the output redirection operator (>) also creates an empty file. If the file already exists, it will be truncated (emptied) before being written to. +>filename.txt + +# echo command:This method creates a file with content, using redirection. The string will be written to the file. +echo 'Hello World!' >filename.txt + +#Cat:This command is typically used to display file content, but can also create a file and accept multi-line input. +cat > filename.txt +# Type your content here. +# Press CTRL + D when you are done to save and exit. + +