Ubuntu :: Can't Copy File / What To Do?

Jan 30, 2010

I just got utorrent working and i need to place the file from my desktop to /usr/local/bin/ but when i do it says permission denied. So i tried sudo cp /home/username/Desktop/uTorrent /usr/local/bin/ but when i do that the terminal just shows > and just sits their and no commands work after that. Can someone tell me a alternative way or tell me why the terminal is doing this?

View 3 Replies


ADVERTISEMENT

General :: Copy A Read-Only File And Make The Copy Writable With A Single Cp Command?

Mar 1, 2011

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).

More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.

View 1 Replies View Related

Ubuntu :: Copy The File Via SSH \ Save The File Via SSH To This Server?

Mar 22, 2011

Now i install the Ubuntu 10.4 64 bit on Sunfire X4170I want to save the file via SSH to this server.But i m not sure how to configure.

View 4 Replies View Related

General :: Copy Certain File Types Recursively While Maintaining File Structure On Destination?

Jun 14, 2011

I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.

I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.

For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.

At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/

I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.

I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.

View 1 Replies View Related

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

Apr 19, 2011

I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.

View 4 Replies View Related

Debian Configuration :: Can't Copy A File From SMB Share To The Local File System

Aug 17, 2015

There is this bug in the latest version of Ubuntu, which is also Jessie, which is:

Can't copy a file from SMB share to the local file system: Software caused connection abort

The problem, apparently, is that newer versions of Samba hit servers with multiple requests at the same time, and for some reason the Zyxel and Iomega boxes can't handle this. The best solution they've come up with is to modify the smb.conf file on your server to include this setting: "max mux = 1".

Here is the reference material on this bug: [URL] ....

People who develop samba have fixed it in the latest version but neither the ubuntu nor Debian have released the fixed version of nautilus, as of yet. Here, is the reference: [URL] ....

View 0 Replies View Related

General :: Copy File Whose Source Path Is Mentioned In File To Specified Destination

Jun 3, 2010

I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..

View 1 Replies View Related

Programming :: Copy One File Content To Multiple File

May 28, 2010

I wanted to copy one file to multiple new files. I have an idea to write a script and do the operation. But here i m looking for any particular command to do this operation.

View 1 Replies View Related

General :: When Copy File And Then Power Off / On Copied File Is Gone

Nov 16, 2010

I have an embedded linux system (Debian 'Lenny') which booting from a microSD flash. If I make a copy of a file on the flash file system (cp test test1) and then power off (disconnect power spontanious). Connects power again and the system come up, but the file test1 is gone. How can I secure that test1 is NOT disappear if the power get lost?If I copy file and then restart system with reboot command, the file test1 does not disappear.

View 7 Replies View Related

General :: Copy Some Text In One File And Paste It To Another File?

Sep 19, 2009

favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?

View 7 Replies View Related

General :: Wrong File Permission / When Copy File

Oct 18, 2010

I have a C-function that create a file and then make a copy in the same directory, but somethin is wrong with permission or owners.The program starts as root user.The file creates by the program:

-rwxrwxrwx 1 root staff 199680 Oct 18 10:58 test

Ok, but after copying the permission is not the same.The file after copying (with new name) by the program:
-rw-r--r-- 1 root root 199680 Oct 18 10:58 test_copy

I want to have full permission of the copy, how to do??

View 2 Replies View Related

Ubuntu :: "Error Splicing File: File Too Large" - Copy To A 500G USB Drive?

Sep 10, 2010

I have seen this 3 times now - it's an updated Lucid with EXT4, trying to copy to a 500G USB drive?

View 3 Replies View Related

Ubuntu :: Nautilus Copy File/directory Path Should Not Put "file://" Prefix

Dec 27, 2010

