I was wondering if I can do a tail on screen session files, so I went into /var/run/screen/S-Username.

This is what I found on that directory (using ll -l)

XXXX@ubuntu:/var/run/screen/S-XXXX $ ll -a
total 0
drwx------ 2 XXXX XXXX 60 XXXX  5 09:42 ./
drwxrwxr-x 3 root utmp 60 XXXX  5 09:42 ../
prwx------ 1 XXXX XXXX  0 XXXX  5 09:42 3031.pts-1.ubuntu

What permission is this?

I’ve tried googling for “Linux file permissions”, and no one seems to mention the p flag. Can anyone tell me what the p permission flag is?

P.S: Also, it seems that I can’t do cat or tail on that file either.

share|improve this question
1  
It's better to include text in your question rather than a screenshot. – Keith Thompson Nov 5 '13 at 3:45
    
@KeithThompson but... freehand circles! – hobbs Nov 5 '13 at 15:23
    
@hobbs: Doesn't count unless they're red. 8-)} – Keith Thompson Nov 5 '13 at 15:24

p stands for FIFO, a named pipe. So it's not a permission, but a file type (just like d for directory).

You can't use cat or tail to get its content, because a FIFO isn't a regular file, it's used for inter-process communication.

share|improve this answer

It's not a permission. The p means that it's a named pipe, not a regular file.

share|improve this answer

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.