Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-10-2011, 10:13 AM   #1
LQ Newbie
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Changing directory

I know that is a newbie question and I should have been able to figure it out by looking it up, but I don't seem to be able too. I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:

pwd and it gives me /home/me
I try cd Desktop says that there is no such directory.
I tried /home/me/Desktop same thing.

What am I doing wrong? Thank you.
Old 03-10-2011, 10:16 AM   #2
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
post the output of

ls -al
in your home directory
Old 03-10-2011, 10:17 AM   #3
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
do 'ls' or 'ls -la' to list the directories.

If you've the command 'tree' installed, write 'tree'.
Old 03-10-2011, 10:25 AM   #4
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7

Try using the following command

locate Desktop
You will get the absolute path to your Desktop folder, and then cd to that path.
Old 03-10-2011, 10:28 AM   #5
LQ Newbie
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you to all of you. I learned something there. Boy, sure do like LINUX much better than Windows too bad we have to use windows at work. But then again we would all be lost.
Old 03-10-2011, 10:51 AM   #6
Registered: May 2010
Location: India
Posts: 79

Rep: Reputation: 7

Because the availability of softwares in windows makes the difference. Hope linux will also get all the softwares developed for windows soon.


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
Changing the password of Directory Manager in Redhat Directory Services sudarshan.bisht Linux - Server 2 11-19-2013 05:33 AM
Changing Directory Permission tendonut Linux - Software 1 08-19-2007 08:57 PM
Changing the home directory kyleinc Linux - General 2 02-27-2005 12:54 AM
Changing the name of the directory I am in fieldmethods Linux - General 4 01-08-2004 05:07 PM
Changing directory pdstatha Programming 1 04-11-2002 08:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 PM.

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