Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In Ubuntu I can protect files by hiding them or change the owner and permission. But I am using dual boot (Windows and Ubuntu), so Ubuntu's hidden files and directories are easily visible from Windows.

How can I prevent people from viewing my hidden files in Windows, or how can I make a file hidden for Windows in Ubuntu?

share|improve this question
    
What kind of file-system are you using? ext3/4? Windows can't read those. Meaning your entire U:\(Ubuntu) drive will not me visible! –  blade19899 Dec 13 '13 at 15:47
    
@blade19899 Partition is ntfs. Which is visible by ubuntu and windows both. –  shantanu Dec 14 '13 at 16:52

3 Answers 3

up vote 1 down vote accepted

In Windows a file is set to hidden by setting attributes, so you can change attributes via Wine command line or DOSBox

wine cmd
attrib +h filename
share|improve this answer

To hide files and/or folders in Ubuntu you have two ways:

  1. add a '.' (without quotes, obviously) at the beginning of file's/folder's name
  2. List item if you don't want to rename the file/folder do this: in the same folder as the one in which are saved the files/folders you want to hide, create a new text file, and edit it writing the names of the files/folders you want to hide. Then save it and rename it as ".hidden" (without " too)

To see hidden files press CTRL+H.

share|improve this answer
3  
I think he mean to say that the hidden file in ubuntu must be hidden windows too –  Tachyons Feb 19 '12 at 10:26

See if you want to hide your files/folder in ubuntu

1.First open the directory containing your files.

2.Make an empty text document named ".hidden"

3.Open this document and then write the name of first file you want to hide go to next line and write second file/folder's name.

4.When you are finished doing description then save the document and after that press "ctrl+h".

5.Your files should be hidden now.

6.Thanx for reading this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.