nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Linux list directories and files

This is a discussion on Linux list directories and files within the Getting started tutorials forums, part of the Linux Getting Started category; To list directory contents, use ls command: Code: ls Display detailed listing using ls -l Code: ls -l Sample output ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-05-2007, 01:05 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 148
Rep Power: 4
raj is on a distinguished road
Default Linux list directories and files

To list directory contents, use ls command:
Code:
ls
Display detailed listing using ls -l
Code:
ls -l
Sample output from my system
Code:
drwxr-xr-x  10 root     root       4096 2007-04-21 11:05 X11
drwxr-xr-x   7 root     root       4096 2007-02-21 15:14 xdg
-rw-r--r--   1 root     root        289 2006-07-05 18:35 xinetd.conf
drwxr-xr-x   2 root     root       4096 2007-04-23 04:38 xinetd.d
drwxr-xr-x   2 root     root       4096 2007-04-21 10:50 xml
-rw-r--r--   1 root     root        399 2007-03-30 15:22 zsh_command_not_found
If first chracter is d it is a directory, X11, xdg are examples of dir, rest all are files.
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha

Last edited by raj; 05-05-2007 at 01:06 AM. Reason: typo
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
UNIX Display or list number of files in a current directory raj Getting started tutorials 1 12-07-2007 10:55 AM
how to change the format of multiple files in different directories dustcloud4 Shell scripting 0 06-05-2007 03:03 AM
Linux delete empty directories raj Getting started tutorials 0 05-05-2007 01:29 AM
UNIX ls only directories (display only dirs and no files) chiku Solaris/OpenSolaris 1 10-21-2006 12:27 AM
How to Get a List of Open Files? tom Linux software 1 07-08-2005 11:10 PM


All times are GMT +5.5. The time now is 04:35 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36