what is ls -ltd?

Answer Posted / rhino

l -- For long listing example as below
t -- for latest time stamp -- After you make the changes
etc.
d -- stands for the information about the current directory
as shown below

Ex o/p as below :

drwxrwxr-x 3 oi oi 1276 Mar 25 11:47 .

3 above stands for no. of directories in the current
directory minus 2 , This means above directory has one
child directory


when o/p shows as below :

ls -ltd
drwxrwxr-x 5 oi oi 1399 Mar 25 11:55 .

This would mean parent directory has 3 child directories
(i.e 5-2 = 3 child directories)

Why minus 2 -- Current directory has 2 links so the same
number need to be deducted from the total number

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general format of unix command syntax?

694


What are grep patterns?

579


What do know about tee command?

607


What does the md command do?

577


What is the significance of the 'tee' command?

599






What do know about tee command and its usage?

591


Describe the zip/unzip command using gzip.

615


How to use grep command to list find the records of a file containing 10 different strings?

647


How do I open a port?

596


Which command is used to restrict incoming messages?

594


Differentiate cat command from more command.

578


What is ‘ps’ command for?

618


Which command is used to create a directory?

575


What are bash commands?

597


Who wrote grep?

587