include a hidden file in a tar

I need to tar all the files in my current dir (some are hidden files).

when I issued the command "tar cvf temp1.tar *" , then extracted the tar, I couldnt find the hidden files.

Can some one plz help me.. if I need to include any additional options while issueing tar command or any workaround is available for this..

Thanks in advance.

Bindu

[373 byte] By [bindu_priyaa] at [2007-11-26 17:06:35]
# 1
Hidden files are hidden.did you do "ls -lta" to see the hidden files under temp1 after extract?
shankiea at 2007-7-8 23:34:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Hello

Check first if the file has been included into the tar archive (tar tf ...).

Typically "*" means: not including hidden files so "tar cf x.tar *" will not include hidden files.

In this case type: "tar cf x.tar * .*" (with a space between the first "*" and the ".")

Martin

Martin_Rosenaua at 2007-7-8 23:34:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
Don't use '*' at all. Just use '.' to specify the directory. That will include every file in the directory.-- Darren
Darren_Dunhama at 2007-7-8 23:34:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...