[SOLVED] Why does terminal say "no such file or directory" when I try to cd/ to it?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, where it shows [matt@localhost ~]$ that means you are signed in as matt the little ~ means you are in home already. The $ means you are signed in as a user and not as root. From this if you type: cd downloads it should go there since you are already in your home. Check though, sometimes downloads is spelled with a capital D and Downloads and downloads are not the same in Linux, case matters.
Open a terminal and type ls (lower case L and s) and you should see your folders.
Thanks to both of you, I tried it with a space before I posted the question with no luck, but I wasn't sure if it needed it or not.
[matt@localhost ~]$ cd /Downloads still couldn't find the directory, but cd Downloads did. I thought you needed the / but I guess you don't?
Thanks to both of you, I tried it with a space before I posted the question with no luck, but I wasn't sure if it needed it or not.
[matt@localhost ~]$ cd /Downloads still couldn't find the directory, but cd Downloads did. I thought you needed the / but I guess you don't?
Thanks again!
The ~ (highlighted above) means that you are in your home directory. Downloads is in your home directory, so cd Downloads will change you to that sub-directory, and your prompt will then show
Code:
[matt@localhost Downloads]$
As stated use ls -l to see what's in the directory you're in...and pwd (print working directory) to see what directory you're actually in.
As always, use man ls and man pwd to find out what those commands actually do.
Also take a look at
Code:
ls -l /
to see what's in the root (/) directory. You'll see that there's no Downloads directory there...so "No such file or directory"
Thanks again everyone. I'm working on Fedora 22 but want to upgrade it to the most recent and stable version, can I ask for your help here or should I start a new thread?
I know it's kind of cheating
have a look at midnight commander the command to bring it up is "mc"
it's the easiest way to deal with files that have spaces in the file names and other odd ball file names
Thanks again everyone. I'm working on Fedora 22 but want to upgrade it to the most recent and stable version, can I ask for your help here or should I start a new thread?
It would probably work better to start a new thread, either here or in the Fedora distro forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.