How to create a file in unix – 3Minutes: Tutorial
In this video, I have explained how to create, edit, view and save text file using unix terminal.
This video covers the below listed commands
- pwd – present working directory
- cd – change directory
- touch – to create file
- cat – view content of the file
- less – same as cat command, but opens in editor
- mkdir – make or create directory
aryanz_co_in@pop-os:~/dev/folder1$ touch hello.txt aryanz_co_in@pop-os:~/dev/folder1$ vi hello.txt [Edit the file] to save press Esc + :wq (w is for save and q is for quit) aryanz_co_in@pop-os:~/dev/folder1$ cat hello.txt
Keep the learning short, not to waste your precious time.