hualaan
Posts: 2
Joined: Mon Oct 05, 2015 1:08 am

cd..: command not found

Mon Oct 05, 2015 1:58 am

I'm just trying to learn the Linux command line commands. Typing cd.. gets the "command not found" error. I can use cd folder name to change to the folder name directory, and typing cd alone will bring me back to the home directory, but not cd..

Anyone know how I can get the cd.. function to work?

plugwash
Forum Moderator
Forum Moderator
Posts: 3238
Joined: Wed Dec 28, 2011 11:45 pm

Re: cd..: command not found

Mon Oct 05, 2015 2:48 am

There needs to be a space between cd and ..

hualaan
Posts: 2
Joined: Mon Oct 05, 2015 1:08 am

Re: cd..: command not found

Tue Oct 06, 2015 10:08 pm

Thanks plugwash...it's been more than twenty years since I used Unix. I'm pretty rusty!

uroborous
Posts: 5
Joined: Wed Jan 25, 2017 7:18 am

Re: cd..: command not found

Thu Mar 22, 2018 12:43 am

i am trying to install a pdf viewer program. to install it i have to cd into the directory where the installer file is located. however i can not cd into anything at all and i have tried every other file in the home/pi/ directory to no avail. it is located in the downloads directory but when i input the command: "cd /downloads" i get the error message "no such file or directory" what am i doing wrong.
i have also tried: cd /home/pi/downloads
cd/home/pi/downloads
and cd/downloads.
nothing seems to work. neither does cd . or cd ..

<edit>
solved my problem the easy way:
moved the file into the home/pi directory
punched in the command.
installer started.
why cant we just double click on the damnable things like in windows with a .exe installer?
srsly would be easier.
plz dont hate me.

User avatar
Imperf3kt
Posts: 697
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: cd..: command not found

Thu Mar 22, 2018 1:28 am

uroborous wrote:
Thu Mar 22, 2018 12:43 am
i am trying to install a pdf viewer program. to install it i have to cd into the directory where the installer file is located. however i can not cd into anything at all and i have tried every other file in the home/pi/ directory to no avail. it is located in the downloads directory but when i input the command: "cd /downloads" i get the error message "no such file or directory" what am i doing wrong.
i have also tried: cd /home/pi/downloads
cd/home/pi/downloads
and cd/downloads.
nothing seems to work. neither does cd . or cd ..

<edit>
solved my problem the easy way:
moved the file into the home/pi directory
punched in the command.
installer started.
why cant we just double click on the damnable things like in windows with a .exe installer?
srsly would be easier.
plz dont hate me.
Linux is case-sensitive.
Next time, the command should be
cd /home/pi/Downloads
Stephen Hawking, rest in peace.
8 January 1942 – 14 March 2018

k-pi
Posts: 380
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: cd..: command not found

Thu Mar 22, 2018 8:19 pm

....& just as a refresher "cd /downloads" will be looking for that in the root partition, not in the /home/pi folder. ;)

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 9 guests