How do I save and create a file in Ubuntu?
Answer
Open a terminal and type the following command to create a file called foo.txt:
Answer
Open a terminal and type the following command to create a file called foo.txt:
- > foo.txt.
- touch foo.txt. To verify your file, enter:
- ls -l foo.txt cat foo.txt. Example – Create a text file. …
- cat > bar.txt. Add text or lines: This is a test. …
- ls -l bar.txt cat bar.txt. RSS feed ➔ Weekly email newsletter ➔