General :: Make `cp` Choose No When Prompted To Overwrite?

Jun 17, 2011

I have a list of files that I am copying around for various purposes. What my current command looks similar to this:cat list_of_files | xargs -I {} /bin/cp -f {} /destination/dirI am using the full path to cp so that the default alias of cp -i does not take effect. However, when I find a duplicate file, it is overwriting any that have already been copied. What I would like to do is to force cp to not overwrite and not prompt.

View 2 Replies


ADVERTISEMENT

General :: Make A Floppy Image And Overwrite The MBR?

Aug 15, 2011

I am trying to make a floppy image with a working file system so that I can test a 2 stage boot loader. When I attempt to mount the floppy and then cp the second binary over to it, mount gets all unhappy. Here are the steps I am trying to use:

dd if=/dev/zero of=floppy.img bs=512 count=2948
mkfs.vfat floppy.img
dd if=boot1.bin of=floppy.img bs=512 count=1

[Code]....

View 2 Replies View Related

Fedora :: Make Mkdir Silently Overwrite Any Existent Directory?

Feb 19, 2010

I am working on a bash script which among its operations creates directories using the mkdir command. However, when the directory already exists mkdir mentions that in the command line output.

Is there any way I can make mkdir silently overwrite any existent directory? (no messages in the output). For the same price, could it be done with other commands such as cp or mv?

View 3 Replies View Related

Ubuntu :: Make The Pc Start On Windows Auto, Without Prompting By Showing The Choose System Screen?

Mar 24, 2011

I recently installed Ubuntu in my PC, without uninstalling windows coz it`s not really mine, its my father`s. When he saw the boot (like a month later, he REALLY uses the PC...) he went crazy and instantly ordered me to "uninstall that thing". Of course i`m not stupid to do that after a month of seeing how Ubuntu is... I want to know if/how can I make the pc start on windows auto, without prompting by showing the choose system screen, and when i open boot menu (i don`t remember, but i think its F-eight) i have both choices, so I can keep Linux without him knowing.

View 3 Replies View Related

Ubuntu Installation :: Make DVD With Kubuntu And Xubuntu To Choose One To Start Live Session When Booting From Disc

May 22, 2010

I want to make a DVD with Ubuntu, Kubuntu, and Xubuntu so i can choose one to start a live session when booting from the disc. I'd like to introduce linux to friends and having a few variations might make it easier to transition.

View 3 Replies View Related

Ubuntu :: How To Choose Winrar Prompt To Choose Action

Feb 16, 2010

I was extraction some file through command line then I encounter on notification from winrar. This file exist what u want to do
replace
never
quite
I don't want that winrar will prompt me to choose action. Everytime whenever this situation occur it will overwrite / skip that file
Syntax I am using for unrar
rar e -pmypassword filename

View 8 Replies View Related

Ubuntu :: Make Grub Boot To Allow Me To Choose Like Safe Mode And Normal Mode And All

Apr 23, 2010

how do I make grub boot to allow me to choose, like safe mode and normal mode and all that second, how do I do automated back ups (preferably using file copy) for something like every sunday at 11:00 am using the command line, i use to know but forgot.

View 1 Replies View Related

General :: Cp + Not Want To Overwrite Permissions?

May 26, 2011

How to use cp command without to overwrite target file permissionsFor examplecp /tmp/file /home/fileI dont want to change chown and chgrp on /home/file

View 2 Replies View Related

General :: Why 'cannot Overwrite Existing File'

Mar 8, 2011

I try to write to a file "date > file" but Linux says 'cannot overwrite existing file'. I tried chmod 755 but still cannot write to the file. What should I do?

View 2 Replies View Related

General :: Command To Overwrite A Directory?

Jan 18, 2010

there's a command to overwrite a directory.

View 6 Replies View Related

General :: Cannot Overwrite The Existing Files

Apr 15, 2011

I run a command in a Linux terminal, the result was written to the desied folder. After I modified the command and rerun it. The old files are still there and not overwritten at all. Only it is successfull after I deleted the old files and run the command.

View 3 Replies View Related

General :: OS Overwrite Unmounted Data?

Feb 22, 2011

I have a Debian OS installed (6.0), installed on a single partition, which was running out of space. So I copied all the data in /home to a spare partition, then edited fstab to mount this new partition as /home.

This works fine. But now of course I have the /home data both on the new partition (the one that is now being mounted and used), and also still on the original partition, though this directory is no longer mounted by the OS, so I can't directly 'get at' the data to delete it.

I could easily get into the partition from another OS and delete the unneeded /home data of course but I was just wondering; as this data is no longer 'seen' by the OS, will it be overwritten automatically by the OS when it needs more space, as it does with data that has been deleted from the filesystem, or would it be reserved somehow, still using up space?

