Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default Putty and file attribute

    Hi

    I see in putty(ssh) that files have different color .some of file are green and this files have a *

    and some of file are another color ?

    How can i discover files attribute by this matter ?

    How can i discover files attribute by a command ? ( for example : I have a host on my server that all of file in this site convert to green* and I cannot run or visit that file from http)

    Regard
    Mahdionline

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Its a part of the ls ( manual: type man ls at the shell prompt ) command, when invoked with --color=. Now, you'll probably say, "well i don't use that switch when i use ls". No, but you'd have an alias somewhere ( probably in /etc/bashrc ) such as:
    Code:
    LS_OPTIONS='--color=tty -F -a -b -T 0';
    export LS_OPTIONS;
    alias ls='/bin/ls $LS_OPTIONS';
    Which would cause ls to actually be called using --color=tty -F -a -b -T 0 plus whatever other options you specify yourself.
    Beau Henderson

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    447

    Default

    Hmmm. After entering 'ls -al' I'm seeing a file name which appears in green and has a * (asterisk) beside it, eg:

    -rwxr-x-r-x 1 user user 2480593379 Apr 30 03:02 xyz.tar.gz*

    I wouldn't care except that I'm ftp'ing using Filezilla to the dir where this file (above) is saved and I can't see the file in the Remote Site view. I can see other files (with more restrictive perms and same owner) - just not this one. I'm logging in successfully as the user, and I've tried chmod'ing 777 the file, but despite refreshing my remote view I still cannot see this file. So I'm thinking it might be something to do wiith the fact that in Putty this file is being displayed in green and with an asterisk after it. Hence the question :-) The file is VERY big (2.5Gb) - not sure if this is a factor.

    Any takers?
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  4. #4
    Member
    Join Date
    Mar 2002
    Posts
    447

    Default

    Some just told me that you won't see any file >2Gb in size in an ftp client.
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

Similar Threads & Tags
Similar threads

  1. Recompile php with attribute
    By stefano.coccia in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-10-2010, 06:38 AM
  2. Editing or inserting ALT Attribute for Image
    By drdick in forum Security
    Replies: 20
    Last Post: 07-13-2009, 09:29 AM
  3. SMART Check and Attribute 190
    By rking in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 06-03-2009, 08:23 AM
  4. failed to read SMART Attribute Data
    By dimitris in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-20-2006, 06:00 AM
  5. Need Help: DBD driver has not implemented the AutoCommit attribute
    By Ediz in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-16-2006, 07:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube