Avatar of Los Angeles1
Los Angeles1
 asked on

Linux, how to find files with spaces embedded

I am using RHEL 6.5

I want to locate a file named  

/mnt/path/AA BB/file1

however if I do a ls on this name it gets confused because of the spaces

How can I do an ls on this file name from root

Thanks
Linux

Avatar of undefined
Last Comment
Tintin

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
woolmilkporc

THIS SOLUTION 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
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tintin

or if you want to find any files with a space in their name, do

find / -type f -name "* *"
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck