How to
create files in ubuntu, and view the content of files using editors
there are
different types of editors in ubuntu, you can use nano, vi, vim these
editors to view the content of the file
to install
vim do like this
#apt-get
install vim
then this
will be installed
- to create an empty file#touch sunnyhere an empty file will be created with 0 bytes
- to create a file with some matter in it#cat > momhi mom how are youthen ctrl+d to save
- to view the connect of the file# cat momhi mom how are you
- to append the matter in already present file# cat >> momhi mom how are youhi mom this is your sonctrl+d to save
- to view the content you can use these#vim momafter this to save w!To save and quit wqTo save and quit forcefully wq!To quit forcefully q!and other like this#vi momand also can use#nano momhere click x to saveand Y for yes
No comments:
Post a Comment