Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

In /dev/socket directory, if runs "ls -al" in adb, there is no file size information. I would like to know why there is no such information, in the condition that in other directories can show file size information?

Thanks.

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

Sockets and pipes represent Unix' way of inter process communication, and a communication channel has no point in having a size. Sockets are thus not seekable as in go to position x in the file.

Linux (which Android makes use of) has 7 file types:

  • Regular Files
  • Directories
  • Character  Device Files
  • Block Device Files
  • Local Domain Sockets
  • Named Pipes
  • Symbolic Links

See more here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.