Skip to content

Instantly share code, notes, and snippets.

@dmdotin
Last active October 5, 2017 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmdotin/0f8a68f716b74a01972aa0334abc33f3 to your computer and use it in GitHub Desktop.
Save dmdotin/0f8a68f716b74a01972aa0334abc33f3 to your computer and use it in GitHub Desktop.
How to hide a folder / file in Ubuntu
2 Ways t try
1 ->
If the Folder having ad Dot OR Special Characters .. Try 1 st Method
Enter the Folder you want to hide a file or Sub Folder .
Rename the File or FOlder with a " Dot ( . ) " before the File / Folder name.
Save it.
2 ->
Open Terminal ( Ctrl+Alt+T )
Go to Folder By " cd " Command .
Ex. If your File / Folder is inside Home Folder
$ ls -a ( -a will show your hidden Files / Folders )
$ cd Videos ( You are inside Home/Videos Folder )
$ ls -a ( will show all files inside it )
$ mv Folder1 .Folder1 ( will insert a DOT Before the Folder1 & it will be Hided )
$ mv Filename1 .Filename1 ( will insert a DOT Before the Filename1 & it will be Hided )
Ex. If your File / Folder is inside Another External Disk Or Partitions Normaly it will mounted under /media
Or you can Right Click Properties .. Next window will show you the Location .. Copy it with /
$ cd /media/disk1 ( will allow user to go inside Location )
$ cd ls ( will show the Volumes mounted )
$ cd volName1/ ( will allow to enter volName1 )
$ ls -a ( will show all files inside it )
$ mv Folder1 .Folder1 ( will insert a DOT Before the Folder1 & it will be Hided )
$ mv Filename1 .Filename1 ( will insert a DOT Before the Filename1 & it will be Hided )
$ cd ( will Return you again Home Directory )
To Hide Or Show the Files / Folders
USE " Ctrl+h " inside the Main Folder where the subFolders or files resides
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment