Displays the contents of Hey.txt.
Hey.txt
cat Hey.txt
Creates or overwrites Hey.txt with the text Hello.
Hello
Appends Hello again again to the end of Hey.txt.
Hello again again
The touch command is used to quickly create empty files, update timestamps of existing files, or check if a file exists in scripts.
touch
The command gedit hello.txt opens the file hello.txt in the Gedit text editor, allowing you to view or edit its contents in a graphical interface.
gedit hello.txt
hello.txt
The command nano hello.txt opens the file hello.txt in the Nano text editor, allowing you to edit it directly in the terminal.
nano hello.txt
Last updated 9 months ago
echo "Hello" > Hey.txt
echo "Hello again again" >> Hey.txt
touch hello.txt