473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to copy hidden files

154 100+
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 18326
drhowarddrfine
7,435 Expert 4TB
I don't understand the problem. You copy just like any other file.
Feb 14 '07 #2
cassbiz
202 100+
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
  2.  
If you want to move the file and not copy it then replace the 'cp' with 'mv'
Feb 14 '07 #3
jonathan184
154 100+
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
You have to copy the file in it's literal path. Example:

cp /export/home/username/.hiddenfile /export/home/username/.hiddenfile.date

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

3
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"...
2
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 =...
4
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) {...
4
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...
12
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...
2
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...
2
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
jinu1996
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...

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.