Linux

How to set up A Records and MX Records

URL FORWARDING RECORDS HOST NAME TYPE DATA yourdomain.com Forward (F) http://www.someplace.com www.yourdomain.com Forward (F) http://www.someplace.com URL Forwarding records are used to redirect domains to another URL. A common purpose is to point a domain to a website or page hosted elsewhere which usually has a longer URL such as http://www.myispsite.com/~myname.html. Keep in mind that the DATA part of the forwarding record must be a complete URL like...

Search for text in vi or vim

vi and vim have powerful searching capabilities because they bring to bear the richness of regular expressions. To search for the next occurence of the text ‘maybe’ from the current cursor position, type: [code] /maybe [/code] Search backward from the current position by using ? instead of / in the command. Once you have searched for something, you can find the next occurrence by pressing n or the previous occurrence with N. Searching in vi/vim is enhanced with regular expre...

How to excluding directories when zip files on Linux

All you needs is use the -x switch and list the files and directories to be excluded, separated by spaces. For example: [code] zip -r filename.zip directory -x directory/folderA\* directoryr/folderB\* [/code]