Year: 2011

  • |

    VI Editor

    To create or to open a file for editing [root@comp1 ~]# vi Example:- [root@comp1 ~]# vi fullreport To go to insert mode i – inserts the text at current cursor position r – replace a single char at current cursor position Commands at Execute Mode :q – quit without saving :q! – quit forcefully without…

  • |

    Basic’s

    To check the present working directory [root@comp1 ~]# pwd /root To see the contents of a directory (folder) [root@comp1 ~]# ls Options: -l Long list including attributes -a All files and directories including hidden -d To check for a particular file or directory -R Recursively, to see the contents in a tree structure To list…