473,854 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to copy hidden files

154 New Member
Hi I am trying to copy hidden file but i am not seeing anything to copy hidden files Could somebody help me with this please.
Feb 14 '07 #1
4 18345
7,435 Recognized Expert Expert
I don't understand the problem. You copy just like any other file.
Feb 14 '07 #2
202 New Member
Hi I am trying to copy hidden file but i am not seeing anything to copy hidden files Could somebody help me with this please.
Make sure you have the right permissions. (ie that you are root)

ls -la will show all of the files then you just use the cp command

Expand|Select|Wrap|Line Numbers
  1. cp file.old file.new
If you want to move the file and not copy it then replace the 'cp' with 'mv'
Feb 14 '07 #3
154 New Member
the cp command was not working when i tired to copy hidden files. I have cp -fRp file file

It copied the files as normal but the .htaccess and other hidden files did not copy. Just tried cp .* looks like it worked this way.

Thanks guys
Feb 14 '07 #4
1 New Member
You have to copy the file in it's literal path. Example:

cp /export/home/username/.hiddenfile /export/home/username/.hiddenfile.dat e

this makes a copy of the hidden file in the same directory with a different name.
Sep 15 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Ben Kial | last post by:
I need to write a program to "copy" files and preserved the files' atime, mtime, ctime, file permissions. I also need to have this program working in Unix and Windows, where the "Archive" attribute on the file also has to be preserved (any more Windows idiosyncrasies?). Any help will be very much appreciated. Thanks in advance. Ben
by: ōyvind Isaksen | last post by:
I have 2 textboxes (textbox1 and textbox2) and one hidden field (hidden). I want the value of the hidden field to be both values of textbox1 and textbox2 separated with "-". Example: textbox1 = "15" textbox2 = "25" Hidden = "15-25" Hope someone can help me!!!
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) { document.getElementById(nameOfDiv).style.visibility='visible'; document.getElementById(nameOfDiv).style.height='auto'; if (nameOfDiv != 'weblogs')
by: Greg Bell | last post by:
Hi, Can someone tell me where to look to enable me to read "Folder Options" user settings for hidden/system files from within C#/VB.Net/Any other .NET language. I'm pretty sure it must be part of the framework, but I'm buggered if I can figure out which part. I've tried googling for it, but to no avail. Any ideas? Thanks
by: samoore33 | last post by:
I found a real nice article on how to copy a directory on MSDN. The only problem is that I can not figure out how to get the namespace Microsoft.VisualBasic.MyServices. I wanted to know if anyone else has had experience with this, or knows of a different way to copy a directory using VB. I found ways to copy files, but not having a lot of luck with finding a way to copy a directory other then this information I am finding on MSDN.
by: froilan03 | last post by:
Hi, Please help me to solve this one. I have page with tables (including hidden tables), my problem is how can I copy both the content of the table. Here is my code snippets: function copyTable(tableNumber) { // Get the table frame var tableIFrame = eval("generatedFrame" + tableNumber); // Get the table
by: Spizzat2 | last post by:
I've got a web page with some hidden elements that can be shown through various methods. What I'd like is, when the user tries to copy the visible stuff on the page, it doesn't copy the hidden stuff in between. Is there a simple way to do this? I know I could move the whole element using some DOM scripting, but I'd really like to do it just using something similar to style.visibility=hidden. Any suggestions? Here's some basic code to...
by: labmonkey111 | last post by:
The company I work for uses a very large program in Access/VBA. Whenever I edit it, I copy the latest edition to my harddrive and make the necessary changes, then copy the modified forms/queries/reports back to a central copy where we all merge our changes. The problem I am having is that this program is very, very large (WAY beyond the scope of what VBA was ever intended for I'm sure). I repeatedly find myself coping a hundred or more files...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Duprť who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.