Computing.Net > Forums > Unix > help on file attributes

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help on file attributes

Reply to Message Icon

Name: esu (by Raj)
Date: May 31, 2001 at 06:18:57 Pacific
Comment:

I have a file with attributes as listed below.

prw------- 1 raj dba 0 May 30 11:26 x.dat

Could someone please tell me what 'prw' means ? I thought its always 'rwx' with a 'd' qualifier for directory.

Also I cannot even list the contents of the file. If I issue 'cat x.dat' it just sits there.

Please help.

Raj



Sponsored Link
Ads by Google

Response Number 1
Name: endora57
Date: May 31, 2001 at 13:01:16 Pacific
Reply:

The character in column one is the type of file.
- = ordinary (plain) disk file
d = directory
b = block special file
c = character special file
p = fifo file("named pipe")special
file
l = symbolic link


0

Response Number 2
Name: liteyear18
Date: July 20, 2001 at 21:00:20 Pacific
Reply:

As correctly stated by endora57, the "p" indicates the type of file. A fifo file is normally used to communicate between programs. The next 3 bytes ("rw-") indicates the "user who owns the file(s)" privileges. That's followed by the "group" privileges "---" and lastly by anybody elses ("other") privileges (also "---". The way the x.dat files is set up means only the "user who owns the file" has read and write (rw) privileges to it. I believe the reason you are not seeing anything is that a fifo file only contains data while the processes that are using the file are executing. Thus, when you key "cat x.dat" - nothing is there.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: help on file attributes

Help on SCO Unix Network www.computing.net/answers/unix/help-on-sco-unix-network/2193.html

need help on SED script www.computing.net/answers/unix/need-help-on-sed-script/7487.html

Help - File Name Manipulation www.computing.net/answers/unix/help-file-name-manipulation/6465.html