View 6 Replies View Related

General :: Bootloader Will Overwrite - Fedora 13 With Windows 7

Aug 24, 2010

I have problem with bootloader , mean to say , after installing fedora 13 my windows 7 bootloader will overwrite, and when i install windows7 boot loader my fedora 13 bootloader will overwrite vice versa

View 7 Replies View Related

General :: Prevent Author New Files Overwrite Changes

Jun 29, 2011

I use software where I have to edit a text file in order to get my custom needs from it. Problem is that when the author puts out an update, it always overwrites my changes and I have to spend hours trying to compare the file, re-edit my changes back in, etc. This happens sometimes as often as once per month.

I've wondered if there might be a linux tool or commands which would look through the new file, then at my old file, changing only the text which already exists while not breaking anything else. Most software authors seem to know how to do this but since mine doesn't, how can I accomplish this on my own?

View 7 Replies View Related

General :: Command To Overwrite File With Sed Output?

Jan 5, 2010

For example I want a file to be processed by sed, and then overwrite the file with sed's output. I would try this:
Code:
sed '<regex goes here>' myfile > myfile
But it doesn't work as expected, instead it empties the file (I am thinking that as the first byte comes out of sed, it overwrites the whole file and sed has nothing more to do). How can I make this work?

View 14 Replies View Related

General :: Unzip Command: Option To Force Overwrite?

Jan 26, 2010

I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y

This is unacceptable for a script.I need an option to force unzip to overwrite the files.I did not find in the man page nor with Google.

View 1 Replies View Related

General :: Update Error: Two Updates Want To Overwrite Each Others Data?

Apr 23, 2011

I have a Pentium 4 HP laptop with Linux only OS, Xubuntu 10.04 LTS

I hadn't powered this one up in a long time and when I did, of course, the Update Manager informed me there were a LOT of updates (around 400 files) and of course I said OK.

It never quite completes, giving me an error message. Apparently two different packages are trying to over write each other's data.

The two packages that fail to update are

kdelib5-data and gnome-settings-daemon

and I really don't know what to do about it.

although isn't kde one desktop environment and gnome another? And Xfce yet a third?

View 1 Replies View Related

General :: Doesn't Work Still Prompts To Overwrite The Individual Files

May 5, 2010

currently there's a xxx dir already in /home/yyy I'm trying to overwrite itcp -fr ../xxx /home/yyy/doesn't work still prompts me to overwrite the individual files. how do I fix it?

View 4 Replies View Related

General :: Windows - Linux: Can't Overwrite Files On Samba Store

Jun 10, 2010

I'm using CentOS 5.5 with smbclient 3.0.33-3.28-el5 (latest version in repo), and I can't overwrite files in my Samba store. I am not the admin for the Windows server that hosts the share, so there isn't anything I can do server side. But I do have write permission to the server. I know the server runs Windows XP or Server 2003; I don't know which. I can delete the file, and then copy the new version over, but I can't overwrite it. Using the cp command I'll get this error:

[jonescb@localhost ~]$ cp foo.txt /mnt/si_storage/foo.txt
cp: cannot create regular file `/mnt/si_storage/foo.txt': No such file or directory`

And if I edit a file on the server using vim, I can save it once, but if I save it again I get this: "/mnt/si_storage/foo.txt" E212: Can't open file for writing This is my /etc/fstab entry for the samba server: //192.168.1.2/SI_STORAGE /mnt/si_storage cifs username=myuser,password=mypass 0 0 I can overwrite files just fine on my XP machine. The CentOS box is the only one having problems.

View 1 Replies View Related

General :: Overwrite Windows On Current Drive - But Not The Recovery Partion

Aug 6, 2011

Since Ubuntu is smaller than Windows, will it entirely delete Windows to install Ubuntu? The Ubuntu installation won't affect the recovery drive, right?

View 10 Replies View Related

General :: "Login Incorrect" Error After Boot - No Password Prompted

May 17, 2011

I have built a linux image based on kernel 2.6.32.10. The image boots up fine & at the login prompt when I enter the login Id - the
system doesnt prompt for password - instead throws an error message "Login incorrect".

mygway login: admin
Login incorrect
login: root
Login incorrect

From all the search I did, I narrowed this down to be a pam configuration issue. I checked that the /etc/securetty has an entry "/dev/ttyS0" to allow root to logon via serial console - so I ruled out this file to be a cause for that error. Few files that I am not entirely sure are as below:

1) /etc/pam.d/login
sudo cat login
#%PAM-1.0

[code]....

View 5 Replies View Related

General :: Df Vs Du / Choose Between Them In System?

Aug 29, 2011

I need to check the used space in some folders, and I need it to be fast to check because it will be inside a script.

Which command should I use, "du -h" or "df -h"??

View 4 Replies View Related

