The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
299 views

Copying to an external NTFS partition: slows down when I copy many files at once

I have made my peace with the fact that NTFS(-3g) on Linux will be slower than NTFS performance on Windows. I can write to my external NTFS-formatted USB 3.0 HDD at about 100+ MB/s on Windows while I ...
1
vote
2answers
49 views

Translating user id when creating image

I want to create an image (for example ext3 image) from a given directory hierarchy. This directory hierarchy is owned by a given user. But on the final image, I want the files to be owned by ...
1
vote
1answer
831 views

Need small and light stand-alone one-file ftpd server

Can somebody suggest a small one-.c-file ftpd server, so I can run it on any port and it would accept ftp upload with any l/p on that port and put a file into a folder where it runs? No config files ...
1
vote
3answers
105 views

How to copy-merge two directories?

I have two directories images and images2 with this structure in Linux: /images/ad /images/fe /images/foo ... and other 4000 folders and the other is like: /images2/ad /images2/fe ...
1
vote
1answer
277 views

Symlinks and permissions in backup archives

I installed linux on another computer and I want to move my /home directory to that computer. I want to backup that directory with any file permission, symlinks etc. how should I do it? Are there any ...
1
vote
3answers
427 views

Adding timestamp to file/dir name

I am trying to write a script, that will copy file or directory with added timestamp to filename/dirname Something like: cover.jpg --> cover_18-01-2014_17:37:32.jpg directory --> ...
1
vote
2answers
112 views

Copying and renaming files to a single directory by a single shell script

I have multiple files with an example of how they look like shown below. -rw-r--r-- 1 my_user users 12 Dec 13 09:56 Example_30_001_20130913175000.DAT -rw-r--r-- 1 my_user ...
1
vote
1answer
33 views

How to ignore files if there is an similar file with the same size?

I want to list the files in a directory, using ls. Typically, the files in that directory have the same name (except for the extension - one has extension .rej, one has .failed) . If a pair of files ...
1
vote
2answers
237 views

“Out of Memory” error while copying large files with pcmanfm

