≡ Menu

command syntax

HowTo: Create a Hard Links in Linux / UNIX

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?
[click to continue…]

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}

  • 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


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

Linux Delete Directory With rmdir Command

I'm new to Linux and I'd like to know how to delete directory under any Linux distributions?
[click to continue…]

Clear all Linux / UNIX bash shell aliases

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

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

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?
[click to continue…]

Linux / UNIX source Command Examples

How do I use source command under UNIX / Linux / BSD / OS X operating systems?
[click to continue…]

How do I turn on or off color syntax highlighting in vi or vim text editor on Linux or Unix like operating systems?
[click to continue…]