Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
As i know all the directories are in blue colour in command prompt, but why some is with gree color with the @ at the back, this is what type ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234

    Directory


    As i know all the directories are in blue colour in command prompt, but why some is with gree color with the @ at the back, this is what type of folder?
    Proper Planing is a way of success

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,932
    Hmmm, the green ones one my system are executable in some way.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by Roxoff
    Hmmm, the green ones one my system are executable in some way.
    for example, the apache folder
    Proper Planing is a way of success

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Sep 2003
    Posts
    254
    Lo
    To know do a
    Code:
    ls -l
    then look at the first caracter for example:
    Code:
    ls -l /dev/dvd
    lrwxr-xr-x  1 root  wheel  4 Dec 14 09:35 /dev/dvd -> acd0
    This is a symbolic link (see the little l at the beginning), u've got directory (d), blocks (b) etc...look in some manual it should be explain (I cant find a link here about that maybe someone else)
    An other way is to look at the config file of ur term to see what those colors represent

  6. #5
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by Gnux
    Lo
    To know do a
    Code:
    ls -l
    then look at the first caracter for example:
    Code:
    ls -l /dev/dvd
    lrwxr-xr-x  1 root  wheel  4 Dec 14 09:35 /dev/dvd -> acd0
    This is a symbolic link (see the little l at the beginning), u've got directory (d), blocks (b) etc...look in some manual it should be explain (I cant find a link here about that maybe someone else)
    An other way is to look at the config file of you term to see what those colors represent
    Can i say that this a copy of folder, that any changes on this folder will affect the original 1
    Proper Planing is a way of success

  7. #6
    Linux User
    Join Date
    Sep 2003
    Posts
    254
    Quote Originally Posted by thcc2
    Can i say that this a copy of folder, that any changes on this folder will affect the original 1
    Euh to copy a folder:
    Code:
    cp -R /my/folder /tmp
    then u could make all the changes u want in the copy of ur folder located in /tmp/ur/copied/folder it will never impact on the original one.
    I don't understand the goal of such thing but...

  8. #7
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by Gnux
    Quote Originally Posted by thcc2
    Can i say that this a copy of folder, that any changes on this folder will affect the original 1
    Euh to copy a folder:
    Code:
    cp -R /my/folder /tmp
    then u could make all the changes u want in the copy of you folder located in /tmp/you/copied/folder it will never impact on the original one.
    I don't understand the goal of such thing but...
    I think they make the apache as a link because they dont want to modify the original content of this folder which is the Apache installation folder. One more quetion to ask u since we are talking about file copy, what is the command to send file to a drive?
    Proper Planing is a way of success

  9. #8
    Linux User
    Join Date
    Sep 2003
    Posts
    254
    Quote Originally Posted by thcc2
    Quote Originally Posted by Gnux
    Quote Originally Posted by thcc2
    Can i say that this a copy of folder, that any changes on this folder will affect the original 1
    Euh to copy a folder:
    Code:
    cp -R /my/folder /tmp
    then u could make all the changes u want in the copy of you folder located in /tmp/you/copied/folder it will never impact on the original one.
    I don't understand the goal of such thing but...
    I think they make the apache as a link because they dont want to modify the original content of this folder which is the Apache installation folder.
    If u modify a file linked u modify the file itself: a link is not a copy of a file so if u got a link to httpd.d from foo if u modify httpd.d foo will be different u understand?
    Quote Originally Posted by thcc2
    One more quetion to ask u since we are talking about file copy, what is the command to send file to a drive?
    mv?
    Code:
    mv my_file my_drive
    See the man pages of mv and ln (to understand what's a link)

  10. #9
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by Gnux
    Quote Originally Posted by thcc2
    Quote Originally Posted by Gnux
    Quote Originally Posted by thcc2
    Can i say that this a copy of folder, that any changes on this folder will affect the original 1
    Euh to copy a folder:
    Code:
    cp -R /my/folder /tmp
    then u could make all the changes u want in the copy of you folder located in /tmp/you/copied/folder it will never impact on the original one.
    I don't understand the goal of such thing but...
    I think they make the apache as a link because they dont want to modify the original content of this folder which is the Apache installation folder.
    If u modify a file linked u modify the file itself: a link is not a copy of a file so if u got a link to httpd.d from foo if u modify httpd.d foo will be different u understand?
    Quote Originally Posted by thcc2
    One more quetion to ask u since we are talking about file copy, what is the command to send file to a drive?
    mv?
    Code:
    mv my_file my_drive
    See the man pages of mv and ln (to understand what's a link)
    Then what is the purpose of it
    Proper Planing is a way of success

  11. #10
    Linux User
    Join Date
    Sep 2003
    Posts
    254
    Just read the man pages:
    Code:
    The ln utility creates a new directory entry (linked file) which has the
    same modes as the original file.  It is useful for maintaining multiple
    copies of a file in many places at once without using up storage for the
    ``copies''; instead, a link ``points'' to the original copy.
    Where is the difficulty?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •