LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-27-2010, 11:16 PM   #1
crahuldba@gmail.com
Member
 
Registered: Apr 2010
Posts: 51

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
Rahul
 
Old 10-27-2010, 11:40 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by crahuldba@gmail.com 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 11:44 PM.
 
  


Reply


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 10:38 AM
cp command question Freestone Linux - Newbie 4 05-01-2006 10:39 AM
Command question satimis Linux - General 8 06-23-2004 03:43 AM
ls command question eastj1974 Linux - Newbie 4 11-18-2003 06:44 PM
Command Question gauge73 Linux - Newbie 2 02-13-2003 09:18 PM


All times are GMT -5. The time now is 06: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration