#1 (permalink)  
Old 01-09-2005, 12:15 AM
mahdionline's Avatar
Registered User
 
Join Date: Oct 2003
Posts: 127
mahdionline is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2005, 03:31 PM
Registered User
 
Join Date: Dec 2001
Posts: 1,558
haze is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-01-2006, 01:56 AM
Registered User
 
Join Date: Mar 2002
Posts: 419
spaceman
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-01-2006, 03:59 AM
Registered User
 
Join Date: Mar 2002
Posts: 419
spaceman
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:50 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc