What Is the Command to Hide a File in Unix?
Contents

To hide an existing file or folder using the Terminal, press Ctrl + Alt + T to open a Terminal window. The “~” character is a shortcut for your Home folder. The above path expands to /home/lori/Documents/FilesToHide/. Then, we use the ls command to list all the unhidden files and folders in the current folder.

What is the command to hide a file in Linux?

Open folder or directories in your GUI file manager. Press CTRL+H to see or hide hidden files along with regular files.

How do you create a hidden file in Unix?

You can also mark a file as hidden using a graphical interface.

  1. Right-click the file you want to hide.
  2. Then, select Rename.
  3. Make the file hidden by placing a period at the beginning of the filename.
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest