1823249 Members
3348 Online
109648 Solutions
New Discussion юеВ

Move Socket file

 
SOLVED
Go to solution
j773303
Super Advisor

Move Socket file

Does anyone has the experience how to move a socket file ? Another problem is how to make a socket file? Thanks.


# ls -l
srw------- 1 lee li 0 Jun 10 09:14 test

# cp -p test /home
cp: test: Operation not supported on socket

# mv test /f270/home
mv: test: can't move sockets across file systems
Hero
2 REPLIES 2
bhavin asokan
Honored Contributor
Solution

Re: Move Socket file

hi,
the socket files are created/used by/for some of the daemons for collecting messages.its path is specified and you will not be able to remove when the daemon is running .you can find the respective daemon by lsof command(if command is not there you should have to install it)

eg: /dev/log.un is used by syslog daemon.see the contents of man page.
syslogd collects messages from the UNIX domain socket /dev/log.un, an
Internet domain socket specified in /etc/services, the named pipe
/dev/log, and from the kernel log device /dev/klog.

if lsof is there ,

lsof /dev/log.un will shows which daemon is running on that file.

regds,


Govind_3
Regular Advisor

Re: Move Socket file

Sockets cannot be copied/ moved. They are used for I/O over the network. Do a man socket for more info!