Difference between revisions of "Hidden files"

From Linuxintro
imported>ThorstenStaerk
(Created page with "Hidden files under Linux are files that start with a dot. They are not included when using the * operator in bash: # ls .hidden a.out datei main.cpp # ls * a.out date...")
 
imported>ThorstenStaerk
 
Line 4: Line 4:
 
  # ls *
 
  # ls *
 
  a.out  datei  main.cpp
 
  a.out  datei  main.cpp
 +
 +
Here is one example what this means for you:
 +
 +
Take care if you want to [[backup]] your home directory! Taking a backup with the [[command]]
 +
[[tar]] cvzf backup.tar.gz *
 +
will NOT save your dot files, better use
 +
tar cvzf backup.tar.gz .

Latest revision as of 08:49, 16 June 2012

Hidden files under Linux are files that start with a dot. They are not included when using the * operator in bash:

# ls
.hidden  a.out  datei  main.cpp
# ls *
a.out  datei  main.cpp

Here is one example what this means for you:

Take care if you want to backup your home directory! Taking a backup with the command

tar cvzf backup.tar.gz *

will NOT save your dot files, better use

tar cvzf backup.tar.gz .