HowTo: Create a Hard Links in Linux / UNIX

Posted on in Categories , , , , , , , , , last updated October 1, 2011

Both Linux / UNIX allows the data of a file to have more than one name in separate places in the same file system. Such a file with more than one name for the same data is called a hard-linked file. How do I create a hard link under Linux / UNIX / Apple Mac OS X / BSD operating systems?

Troubleshoot Linux / UNIX bind dns server zone problems with named-checkzone tool

Posted on in Categories , , , , , , , , , , , , last updated September 21, 2007

Q. How do I check my domain zone file for error and validity the same under BIND DNS Server version 9?

A. You need to use named- checkzone command as zone file validity checking tool. It is useful for checking zone files before configuring them into a name server.

named-checkzone command syntax

named-checkzone {zonename} {filename}
Where,

  • zonename : The domain name of the zone being checked.
  • filename : The name of the zone file.

How do I check my zone file configuration for errors?

Use named-checkzone to check the zone files as follows:
named-checkzone nixcraft.com /var/named/zone.nixcraft.com
Output:

OK

If you see “OK” as result, the zone file is properly configured and you can restart bind name server.

Clear all Linux / UNIX bash shell aliases

Posted on in Categories , , , , , , , last updated July 12, 2007

Q. How do I clear all UNIX bash shell aliases get cleared in one command. I’ve 20 aliases sometime I just need to delete them in a current session. How do I get rid of all of them?

A. You need to use unalias command/

unalias command syntax

unalias name

To remove alias called foo, enter
$ unalias foo

alias command with no arguments or with the -p option prints the list of aliases:
$ alias
Output:

alias ll='ls -lh'
alias ls='ls --color=auto'
alias vi='vim '
alias c='clear'
alias d="/usr/local/bin/chkdomain $@"

Clear all Linux / UNIX bash shell aliases

It will remove NAMEs from the list of defined aliases. If the -a option is given, then remove all alias definitions.
$ unalias -a

Ubuntu Linux Vim Sorry, the command is not available in this version: syntax on

Posted on in Categories , , , , , last updated May 12, 2008

Q. I am using vim under Ubuntu Linux and whenever I type following command:
syntax on

I’m getting an error which read as follows:
E319: Sorry, the command is not available in this version: syntax on

How do I fix this problem?
Continue reading “Ubuntu Linux Vim Sorry, the command is not available in this version: syntax on”