LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2003, 04:53 PM   #1
xailer
Member
 
Registered: Nov 2003
Posts: 77

Rep: Reputation: 15
ls -R command is working strange


hi

When I just run

ls -R command

,I get back all the files in all of the sub-directories.

But when I issue

ls -R first*

command,I don't get any files returned.Even though file specified exists

Why is that?

thank you
 
Old 11-25-2003, 04:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Maybe first* doesn't exist in the
base directory that your ls takes
off from?

To get a list of all files in a directory
structure that start with first use

find -name "first*"

Cheers,
Tink
 
Old 11-25-2003, 05:11 PM   #3
xailer
Member
 
Registered: Nov 2003
Posts: 77

Original Poster
Rep: Reputation: 15
hi

uh,I assumed it lists any file specified if -R option is used.I guess it only searches for files if in the starting directory?



And can you please tell me why I can create hidden directories(which names start with a dot),but not hidden files?

thank you

Last edited by xailer; 11-25-2003 at 05:42 PM.
 
Old 11-25-2003, 06:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I wouldn't know :)

how are you trying to creat that hidden file?

Cheers,
Tink
 
Old 11-25-2003, 07:22 PM   #5
xailer
Member
 
Registered: Nov 2003
Posts: 77

Original Poster
Rep: Reputation: 15
uh again.II didn't know new file is created using vi tool only if you enter some text.

I'm sorry for taking your time and thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ip from the result of tracert command mrpc_cambodia Linux - Networking 4 01-25-2005 06:49 AM
Strange IP coming from Last -i Command 69_rs_ss Linux - Security 10 12-31-2004 03:14 PM
A strange command Gins Linux - General 8 11-17-2004 01:41 PM
fopen command not wroking in C strange alix123 Programming 2 11-16-2004 10:48 AM
strange command prompt salparadise Linux - Newbie 4 01-21-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration