Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th May 2007, 10:39 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 988
ls command not listing common directories

Hi,
When I type this command 'ls' here is what I get:

[root@localhost ~]# ls
anaconda-ks.cfg autoscan.log Desktop install.log.syslog scsound.log swapfile
a.out configure.scan install.log oldflashplugins.tar.gz sqlplus workspace

As far as I understand this command 'ls' lists all the directories on the system, right? If so, then why common directories like var, etc, usr, mnt, boot are not displayed in the output of the command?
How do I list these common directories? Many thanks...
Reply With Quote
  #2  
Old 6th May 2007, 10:45 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,446
Quote:
Originally Posted by tech291083
Hi,
When I type this command 'ls' here is what I get:

[root@localhost ~]# ls
anaconda-ks.cfg autoscan.log Desktop install.log.syslog scsound.log swapfile
a.out configure.scan install.log oldflashplugins.tar.gz sqlplus workspace

As far as I understand this command 'ls' lists all the directories on the system, right? If so, then why common directories like var, etc, usr, mnt, boot are not displayed in the output of the command?
How do I list these common directories? Many thanks...
The ls command with no argument will only show files and directories
in the directory it's already in. Your prompt says you were in the
root's ~ directory which means the home directory for root, that's
/root on fedora. Common directories you mean are one level higher
under / so do a change directory to "/" then run ls

cd /
ls

Or you could just tell ls to look in / directly:

ls /


Mark
Reply With Quote
  #3  
Old 6th May 2007, 11:36 PM
tw2113's Avatar
tw2113 Offline
Registered User
 
Join Date: Apr 2007
Location: South Dakota
Age: 29
Posts: 505
for future reference, type "man ls"

for this thread:

ls options:
-l -- view detailed information about files and directories
-S -- sort by size of the file or directory
-X -- sort by extension
-r -- sort reverse order
-t -- sort by time when file or directory was last modified
-a -- show hidden files
-i -- view the inode value associated with a directory or file
__________________
If you're not questioning my sanity, I'm not trying hard enough
Reply With Quote
  #4  
Old 12th May 2007, 02:24 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 988
Thanks a lot guys..
Reply With Quote
Reply

Tags
command, common, directories, listing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updates Listing VideoRoy Using Fedora 2 27th January 2009 04:23 PM
Java: Listing all files and folders, including sub directories keatonvictor Programming & Packaging 1 8th September 2008 06:42 AM
Renaming multiple directories by the command line Bezique Linux Chat 2 10th March 2008 06:29 AM
Apache 2.2: Listing directories without index files... misjka Servers & Networking 1 24th September 2006 05:10 PM
Apache Can't See User Directories or Indexes in Sub Directories jeix Servers & Networking 7 15th June 2006 06:27 AM


Current GMT-time: 12:24 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat