≡ Menu

command syntax

Linux / Unix: Cat Command Examples

cat command

I am a new Linux and Unix system user. How do I use cat command on Linux or Unix-like operating systems? Can you provide basic examples and syntax usage for cat command?
[click to continue…]

Mplayer Shuffle Command: Play Files In Random Order

How do I play files in random order using the mplayer command line player under Linux / Unix operating systems?
[click to continue…]

Linux: NFS4 mount Error reason given by server: No such file or directory

I recently installed NFS server v4 on my HP Linux server. However, I'm not able to mount it from Linux nfs4 client using the following command:

mount.nfs4 server2:/data /data

I'm getting the following error:

mount.nfs4: mounting server2:/data failed, reason given by server:
No such file or directory

How do I fix this problem?
[click to continue…]

regionset: Linux Set / Change DVD Region Code

How do I change the zone setting of a DVD drive (DVD region code) under Linux operating systems?
[click to continue…]

HowTo: Linux Rename Files

How do I rename a file under Linux operating systems using command line (bash shell prompt)?
[click to continue…]

Linux Delete Folder

How do I delete folders under Linux operating systems?
[click to continue…]

Howto: Find A File In Linux Operating Systems

How Do I find a file in Linux operating systems?
[click to continue…]

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…]

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

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…]