How to view and copy hidden files and folders in Linux?

How to view & copy hidden files & folders in Linux

  • Would need some help on viewing & Moving the Hidden Files & Folders.

  • Answer:

    Hidden files are just files with a . in the beginning of their name. To list files, including hidden ones from a command line: ls -a To list only hidden files: ls -a .* Hidden files can be moved/copied/removed just like any other file: mv .log .log_old # move a file cp .log .log_backup # copy a file rm .log # remove a file

Shadab Mukri at Server Fault Visit the source

Was this solution helpful to you?

Other answers

If you are using Gnome and the Nautilus file manager, you can select "Show Hidden Files" in the "View" menu. The keyboard shortcut is Ctrl-H. On the command line the option to "ls" is "-a" to see hidden files (the ones with '.' as the first character in the filename).

asjo

Following up on Trey's answer, if you want to copy everything in a given directory, including the hidden files, you should be fine with: cp -r /something/ /somenewplace/

Justin Alan Ryan

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.