Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  36] [ 0]  / answers: 1 / hits: 196277  / 2 Years ago, wed, january 12, 2022, 7:32:24

Possible Duplicate:

How can I hide directories without changing their names?






I'm using Ubuntu 11.10 and I want to make a file hidden.



How do I make for example a .docx file or a directory hidden?



Please put a way to do it with and without the terminal?


More From » 11.10

 Answers
0

Hiding files and directories in Linux is very simple. All you have to do is append a period at the beginning of the name of the file/directory.



With terminal:



mv filename .filename


(This command also works with directories)



Some additional information about the mv command; if the second argument is a directory, the first argument will be moved into that directory, rather than being renamed to it (regardless of whether the first argument was a file or a directory). If the first argument is a directory and the second is a file, you will get an error. If both the first and the second arguments are existing files, the second will be overwritten without prompting you! If you wish to be prompted before overwriting, add -i to the command before either argument



To view hidden files and directories in a terminal, use ls -a.



Without terminal:



Click on the file, press the F2 key and add a period at the beginning of the name. To view hidden files and directories in Nautilus (Ubuntu's default file explorer), press Ctrl+H. The same keys will also re-hide revealed files.


[#40147] Thursday, January 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
overine

Total Points: 20
Total Questions: 109
Total Answers: 98

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
overine questions
Tue, Jul 12, 22, 00:27, 2 Years ago
Wed, Jan 11, 23, 02:15, 1 Year ago
Tue, Aug 10, 21, 01:39, 3 Years ago
;