LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-18-2009, 11:26 AM   #1
evarie
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Rep: Reputation: 0
Exclamation commandline chmod 770 ..


Hello, I am Dutch. So you can write dutch for me or easy english please?

Yes, i did something stupid what I do not know.

I did command:
sudo -s
chmod 770 .
chmod 770 ..

And now i cannot login on my test server noteboek.
Please do not ask why I use server software on my notebook.
Caus i like it and i use it only for typing text en learning linux commands. So i have a notebook with ubuntu server 8.04.2. And it has this problem about de commands I did stupid.
(I have more computers and hardware to support my self!)

First question is:
Why have linux after command ls -l -a this output?
drwxr-xr-x 21 root root 4096 2009-11-04 20:45 .
drwxr-xr-x 21 root root 4096 2009-11-04 20:45 ..


And how must it to set and use?
What is it's function?

How can i repair my server notebook?
Must i unmount my harddisk with a sqrewdriver and connect it to/on an other linux machine? If its needed, i can do that. But is there a more easy solution?

Last edited by evarie; 11-18-2009 at 11:31 AM.
 
Old 11-18-2009, 11:55 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,615

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
evarie,

Quote:
First question is:
Why have linux after command ls -l -a this output?
drwxr-xr-x 21 root root 4096 2009-11-04 20:45 .
drwxr-xr-x 21 root root 4096 2009-11-04 20:45 ..
So the "Why". Those dots "." and ".." indicate that the current directory you are listing its files has "parent directories". The first three columns at the left containing "drwsr-xr-x" tell you whether it is a regular file or a directory, the "permissions" of the folder or file, then the owner (and its group) the amount of memory it uses, dates and lastly the name.

Quote:
And how must it to set and use?
What is it's function?
ls command is for listing der files or directories it contained.

Quote:
How can i repair my server notebook?
Must i unmount my harddisk with a sqrewdriver and connect it to/on an other linux machine? If its needed, i can do that. But is there a more easy solution?
There is no need to do that. What you need is not a screwdriver but a good tutorial, get it by clicking here.

Your questions are very basic and require long explanation, the kind that you can better get from reading a good tutorial. Use the tutorial as your guide and mentor as you practice using terminal commands.

Good luck.
 
Old 11-18-2009, 12:09 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by evarie View Post
Hello, I am Dutch. So you can write dutch for me or easy english please?
Dutch? No. The site operates only in English.

Easy English? For someone who is not a native speaker, this may be an oxymoron, but we'll try

For most of your questions, I recommend the Bash Guide for Beginners---free at http://tldp.org

As for how to take apart the notebook, I would think that Google would find lots of information. If you want to pursue it here, start a new thread. (It does not fit in a thread about chmod)
 
Old 11-18-2009, 12:14 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
. means the directory you are currently in.
.. means the parent directory.

for example, if you are in /home/steve then . means /home/steve and .. means /home
if you are in /usr then . means /usr and .. mean /
 
Old 11-18-2009, 12:18 PM   #5
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
. - current directory
.. - parent directory

Look at this example

i created a directory called a foo which is empty and is under this path

Quote:
ryan@wsx04:/home/ryan/foo$
that is foo is under the directory ryan,doing ls revels ..

Quote:
drwxr-xr-x 2 ryan ryan 4096 2009-11-18 22:40 foo
The 2 denotes (under the links category denotes that) no of links it has,in a unix system the default for a directory is 2.The 2 means that the directory 2 has 2 links..one connecting to the ryan directory(parent directory) and one to itself(current directory).

Creating a directory called tom inside foo will increment the count of foo by 1 making it 3.Because the directory foo is linked to Tom and Ryan. In the below example am creating tom outside foo.

===Before===

Ryan(2)
|
|
|

===After Creating Foo===
Ryan(2+1) ( parent+current+foo)
|
|=>Foo
|

===After Creating Tom====
Ryan(2+1+1) (parent+current+tom+foo)
|
|=>Foo
|=>Tom

For ryan parnet is home and current is itself and rest are Foo and Tom so that makes it 4.

Hope You got it

Last edited by kdelover; 11-18-2009 at 12:21 PM.
 
Old 11-18-2009, 12:22 PM   #6
evarie
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Only the dots i need to know?

Sorry, I forgot to say that I know how I must work with the commands:
ls
chmod
chown

I also know what means 421 with rwx

So, I do only want to know what these dots means?

But I do not know what will happen when I do:
chmod 770 .
chmod 770 ..
 
Old 11-18-2009, 03:33 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Ummmm, the answer has already been given:

For example:

".." means the host directory (If you are in /home/username/pictures, then ".." = /home/username

chmod -xyz .. means change the permissions for the host directory
 
  


Reply


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
Sticky Bit? (ie: chmod 2770 vs chmod 770) JeffC1 Linux - Newbie 7 03-18-2010 08:39 AM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 02:10 PM
chmod 775 to only the directories and chmod 664 to only the files? apachenew Linux - Security 6 09-27-2007 04:26 PM
chmod, external usb, vfat - can't chmod a directory itsjustme Slackware 2 04-02-2006 05:23 PM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 09:53 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration