ln command

When I try to restart my BIND 9 server under Ubuntu Linux using service bind9 restart or service bind9 start command, I get the following error:
resolvconf: Error: /etc/resolv.conf must be a symlink

How do I fix this problem?

{ 1 comment }

I see the following error in my SELinux enabled CentOS or RHEL server:

Jun 21 13:58:43 server3 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory

Jun 21 16:14:51 server3 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory
Jun 22 13:32:23 server3 restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory

How do I fix this problem?

{ 0 comments }

I’ve couple of remote servers and I’d like to access few admin only application running on port 10000 and 3001. My firewall only allows port 80, 443, 25, 22 and 110 for public access. Do I need to open port 10000 and 3001 for everyone using firewall? How do I access my admin only apps without opening port 10000 and 3001?

{ 7 comments }

Unix Create a Symbolic Link

by Vivek Gite on May 15, 2008 · 3 comments

How do I create file links under UNIX / Linux / BSD operating systems?

{ 3 comments }

Linux / UNIX: Clear bash history

by Vivek Gite on October 15, 2007 · 10 comments

Q. I’m using CentOS Linux server and how do I clear bash history in UNIX / Linux / BSD operating systems? A. Type the following command to clear your bash history: >~/.bash_history Another option is link ~/.bash_history to /dev/null: ln -sf /dev/null ~/.bash_history

{ 10 comments }

HowTo: Create a Hard Links in Linux / UNIX

by Vivek Gite on October 9, 2007 · 5 comments

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?

{ 5 comments }

Q. How do I create a soft link (symbolic link) under UNIX or Linux operating system? A. To make links between files you need to use ln command. A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or [...]

{ 31 comments }