General :: What Distro Should I Choose?

Apr 23, 2011

I am somewhat new to linux but I am good with computer and can learn fast so difficulty level doesn't really matter I just need an all around good fast nice looking linux distro.Any ideas? Please tell me why I should try that version of linux.

View 14 Replies View Related

General :: What To Choose For A Saas

Sep 16, 2010

We are starting the development of a project in PHP+MySQL that will become a software-as-a-service.After starting and planning how we would deploy the project, the first thing that came into our mind was: the project will be hosted on our Debian stable server and will contain all of our clients databases and each client folders for the project (and of course, a separate server for backups) and all projects running "under" the same apache and mysql server. This was our preferred approach.

Another friend suggested us -as a second approach for the deployment- that instead of having all projects and all databases running under the same physical server and under the same apache and mysql, that we could build our own "cloud" using something like openQRM and have each one of the projects deployed in a separate "virtualized" server (one virtual server per client) and this way the resources are better balanced and is easier to recover a virtual server if crashed as the backups are made of the virtual servers images. He said that this is a very new concept that is taking the internet services market more and more.

So, we started to research about the "cloud computing" concept in order to have a better idea of this second suggestion our friend gave to us.In terms of performance, it seems to me that the "cloud" approach could consume a lot of moreresources than the first approach ?? and is a lot harder to maintain and extend ??I would really appreciate your opinions and recomendations on which option is really worth for what we are going to offer to our clients.

View 3 Replies View Related

General :: How To Automatically Say "yes" When Prompted

Jun 14, 2011

Yesterday, I was given this script for getting Flash updates for my Ubuntu 11.04 system ...

Code:

#!/bin/sh
sudo apt-get update
sudo apt-get install flashplugin-installer

When I run this script, I am prompted

Code:

The following extra packages will be installed:

ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5 lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386 nspluginwrapper
Suggested packages:
xulrunner-1.9 firefox-3.0 konqueror-nsplugins msttcorefonts ttf-bitstream-vera ttf-dejavu ttf-xfree86-nonfree xfs lib32asound2-plugins
The following NEW packages will be installed:

[code]....

which I manually have to say "Y". Since I'm running this script from a cron, is there anything I can add to the above script to automatically say "Y" if I'm asked a similar question above?

View 3 Replies View Related

General :: What File System To Choose

Jul 12, 2010

I'm still to install Linux (waiting for a replacement of a bad DIMM) on my new box. It will probably be CentOS, following 'Rubberman's recommendation in forum/coffee-lounge/166195-distro-recommendation-development-use.html .

I assume (as I haven't installed Linux before) there could be a choice of file systems. Is there any recommendation on what I should/could use ?

View 9 Replies View Related

General :: Which Enterprise IM Solution To Choose

Apr 7, 2011

The solution should be capable to use intranet only (no communication should traverse the inernet). It would be of an advantage if it would support conferencing. And if it's possible it'd be fine if it'd be free.

One solution which comes to my mind is jabber, but I do not have any experience with it... what's your oppinion on that? What other solutions are there?

View 5 Replies View Related

General :: Filesystem To Choose For NAS Box Based On OpenFiler

Feb 23, 2010

I'm a photographer and I have a requirement find a better method of storing my photos other than multiple USB2 drives via USB hubs. Currently I use a Macbook Pro and 6 external drives connected via USB2 or FW800. 3 are a copy of the first three, kept up to day manually by running an rsync backup. I'd like to run a FreeNAS or OpenFiler NAS box using 2TB drives mirrored via software RAID. But - I would like to have the flexibility of also plugging into the drive physically for the faster throughput when necessary. My question is, is there a file system that both *nix and Mac OSX will play nice with?

View 2 Replies View Related

General :: (Shell Script) Choose Log File To Use

May 9, 2011

I have a small script that uses the find command to look for a log file named: backup_log.txt. And then uses the first value in the log file as a variable in the script later on. However, say there are two or more of these log files located in different directories, how would I let the user choose which log file will be the one to use, and then make that (fullpathtofile) the value of the variable that will be used.

View 5 Replies View Related

General :: Choose Distribution For USB Memory Stick?

Mar 29, 2011

I got an 8 GB USB Memory stick wich I want to use, I dont want to install Linux on my harddrive, I want it portable and on an USB stick.

What I need is a distribution thats big with lots of programs and the Ability to Save files and configurations Directly on the USB Memory stick, and it should be able to run apache, mysql,php and java.

I want the USB memory stick to act like a harddrive so to speak.

Also, I already downloaded and tried Knoppix Live CD, but I cant get knoppix 6.4.4 to work, but an older version worked. But its so small, not so many programs. Is there a way to install lets say a DVD version of a distro to USB and make it work like the live version?

View 5 Replies View Related







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