How to Make Hidden Files on Ubuntu

Move the file., Make the file visible by renaming it from its "."

2 Steps 1 min read Easy

Step-by-Step Guide

  1. Step 1: Move the file.

    Move the file so that it is prefixed with a dot.

    For example, to move a file from the command line, type: mv file .file.

    This will also work with directories., prefix or, if you simply want to view it from the file manager, select "Show Hidden Files." or press Ctrl-H.

    From the command line, type: ls
    -a, to list all files.

    To search for this file, run: ls
    -a | grep *pattern* for files that match "*pattern*"

    using standard wildcards.
  2. Step 2: Make the file visible by renaming it from its "."

Detailed Guide

Move the file so that it is prefixed with a dot.

For example, to move a file from the command line, type: mv file .file.

This will also work with directories., prefix or, if you simply want to view it from the file manager, select "Show Hidden Files." or press Ctrl-H.

From the command line, type: ls
-a, to list all files.

To search for this file, run: ls
-a | grep *pattern* for files that match "*pattern*"

using standard wildcards.

About the Author

C

Cheryl Davis

A passionate writer with expertise in home improvement topics. Loves sharing practical knowledge.

51 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: