In this video, I have explained How to create a file in unix?
(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
How to create a file in unix ?
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.
