LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing the directory (https://www.linuxquestions.org/questions/linux-newbie-8/changing-the-directory-910410/)

KKANTH24 10-27-2011 03:22 AM

Changing the directory
 
Hi,

I am new to Linux.
Recently I was trying to install network driver in Debian Linux and Ubuntu but I was not able to change the directory.
But I am able to veiw the directories like desktop.
As without entering the directory I cannot install the driver from commnad line,please help on this

Regards,
LK

fukawi1 10-27-2011 03:23 AM

How did you try to change the directory?

deep27ak 10-27-2011 03:30 AM

please try to elaborate your problem

What was the command you were trying?
were you getting any error?
or you are looking for a command to change the directory?

colucix 10-27-2011 03:54 AM

Be sure the directory has execute permissions: x permissions for directories mean they are accessible. You can still view the content of the directories using ls or the desktop file manager, but you cannot cd into them.

jv2112 10-27-2011 05:22 AM

http://www.tuxfiles.org/linuxhelp/filepermissions.html


I would recommend reading up on permissions before you move forward.

KKANTH24 10-28-2011 07:57 AM

Quote:

Originally Posted by fukawi1 (Post 4509526)
How did you try to change the directory?

$ su
password

$cd desktop

KKANTH24 10-28-2011 08:03 AM

Quote:

Originally Posted by colucix (Post 4509544)
Be sure the directory has execute permissions: x permissions for directories mean they are accessible. You can still view the content of the directories using ls or the desktop file manager, but you cannot cd into them.

Hi,

How to change the permissions of folders?
Also when I do ls I can find only Desktop and TMP directory how to access other folders like bin,etc,sbin and others.
Regards,
Lakshmikanth

deep27ak 10-28-2011 08:53 AM

Quote:

Originally Posted by KKANTH24 (Post 4510533)
Hi,

How to change the permissions of folders?
Also when I do ls I can find only Desktop and TMP directory how to access other folders like bin,etc,sbin and others.
Regards,
Lakshmikanth

where are you trying to do ls?

Code:

#cd /
#ls


colucix 10-28-2011 10:15 AM

Quote:

Originally Posted by KKANTH24 (Post 4510533)
Hi,

How to change the permissions of folders?

To see what are the current permissions of the folder, do
Code:

ls -ld /path/to/folder
to change them use the chmod command, e.g
Code:

chmod +x /path/to/folder
Quote:

Originally Posted by KKANTH24 (Post 4510533)
Also when I do ls I can find only Desktop and TMP directory how to access other folders like bin,etc,sbin and others.

What you see when you login (or open a new terminal or switch to root using su) is the content of your HOME directory (usually /home/username for normal users, /root for root). To list all the directories you mentioned, you need to go up to the origin of the directory tree:
Code:

cd /
The structure of the directories tree in Linux and Unix systems follows the Filesystem Hierarchy Standard, FHS.

rahulkya 10-28-2011 10:16 AM

I will recommend you to go through some beginner guide of linux. First thing Usually Debian/Ubuntu has Desktop Note that its capital D ..Linux is case sensitive ..

do
Quote:

ls -a
to list all files/directories
or do
Quote:

pwd
to see exactly where are you..

To change permission of folder say direc use this command..

Quote:

chmod 700 direc

EDDY1 10-28-2011 12:12 PM

Quote:

Also when I do ls I can find only Desktop and TMP directory how to access other folders like bin,etc,sbin and others.
If you cd to any directory ls only lists the files for that directory.
But like stated in colucix post if you cd / you'll get a list of all the directories After finding the directory you're looking for you can cd to it & ls to see what's in that particular directory.


All times are GMT -5. The time now is 02:39 AM.