如何将可见文件/文件夹复制到隐藏文件夹?含/.wine文件夹场景
Hey there! Let me walk you through two straightforward ways to copy your visible program folder into the hidden /.wine directory—one for point-and-click fans (graphical interface) and another for terminal lovers (command line).
方法一:图形界面操作步骤
- First up, open your file manager and locate the visible program folder you want to copy.
- To see hidden directories like
.wine, press theCtrl + Hshortcut (this toggles hidden files on/off in most Linux file managers). Alternatively, you can check the "Show Hidden Files" option in the "View" menu at the top. - Now you’ll spot the
.winefolder in your home directory—double-click to enter it. - Go back to your target program folder, right-click it, and select "Copy" (or hit
Ctrl + C). - Right-click in an empty space inside the
.winefolder and choose "Paste" (or pressCtrl + V). Wait for the copy process to finish, and you’re done!
方法二:命令行操作步骤
- Launch your terminal first—you can use the
Ctrl + Alt + Tshortcut to bring it up quickly. - Let’s assume your program folder is at
~/Documents/MyProgram(replace this with your actual folder path). Use thecpcommand with the-rflag (this tells it to copy the folder and all its contents recursively):cp -r ~/Documents/MyProgram ~/.wine/ - If you’re not sure the exact path of your program folder, right-click it in the file manager and select "Copy Path", then paste that into the command instead of the example path.
- Hit Enter to run the command. Once the terminal finishes processing, your folder will be in
.wine.
Quick Note
If you get a "permission denied" error during the copy, you can prepend sudo to the command (just be careful—only use this if you trust the folder you’re copying):
sudo cp -r ~/Documents/MyProgram ~/.wine/
Enter your user password when prompted, and the command will proceed.
内容的提问来源于stack exchange,提问作者Mc Jorch
相关产品推荐
相关产品推荐

