Tuesday, March 11, 2014

TO CREATE, READ, APPEND A FILE

TO CREATE A FILE
 cta  >  file name 

ex:-
[root@localhost ~]# cat > linux
hi this is linux

use this command
ctrl + d ( to save and quit )


to read the file
cat  file name

ex :-
[root@localhost ~]# cat linux
hi this is linux

to append a file
cat   >>  file name

ex:-

[root@localhost ~]# cat  >>  linux
u r  from india

ctrl + d (save and quit)

No comments:

Post a Comment