LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-25-2007, 01:57 AM   #1
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Rep: Reputation: 15
ls


Hi there
please reword ? with an answer.
#ls –l *.*
-rw-r----- 1 root …
drw-r----- 1 root …
brw-r----- 1 root …

- = file
d= directory
d = ?
 
Old 12-25-2007, 01:58 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What? I don't understand the question.
 
Old 12-25-2007, 02:04 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
b = see this
 
Old 12-25-2007, 02:07 AM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
You probably mean 'b', not 'd' in your question.
The first symbol in the permission string is
'-' for the regular file
'l' for a symbolic link
'd' for a directory
'b' for a block device
'c' for a character device
'p' for a named pipe (fifo)

Did I forget something?
 
Old 12-25-2007, 02:18 AM   #5
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Uncle_Theodore View Post
Did I forget something?
you provided almost all the answers to his questions.
There are also sockets ...

Last edited by ghostdog74; 12-25-2007 at 02:20 AM.
 
Old 12-25-2007, 03:28 AM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
You might want to read this:

http://www.linuxquestions.org/questi...3/#post1878581

If you have any doubts, please let me know. I hope this helps.

Regards!

P.S: I did not mention what "b" stands for in that old thread, but it means "block device".
 
Old 12-25-2007, 03:50 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by hadyy View Post
b= ?
b means a "block device", that is special file which usually let the kernel to access hardware. You will find a lot of them in /dev
Code:
$ ls -l /dev/hd* /dev/sd*
brw-rw----  1 root disk 3,  0 18 dic 16:11 /dev/hda
brw-rw----  1 root disk 8,  0 18 dic 16:11 /dev/sda
brw-rw----  1 root disk 8,  1 18 dic 16:11 /dev/sda1
brw-rw----  1 root disk 8,  2 18 dic 16:11 /dev/sda2
brw-rw----  1 root disk 8, 16 18 dic 16:11 /dev/sdb
brw-rw----  1 root disk 8, 17 18 dic 16:11 /dev/sdb1
together with "character devices" flagged by the letter "c"
Code:
$ ls -l /dev/tty0 /dev/tty1
crw-rw----  1 root root 4, 0 18 dic 16:11 /dev/tty0
crw-------  1 root root 4, 1 18 dic 15:13 /dev/tty1
 
Old 12-25-2007, 03:51 AM   #8
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
thanks

Hi
That's OK.
"Block device" is correct.
because my 'ls' example was:
#ls -l /dev/ram0
Os replied me:
brw-r----- 1 root disk 1, 0 2007-11-20 15:22 /dev/ram0
BUT
I don't understand this:
lrwxrwxrwx 1 root root 4 2007-11-20 20:22 /dev/ramdisk -> ram0

l=?

thank you Mr

Last edited by hadyy; 12-25-2007 at 03:55 AM.
 
Old 12-25-2007, 04:08 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by hadyy View Post
lrwxrwxrwx 1 root root 4 2007-11-20 20:22 /dev/ramdisk -> ram0
"l" means "symbolic link": /dev/ramdisk is not a file itself but a kind of pointer to another file, ram0. I suggest to read some basic linux intro about the argument: you can find plenty of them on the Linux Documentation Project, for example http://www.tldp.org/LDP/intro-linux/...tml#sect_03_01 about this specific argument.
 
Old 12-26-2007, 08:01 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Please do not double post questions. I've merged your two threads into one thread to keep all the answers and replies in one place.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration