File attributes

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

File attributes

Postby Glenn » May 21st, '11, 23:07

At least I think that is what it would be called. I've noticed asterisks after file extensions on a few files. This is the first time I've ever seen something like this. What is their purpose please?
Code: Select all
-rwxrwxr-x  1 glenn glenn    142 May 21 16:58 .ck.sh*

This file was copied over from another partition / distribution (Fedora). It is used to start conky once the desktop is up.
Code: Select all
[glenn@mageia ~>$ cat .ck.sh
#!/bin/bash
sleep 10 &&
conky -c /etc/conky/conky.conf -q
# .ck.sh for the Toshiba laptop while running
# Mageia Linux. Last edited 05.21.11
Glenn
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS
User avatar
Glenn
 
Posts: 15
Joined: May 21st, '11, 01:55
Location: Salem, Mass

Re: File attributes

Postby jkerr82508 » May 22nd, '11, 00:22

It means that the file is executable - it can be run as a "program". Your quoted script file is an example of such a file.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: File attributes

Postby Glenn » May 22nd, '11, 01:39

No kidding? OK. I must then assume that the asterisk probably wasn't there until I ran chmod +x .ck.sh

Thank you for the reply.
Glenn
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS
User avatar
Glenn
 
Posts: 15
Joined: May 21st, '11, 01:55
Location: Salem, Mass


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron