Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Business Industries Finance Tax

Home > Ls


First Prev [ 1 2 ] Next Last

5 Type column description

The very first character in a long listing gives the type of file.

Character Type
- Normal file
b Block device
c Character device
d Directory
l Symbolic link
p Named pipe ( FIFOFIFO is an acronym for First In, First Out . This expression describes the principle of a queue: what comes in first is handled first, what comes in next waits until the first is finished, etc. Thus it is analagous to the behaviour of persons "standing in)
s Domain socket

6 Permissions description

example:

rwxr-xr--

The first three characters represent the owner's permissions on the item, the next three the group's permissions, the last, everyone else.

6.1 Meaning of Characters by Character

As for the individual character meanings, the following is meant to explain that:

r - read permission;
w - write permission;
x - execute permission;
- - no permission;

6.2 Example

Given the output above, drwxr-xr--,

7 More examples

To only list directories:

ls */ -d

To get colorized output:

ls --color=auto

To get ls to always output the result colorized when appropriate, write the following in .bashrc :

alias ls="ls --color=auto" Unix programs



Non User