Fedora Linux Support Community & Resources Center
  #1  
Old 15th March 2007, 05:22 AM
carlman001 Offline
Registered User
 
Join Date: Dec 2006
Posts: 56
consult about bash command

Hi all,
do you know the bash command in linux equivalent to this DOS instruction: "C:\dir /s".
Because I want where a file is localted.

thanks
carlos
Reply With Quote
  #2  
Old 15th March 2007, 07:38 AM
arnott Offline
Registered User
 
Join Date: Aug 2006
Posts: 33
did u try 'ls *' ?
Reply With Quote
  #3  
Old 15th March 2007, 07:46 AM
gidget Offline
Registered User
 
Join Date: Aug 2004
Location: Pretoria, South Africa
Age: 34
Posts: 9
Acording to DOS, dir /s will display all files and subdirectories in a directory.

Try ls -R
__________________
Open Source means 'open to scrutiny, open to customization, open to improvement', but not 'open to risk'
RHCE no: 804005867517311
Reply With Quote
  #4  
Old 15th March 2007, 03:33 PM
carlman001 Offline
Registered User
 
Join Date: Dec 2006
Posts: 56
yeah, this is the command, thanks.
Now, I have other question.
When I want to know in which directory is located the files that starts with php I use the following command:

example: by DOS command I use "C:\dir php*.* /s" this command list the files that starts with "php" and their directories.

now, what is the equivalent in bash command in linux?
Reply With Quote
  #5  
Old 15th March 2007, 10:45 PM
AlexThomson_NZ Offline
Registered User
 
Join Date: Nov 2006
Posts: 192
Try locate php*
Reply With Quote
  #6  
Old 15th March 2007, 10:49 PM
AlexThomson_NZ Offline
Registered User
 
Join Date: Nov 2006
Posts: 192
Sorry, that didn't work as well as I thought, try:

find / -name "php*"
Reply With Quote
  #7  
Old 16th March 2007, 02:57 AM
carlman001 Offline
Registered User
 
Join Date: Dec 2006
Posts: 56
It works, thanks AlexThomson_NZ
Reply With Quote
  #8  
Old 16th March 2007, 03:00 AM
mwette Offline
Registered User
 
Join Date: Nov 2005
Location: Los Angeles area
Posts: 887
try "find . -name '*php*' -print"
Reply With Quote
Reply

Tags
bash, command, consult

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
what will this bash command do? bdeklerk Using Fedora 3 14th April 2009 07:37 AM
bash command ! ziro_axis Programming & Packaging 4 27th June 2005 08:48 AM


Current GMT-time: 11:50 (Tuesday, 30-09-2014)

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