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
[email protected]:~/dev/folder1$ touch hello.txt [email protected]:~/dev/folder1$ vi hello.txt [Edit the file] to save press Esc + :wq (w is for save and q is for quit) [email protected]:~/dev/folder1$ cat hello.txt
Keep the learning short, not to waste your precious time.