Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-27-2010, 10:16 PM   #1
Registered: Apr 2010
Posts: 52

Rep: Reputation: 2
question about ls command

hello everybody
Please tell me what is 4 in the output of this command
[root@server1 ~]# ls -ld Desktop/
drwxr-xr-x 4 root root 4096 Oct 27 14:46 Desktop/
Thanks & Regards
Old 10-27-2010, 10:40 PM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Originally Posted by View Post
Please tell me what is 4 in the output of this command
It gives the number of links to that item. In the case of a file, this will be the number of hard links, typically one, where it is only in a single location. In the case of a directory, it will typically be the number of subdirectories plus 2 (ie, the link from the directory above, the '.' link from itself, and the '..' links from the subdirectories).

You can get more detailed documentation by typing 'info ls'.

Last edited by neonsignal; 10-27-2010 at 10:44 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Question about why a command does this SentralOrigin Linux - Newbie 3 08-24-2010 09:38 AM
cp command question Freestone Linux - Newbie 4 05-01-2006 09:39 AM
Command question satimis Linux - General 8 06-23-2004 02:43 AM
ls command question eastj1974 Linux - Newbie 4 11-18-2003 05:44 PM
Command Question gauge73 Linux - Newbie 2 02-13-2003 08:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 PM.

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