LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-27-2011, 02:22 AM   #1
KKANTH24
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-27-2011, 02:23 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
How did you try to change the directory?
 
Old 10-27-2011, 02:30 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
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?
 
Old 10-27-2011, 02:54 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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.
 
2 members found this post helpful.
Old 10-27-2011, 04:22 AM   #5
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb

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


I would recommend reading up on permissions before you move forward.
 
Old 10-28-2011, 06:57 AM   #6
KKANTH24
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fukawi1 View Post
How did you try to change the directory?
$ su
password

$cd desktop
 
Old 10-28-2011, 07:03 AM   #7
KKANTH24
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
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
 
Old 10-28-2011, 07:53 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by KKANTH24 View Post
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
 
Old 10-28-2011, 09:15 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by KKANTH24 View Post
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 View Post
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.
 
Old 10-28-2011, 09:16 AM   #10
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
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
 
Old 10-28-2011, 11:12 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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.
 
  


Reply



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 04:33 AM
Changing Directory foxy188 Linux - Newbie 3 09-14-2011 12:14 AM
Changing directory noteleks Linux - Newbie 5 03-10-2011 09:51 AM
Changing the name of the directory I am in fieldmethods Linux - General 4 01-08-2004 04:07 PM
Changing directory pdstatha Programming 1 04-11-2002 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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