Learn how to Read & Write into files in linux Cli

Posted by Moussan



in this chapter we will cover how you can read and write into text files in linux OS like configuration or scripts files



1- Gedit (GUI Editor)


2- Vim (Terminal Editor)


3- Nano (Terminal Editor)



Usage : display text files content in terminal


Usage : display text content as much as the terminal screen area


Usage : display only first 10 lines of file content in terminal


Usage : display only last 10 lines of file content in terminal


Usage : display text content of files as loop every useful in logs files or in debugging


Usage : like more command just display text file content in terminal as much as screen area