Hi I have this . folder under tmp 1/ How they can make it this folder? 2/ How can I remove it? Thank you Send instant messages to your online friends http://uk.messenger.yahoo.com
adrian kok wrote:> Hi > > I have this . folder under tmp > > 1/ How they can make it this folder? >Please provide the output of ls -la /tmp Are you referring to ./ or actually something like \\./ ?> 2/ How can I remove it? >If it is really ./ then you dont as this is /tmp If it is \\./ then rm -vr /tmp/\\.> Thank you > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6672 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.centos.org/pipermail/centos/attachments/20091228/3b51360d/attachment.bin>
> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of adrian kok > Sent: Monday, December 28, 2009 18:50 > To: centos at centos.org > Subject: [CentOS] mkdir this "." directory > > Hi > > I have this . folder under tmp > > 1/ How they can make it this folder?cd .> > 2/ How can I remove it? >cd .. rmdir tmp> Thank you > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >I am not sure if this is a joke or not. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.
> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Larry Brower > Sent: Monday, December 28, 2009 18:58 > To: CentOS mailing list > Subject: Re: [CentOS] mkdir this "." directory > > adrian kok wrote: > > Hi > > > > I have this . folder under tmp > > > > 1/ How they can make it this folder? > > > > Please provide the output of ls -la /tmp > > Are you referring to ./ or actually something like \\./ ?Either would not show up as a single .> > > > > 2/ How can I remove it? > > > > If it is really ./ then you dont as this is /tmp If it is > \\./ then rm -vr /tmp/\\. > > > > > Thank you > > > > Send instant messages to your online friends > > http://uk.messenger.yahoo.com > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > http://lists.centos.org/mailman/listinfo/centos > >-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.
adrian kok wrote:> Hi > > I have this . folder under tmp > > 1/ How they can make it this folder? > > 2/ How can I remove it? >first you gotta figure out its -real- name. most likely, its " ." or ". " but the space could also be an unprintable character.
adrian kok <adriankok2000 at yahoo.com.hk> wrote:>>I have this . folder under tmp << It's called a directory, not a "folder" and there's one in every directory. It's a hard link to the current directory, just like ".." is a hard link to the directory above.>>1/ How they can make it this folder? << Create any directory, and it will appear, as I've explained.>>2/ How can I remove it? << If you remove it, you'll be removing the /tmp directory itself, which is not a bright idea. Imagine someone sitting on a branch, sawing away between themselves and the trunk of the tree. . . Best, --- Les Bell [http://www.lesbell.com.au] Tel: +61 2 9451 1144
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 adrian kok wrote:> Hi > > I have this . folder under tmp > > 1/ How they can make it this folder? > > 2/ How can I remove it?Thanks, I just about spit my coffee out my nose when I read this, but it made my day. :) - -- Mike A. Harris Website: http://mharris.ca Google Wave: mike.andrew.harris - at - googlewave.com https://identi.ca/mharris | https://twitter.com/mikeaharris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFLOer14RNf2rTIeUARAuzRAJ9NjZhayk4kKWYAQbyMswx8iSGTRgCghdtr R8Qr693emj4S00PikVEQD1w=mvHj -----END PGP SIGNATURE-----
On 12/29/09 1:41 PM, Mike A. Harris wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > adrian kok wrote: >> Hi >> >> I have this . folder under tmp >> >> 1/ How they can make it this folder? >> >> 2/ How can I remove it? > > Thanks, I just about spit my coffee out my nose when I read this, but it > made my day. :)Last day of vacation :D . http://dban.sf.net is recommended for removing "." directories from harddisks.. -- Eero, RHCE
On 2009-12-28 18:49, adrian kok wrote:> Hi > > I have this . folder under tmpIt is a system-generated link to the current directory. Don't touch that. Ugo
On 28/12/09 23:49, adrian kok wrote:> Hi > > I have this . folder under tmp > > 1/ How they can make it this folder? > > 2/ How can I remove it? > > Thank you > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >Your question may be amusing to some. Just take no notice of them :p I'll give you a quick briefing though, you will find the "." in every single directory, without it, you probably would be completely unable to browse through directories at all. The "." can be used as follows: "cd ../" - This would step you to a lower directory. in other words you would go from "/home/you/folder" to "/home/you" This could also be used more for example to go from "/home/you/folder /folder\ 2/" to simply the main "/" (This is the very top directory of a drive) you could do: "cd ../../../../" (or in this case you could cheat and just do "cd /", but I'm just using this as an example ;-)) another use for the dots is like this: "./configure" - Generally used when configuring make files, but this tells the system to stay in directory in right now, and run that file. Also could be used like this: "sh ./shfile.sh" which pretty much does the same thing as above, only this time your telling an application to run first, and then telling the app to do above. Oh and eh, do *not* delete those dots ;) Also, you cannot create directory with just a dot. However, you could make a directory starting with a dot. For example ".folder" this will hide the directory from normal view (However can still be seen given the right commands) If you run with a gui, you'll probably have a few dotted folders in your home dir. If so run "ls" and then "ls -a" and you'll see a few folders magically appear. Bare in mind, if your out of ~ you will need to pop back to it, to jump back to home dir just run "cd ~". :-) Hope this helps :-) -- Jake