Visit Our UNIX and Linux User Community


How to change File Description


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to change File Description
# 1  
Old 08-15-2001
Question How to change File Description

When I am browsing the web and I end up in a directory with no HTML index file (ie index.html), I see something like this:

Code:
Index of /k

 Name               Last modified       Size   Description
--------------------------------------------------------------------
 115-1564_CRW.jpg   16-Feb-2001 12:01   58k

And sometimes there is something to the right of the file (ie, its description) under the "Description" column and sometimes there isn't.

I also see the description column in my ftp software.

I would like to know how to add or alter that description (I have files people download from a directory on my website, and the description would be helpful to them). I use CuteFTP as my FTP client. I am comfortable with telnet as well.

I can't find any documentation anywhere that says how to do this.

Please help me!

Thanks,
Zachariah
# 2  
Old 08-15-2001
descript.ion

You will need to create the file descript.ion for each directory you want descriptions to be displayed.

Have a look at Armaster @http://www.mogacom.com/ which is a tool that can you do it for you
# 3  
Old 08-15-2001
Question It sorta worked

Thanks for pointing me in the right direction at least. I can now search on "descript.ion".

I am able to see the descriptions when I log in to my ftp account, but if I just go to:

http://contextfree.org/k/

then the descriptions don't show up. (this is where I actually find them usefull to show up)

Also I want to know how to make "descript.ion" the equivalent of "hidden" in the MS world (ie so you can't see it on that page).



After some thought - would it just be better to do a server side include of some sort, or some PERL script to generate a directory listing (and make it look at the descript.ion file for the descriptions) within an index.html file in the /k (or other) directory?

Last edited by PearPie; 08-18-2001 at 03:28 PM..
# 4  
Old 09-19-2001
any ideas?

I'd really like some help here, or even just opinions (hopefully with examples)
# 5  
Old 09-20-2001
If you are running Apache, the proper solution is to add an "AddDescription" directive in your httpd.conf or .htaccess file.

Example: AddDescription "GZIP compressed tar archive" .tgz

You must have the "FancyIndexing" option turned on also (with:
"IndexOptions FancyIndexing")

For more info:
http://httpd.apache.org/docs-2.0/mod...adddescription
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #183
Difficulty: Easy
Over 40% of UNIX.com users voted that bash was their most useful shell.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cryption and description for csv file

Hi, Requirement is encrypt key should pick value from file instead of passing their in command. how can i create .p file which contains crypt value. i.e. crypt <trade.csv> tr.x $CKEY fcrypt.p crypt < tr.x $CKEY fcrypt.p i want to encrypt and decrpt csv file and i am using following... (2 Replies)
Discussion started by: rizwan.shaukat
2 Replies

2. Shell Programming and Scripting

Description using last command

Hello Experts, I need the description (like if user has done sudo,logging from winscp termial or ssh from other machine) using the last command.Can someone help me out please. Thanks. (3 Replies)
Discussion started by: ahmed.vaghar
3 Replies

3. Homework & Coursework Questions

Description of OR AND Operator

From the below i would need the difference using between && and || error_func() { # Standard error function ] && print -u2 "ERROR: $*" exit 1 } ] && error_func "Source Directory is missing as input argument" ] || error_func "Source Directory does not... (1 Reply)
Discussion started by: arun888
1 Replies

4. Shell Programming and Scripting

Delete Description column from a csv file

Hi Friends, I have a scenario where in I need to implement the following logics. 1. Delete a column named "DESCRIPTION'" from a csv file(sample.csv). 2. Move "CURRENT_SALES" column to 10th position in columns from the same file. Thanks in Advance, Pons (10 Replies)
Discussion started by: ponnst
10 Replies

5. UNIX for Dummies Questions & Answers

Need to modify a delimited file using UNIX commands. Please find description

i have a '|' delimited file having 4 fields. now i want to sort the data by combination of first three fields without changing order of 4th field. input file looks like this: 3245|G|kop|45 1329|A|uty|76 9878|K|wer|12 3245|G|kop|15 1329|A|uty|56 9878|K|wer|2 3245|G|kop|105... (4 Replies)
Discussion started by: ankurgoyal2408
4 Replies

6. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

7. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies

8. AIX

2 way and 4 way Hardware Description

Hi, I would like to know the significance of 2 way and 4 way and 8 way Hardware Description, like 2 way p595 and 4 way p695 servers. What exactly does "2 way", "4 way" mean ? (1 Reply)
Discussion started by: praveenr
1 Replies

9. Programming

transfer an open file description between two process

How can I transfer an open file description between two process? (1 Reply)
Discussion started by: xu_wen_dong
1 Replies

Featured Tech Videos