This is an older machine running a Debian-based distro with lxde and pcmanfm used as file manager. pcmanfm normally runs quite well, except when it comes to copying very large files (e. g. *.VOBs from ...
1
vote
1answer
155 views

Copy file from cifs mount when a file is changed

I have a windows XP machine, and on this i'm running a weather station. The software updates several files in a folder. This folder is mounted via samba on the webserver(debian) I wan't to monitor ...
1
vote
1answer
531 views

How to clone a read-only portion of /proc file system

The problem with reading /proc file system is that it is not atomic. I tried using a library (procfs in Python) that wishes to read it, but it has glitches about 5% of the time because the process ...
1
vote
1answer
247 views

Copying a directory to multiple users home dir and changing user/group ownership

On my Ubuntu server there are about 150 shell accounts. All usernames begin with the prefix u12.. I have root access and I am trying to copy a directory named "somefiles" to all the home directories. ...
1
vote
1answer
1k views

Insert selected filename while copying in Midnight Commander

Is it possible to paste the selected filename into the copy popup, so when I hit F5 this filename will be in the 'to' section, so I can adjust it? For example: I want to copy ...
1
vote
1answer
494 views

Bash command that uses wildcard in place of folder to copy folder contents of multiple files into one directory?

I have a directory ~/dir that contains a bunch of random folders like: ~/dir/av 801 and ~/dir/lm 320. I want to copy the contents of every inner folder (ie: av 801) into a different directory. The ...
1
vote
2answers
8k views

Copy file from Windows shared folder to Unix

I am totally new to Unix. I am writting a script which will copy files from a Windows shared folder to Unix. In Windows, when I type \\Servername.com\testfolder in Run command I am able to see ...
1
vote
1answer
98 views

Will files created under source directory after running `cp` be copied?

Suppose I use cp to copy a directory to another place. If the process takes long, and I create a new file under the source directory, will it be copied, or does it depend on something?
1
vote
1answer
1k views

Copying files between users Using Telnet

How to copy a file from home directory User A to home directory of User B using telnet.
1
vote
1answer
4k views

Is there a command line utility that copy files with progress information? [duplicate]

Possible Duplicate: move files with progress bar cp gets the job done but it would be nice if it had a little more feedback. Are there any utilities out there that do this? Personally, my ...
1
vote
1answer
339 views

File manager with spring-loaded folders?

One thing I miss about Finder, Mac OS X's file manager, is the spring-loaded folder function where if you drag a file(s) over another folder long enough, the folder would open and you can "navigate" ...
1
vote
0answers
27 views

Copying files to a directory shared via ACL doesn't get default mask

I'm trying to setup a simple shared directory on an ext4 filesystem for a group of users to work on. Let's say i just need to give all permissions to all users belonging to the group "workgroup" to ...
1
vote
1answer
36 views

Replace cp function by rsync [duplicate]

I'm trying to replace my cp function by an rsync function My cp function is the following find /home/odroid/USBHD/Movies/ -iname "*.mkv" -mtime '-1' -exec cp -n {} /home/odroid/NASVD/Movies \; do ...
1
vote
1answer
39 views

FTP “put” not copying file to remote host when ran from shell script but copies the file to remote host when ran manually

ftp -n ${FTP_HOST} << STOP user ${FTP_USERNAME} ${FTP_PASSWORD} binary lcd ${FTP_FROM_DIR} cd ${FTP_TO_DIR} put ${reportFileName} STOP That is my code which is not ...
1
vote
2answers
3k views

Java code to copy files from one linux machine to another linux machine

I'm looking for java code to copy files to a remote linux system. I have tried Runtime.getRuntime().exec() function by passing an scp command, but each time I run the program it is asking for the ...
1
vote
0answers
274 views

Copy files to parent directory using relative pathnames [closed]

If I'm in the current working directory of oxford. How would I copy outline.doc, and place it into the sample_dir directory using relative pathnames? I've tried cp outline.doc ../outline.doc
1
vote
0answers
57 views

How to back-up files from nautilus retaining the time stamp?

I connected my android tablet (Asus fonepad7 me372cg) to laptop using usb cable. It showed up in nautilus in Ubuntu 13.04. I've to back-up the files in the tablet (specially the videos & photos) ...
1
vote
0answers
45 views

copy files from Google drive [closed]

I've installed a terminal on my nexus tablet and would like to batch copy files from a sub-directory in Google drive to my tablet's dcim directory. how do I do this?
1
vote
0answers
88 views

Copy file if no error was encountered, else delete copied portion

I am copying a folder in Linux with plenty of files. Some of the files give me error like this: Error splicing file: Input/output error The problem is that it keeps the file in new location though ...
1
vote
1answer
191 views

cp /etc/DIR_COLORS ~/.dir_colors not responding

I'm using CentOS 6.5 and Putty. My problem is that directory file names are shown in dark blue color which is hard to read. I google searched and found this link; basically it's copying the DIR_COLORS ...
1
vote
1answer
424 views

cp --backup=numbered for folders

To backup existing files with number suffixes, I can do the following: cp --backup=numbered afile /path/to/dest But this does not apply when I try to do the same with a folder: cp -R ...
1
vote
0answers
259 views

How to configure character encoding in OpenFT?

When transferring files over: http://ts.fujitsu.com/products/software/openseas/openft.html then the charset of files get's scrumbled...I can't seem to find any character encoding settings, how to ...
0
votes
1answer
99 views

Creating the first backup

I heard that rsync isn't the best one when creating the first backup in terms of performance. Instead it is the best for the later backups. So I wonder what are some better commands for creating the ...
0
votes
1answer
303 views

Copy file while replacing text in it

I'm writing a script to publish a webapp. While copying files, I must replace a placeholder current_date in a file with the current date. I would start with something like this to define the date ...
0
votes
1answer
70 views

Is it possible to use dd to clone only the part of the hard drive which is used?

if only 1/3 of a 300GB hard disk is used. Is it possible to use dd to clone the drive (but only the 100GB that is used)? dd if=/dev/sda of=clone.img
0
votes
2answers
51 views

Copy directory not just the contents

I want to copy a directory into another directory. For example, cp -r dir1 dir2 copies the contents of dir1 into dir2. I want to copy dir1 itself into dir2 so that if I ls dir2 it will output dir1 ...
0
votes
1answer
62 views

How to copy a file within its original directory, most easily? [duplicate]

What I want to do is basically cp long/directory/path/file long/directory/path/file-copy This or similar operations are pretty common. Typing out the whole path twice is obviously awkward, even ...
0
votes
1answer
1k views

How to copy files nested in directories that match a pattern?

I'm looking to copy files from subdirectories that match this pattern vendor/plugin/*/tasks/*.rake into a folder lib/tasks I think that this could be done several ways, but wanted to see if a ...
0
votes
1answer
138 views

Importing files from Windows to Linux [closed]

I would like to copy a CSV file from a Windows environment to a Linux environment. Both environments communicate through a terminal emulator called SecureCrt.
0
votes
1answer
831 views

USB copy hangs for a while when reach the 100%

When I copy files of a considerable size (for example right now one of 689MB) to a USB stick, the copy hangs at 100% for 5 min or more. I have tried both Nautilus and rsync --progress. With the ...
0
votes
3answers
4k views

how to copy files from windows to linux witout password using a script or program?

I did this to copy files between Windows and Linux. C:\Documents and Settings\668340\My Documents\putty>pscp "C:\Documents and Settings\563456\abc.txt" "auto_root@10.39.5.41:/home/auto/" But it ...
0
votes
0answers
17 views

Prime New GlusterFS Cluster w/ 24GB of Files

I am attempting to load my new glusterfs cluster on AWS with my existing files that total in size of over 24GB. From my calculations, it is going to take 8 days to transfer all the files via the ...
0
votes
1answer
108 views

Connect psftp between Unix and Windows server

I need to transfer files from Unix to Windows server. After creating a folder in the windows server files need to be copied from Unix to Windows. I am using psftp to do this process.So, I am trying to ...
0
votes
0answers
79 views

My computer beeps while copying files

Whenever I create disk activity on my memory stick, my headphones create very annoying beeps at various notes. It doesn't happen with my in built speakers, and it hasn't happened before. I'm on Ubuntu ...
0
votes
0answers
55 views

Shell script use ssh forwarding to send a file to a second system

I have ssh forwarding enabled and ssh to server A. On server A I want to run a script as root and take advantage of the ssh key being forwarded for USER to send a file to system B. I'm getting a ...
0
votes
2answers
91 views

Can I copy a folder with a progress bar? [duplicate]

I want to copy a folder with some kind of progress bar. I tried "pv" (Pipe Viewer) but it seems there is no way to copy a folder. Actually I'm not interested in using a script for pv - I would ...
-1
votes
2answers
74 views

Using .. and . to copy files from dirctories

I'm trying to copy a file from the home directory to the current directory( which is a subdirectory of a directory in home) using .. and . instead of path names or ~ This is what I tried, but it ...
-1
votes
1answer
41 views

How can I set up a job to copy a directory, not overwriting existing files? [closed]

How can I create a job that copies the Directory /media/hdd/docs to the Windows share \192.168.1.3\Docs each night at 23:00, not overwriting existing files. The Windows share is shared to "Everyone" ...
-1
votes
1answer
362 views

How to copy data from Linux Server to Windows Server

I need to copy from Linux server to Windows. To copy between Linux servers we can use multiple options like scp, or rsync but how to copy data if I have to copy on windows Server from Linux Server. ...
-1
votes
2answers
188 views

Copyed mysql files from previous system now error while connect, what to do?

Fist of all I have the files but the old system is gone. I took the folders in /var/lib/mysql/ and gave then the permissions the mysql folder that was in there had. user mysql group root only ...
-2
votes
1answer
50 views

Copy a file into another directory's inside [closed]

I want to copy positionXYZ into another directory's inside I want both of them.I put: Tutorials myname $ cp -r positionXYZ Documents/Gerris\ Programs/Tutorials/tutorial6/ Then it says : cp: ...