I really missed the old Ubuntu file/dir. copying feature. When I copied in nautilus file explorer and paste into a terminal or text editor, I got the exact path (eg. /home/user/abc.txt), but when coming the Ubuntu 10.04, it added some "file://" prefix to the actual path (eg. file:///home/user/abc.txt), and I always had to manually delete the "file://" prefix. I don't see clearly that we need to place "file://" in front of the actual path (maybe just in the case we want to put the path in an Internet browser?). Wish this reversed back.

View 1 Replies View Related

Ubuntu :: Can't Copy A File

Oct 1, 2010

When i do cp filename destinationfolder it isn't happening. I don't get any error messages or any indication that the file copy didn't happen. But when I go to the destination folder and do ls; the file(s) not there. I tried it with sudo also and i get the same results. When I first did the copy it actually copied it somwhere but not where i wanted it. It copied it to folder name Desktop. So i tried copying it from Desktop and again same results.

View 2 Replies View Related

General :: Get Socket.h Header File / Copy Pasting This Header File In 'incl' Directory Allow To Use It In The Program?

Apr 22, 2011

where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?

View 1 Replies View Related

General :: Copy One File To Different File

Jan 18, 2011

I have a sample.log file which contains 100 lines. I need to copy last 50 lines from this file to a new text file. how can I do this.

View 4 Replies View Related

Ubuntu Multimedia :: Copy The File Into Hdd?

Apr 12, 2010

I have an old collection of SVCD disc, and I was wondering how to actually play it in Ubuntu. I tried Totem and VLC, it won't work. I tried to located just the file contained in SVCD folder, won't work either. Tried to copy the file into Hdd, won't work as well.

View 2 Replies View Related

Ubuntu :: Unable To Copy File In /usr/bin

Sep 2, 2010

I have to copy file from download folder to /usr/bin. when i right click on it and select copy option and in /usr/bin the paste option is not coming.

View 3 Replies View Related

Ubuntu Servers :: Copy File To DOS?

Oct 22, 2010

I have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected by a 9 pins serial cable. I need to copy some files from the Linux box to the DOS box.

I tried UUCP but it's too difficult and i didn't found a working client for DOS.

View 3 Replies View Related

Ubuntu :: Copy Cp Errors To A Log File?

Oct 29, 2010

I'm trying to restore a corrupt windows disk. When I try to copy the user's folder, the huge amount of errors exceeds the terminal's buffer and are lost. I would like to send cp errors to a file so that I have a list of the corrupt files. (hopefully the user will decide they are not important)

I'm presently using

Code:
sudo cp -rp (badfolder) (newfolder)

View 1 Replies View Related

Ubuntu :: Copy File To New Location?

Nov 29, 2010

File is named similar to : logout 10.10.10 100817.txt

I need to copy this to a new directory.

To fine the latest file I was advised to use code...

View 3 Replies View Related

Ubuntu Servers :: How To Copy Mac Os File To 10.10

Mar 27, 2011

i've installed glassfish v3 on my ubuntu system. This will let us deploy java and groovy servlets to the glassfish environment on the server.From an iMac OS 10.5, i would like to programatically copy servlets from the mac to the ubuntu system. Can only think of using ftp client as i can drive the ftp client from bash scripts and java code.

View 1 Replies View Related

Ubuntu :: Can't Copy 7gb File / Solution For This?

Jun 17, 2011

I downloaded a 7gb file on my ubuntu, thing is I want to copy the file to an external HDD that is FAT32, so I cant copy the 7gb file.
If i were on windows i would use winrar and split the file in several parts.
What application can i use in ubuntu?

View 2 Replies View Related

Ubuntu Servers :: How To Copy File From Server

Jun 10, 2010

Being fairly new to navigating around Linux in a server environment, I simply want to copy a file from the server to a file in my home directory on my laptop. I connected successfully using vpnc and then used ssh to connect to the server. Now, all I want to do is copy a file that I see on the server's home directory to my home directory on my laptop.However, I don't want to use these commands unless I am comfortable with them because the file that I am copying is a big file and I don't want to lose it.

View 3 Replies View Related

Ubuntu Servers :: Copy Via File Browser?

Feb 26, 2011

I have a System with 3 raids and 11 hard drives

#1 Raid5: 6 * 1TB WD Green Power
#2 Raid1: 2 * 500GB WD Greem Power
#3 Raid1: 2 * 2TB Hitachi 24/7

[Code]....

i can't do the write test because it says: "the disk seems to ahve usage 'filesystem' ..." So I try copy via file browser.. From #1 to #3 i have an average write rate of 17 MB/s (one big file) When I do the same over GBit network, i get about 21 MB/s

I've got an X2 4200+ which is about 50% in use (both cores) in the worst case.

View 3 Replies View Related

Ubuntu :: Copy Or Move File From A .txt Source?

Apr 22, 2011

Im usign photorec to recover some files that i lost during a format to my hard drive.

The program works like a charm but put all the files on differents folders. i use the find command to put on a list the jpg files but how i use the cp or the mv command to move that files in the list to another folder?

View 4 Replies View Related

Ubuntu :: File Copy To Windows Not Working

May 23, 2011

I've been using ubuntu for a while now and until recently it's been bee's knees but ever since i upgraded to the latest version, copying files downloaded on ubuntu to windows 7 doesnt work, i.e. the files just don't show up on windows although until i updated the system, it was all perfect.

View 1 Replies View Related

Ubuntu :: Copy File But Paste Link

May 29, 2011

Has anyone seen a seamless way to create a symbolic link via a GUI based file manager? I have been using PCManfm because I find it fast, but I can copy the file but paste a symbolic link instead of the actual file.

View 9 Replies View Related

Ubuntu :: Kill Copy File Command?

Jun 6, 2011

I started to copy a directory using Nautilus. I dragged and dropped a directory from my hosted server to my home drive. It got hung up, and wouldn't download. I clicked the red "stop operation" button, but I have a lingering icon in my upper panel saying that I still have file operations going on, even though it has supposedly stopped. How do I determine from the command line what this process is named and how do I kill it to remove the icon

View 4 Replies View Related

General :: Can't Copy A File

Oct 1, 2010

When i do cp filename destinationfolder it isn't happening. I don't get any error messages or any indication that the file copy didn't happen. But when I go to the destination folder and do ls; the file(s) not there. I tried it with sudo also and i get the same results. When I first did the copy it actually copied it somwhere but not where i wanted it. It copied it to folder name Desktop. So i tried copying it from Desktop and again same results.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved