Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on 

Problem to command

Hi,
I'm not able to find out one folder called "Downloads" by this
find . -name "*ownloads*"

Open in new window

any advice?
Linux OS DevLinux NetworkingLinux Security

Avatar of undefined
Last Comment
serialband
Avatar of Mick Finley
Mick Finley
Flag of United States of America image

try using locate instead of 'find' and remove the period after 'find'
Avatar of Peter Chan
Peter Chan
Flag of Hong Kong image

ASKER

Sorry, I get this

[huamin@CentOS65x64 /]$ locate -name "*ownloads*"
locate: invalid value `ame' of --limit
Avatar of Mick Finley
Mick Finley
Flag of United States of America image

remove the -name

locate "*ownloads*"
Avatar of ThomasMcA2
ThomasMcA2

Using find followed by a period only looks in folders below the current folder. When I run your command from my home folder, it works:

username ~ $ cd
username ~ $ pwd
/home/username
username ~ $ find . -name "*ownloads*"
./.kde4/share/apps/khtml/easylistdownloadsadblockplusorgeasylistnoelemhide.txt
./.thunderbird/lsqi76kk.default/downloads.json
./.moonchild productions/pale moon/ocmjoebb.default/downloads.sqlite
./Downloads

Open in new window

Avatar of Mick Finley
Mick Finley
Flag of United States of America image

locate will search all directories, usually used at root level
SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of serialband
serialband
Flag of Ukraine image

Were you able to find your [Dd]ownloads folder?
Linux Networking
Linux Networking

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

19K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo