General :: Preventing Deleting Of Directory?

Jun 14, 2011

i need to restrict access of deleting to directory and partitions os disk? how do i do it?

View 5 Replies


ADVERTISEMENT

General :: Deleting All Files From Directory Except For Two

Nov 25, 2010

I'm writing a Perl script which performs linux commands.I have a directory with a load of files.

Code:exec_cmd('rm $(ls * | grep -v file1)');
This command will delete all except for file1. How can I modify this to delete all files except for file1 & file2?

View 2 Replies View Related

General :: Automatically Deleting The Directory In RedHat 5?

Feb 21, 2010

Something strange is happening with RedHat Linux 5. I created one directory system_verilog twice and both the times somehow it's get deleted after next booting of machine (after modification of some of the file in this directory).

View 3 Replies View Related

General :: How To Delete All Files In Directory Without Deleting?

Feb 9, 2010

I know that rm -i will prompt wether you want to delete each file.But rm -i -r will prompt for each file in each subdirectory recursively. How to make it prompt just for the directory itself, and then delete its contents without asking?How to delete all the files in a directory without deleting . and ..?How to recursively delete all tilde files in a directory?How to GUI file managers delete files to Trash? Where is this "Trash" located? Can you delete to trash in the command line?

View 14 Replies View Related

General :: Deleting A Directory In Emacs' Dired Mode

Feb 16, 2011

I would like to delete a directory in emacs' dired-mode.

I mark the directory with the "d" key, and then hit "x" to deleted flagged.

I then get the following error:

Is there any way to get emacs to delete the directory and stop its whining?

View 1 Replies View Related

General :: Rsync Deleting Files From Destination Directory?

Jul 14, 2011

We have an rsync cron job set up to mirror all the files in a "..dashtdocsdocs" folder to the same folder on another server. It copies all the files over correctly and deletes any files in the "docs" directory that aren't in the sending directory, but it also deletes any files we put in the target directory's parent folder (..dashtdocs or other subfolders like ..dashtdocsimages) even though they've been excluded in the .rsync-filter file.

Here's our current rsync .sh:

/usr/local/bin/rsync --stats -qPzrtpl --delete --password-file=/var/run/.appprodrsync --log-file=/export/home
/webuser/logs/rsync-extranet-log -FF /export/home/ appprodrsync@appprod::dprweb_extranet/ > /export/home/webuser/logs/rsync-extranet-output 2>&1

[code]....

So for example server A has ..dashtdocsdocs and ..dashtdocsimages. Server B has ..dashtdocsdocs but if I manually copy the images folder over to ..dashtdocsimages, the images folder gets deleted from the target directory every time rsync runs.

A: ..dashtdocsdocs
..dashtdocsimages
B: ..dashtdocsdocs
..dashtdocsimages (<-- gets deleted everytime rsync runs)

I'd like to keep just the docs directory synched and update other folders manually, but they keep getting deleted. It looks to me like it's running a delete-excluded option, but that option wasn't used.

View 2 Replies View Related

General :: Del Command To Remove Files To Directory Instead Of Completely Deleting Them?

Dec 2, 2010

how to write a script so that when I use the 'del' command it removes/sends the files / folders to a I specify for example 'dustbin'

View 1 Replies View Related

Ubuntu :: Deleting An Old /home Directory?

Jul 2, 2010

I've followed some instructions on installing a new hard drive on Ubuntu ("Installing a New Hard Drive" and "HOWTO move /home to a new hard drive") and I've now successfully got my new drive working with /home. Everything looks to be in perfect working order.Now I'm wondering how to delete my original /home folder. Running "df -h" still shows 97% usage on my / partition and I'd like to clear out the old /home to free up all that space. I just don't know where these files are now is all.

View 9 Replies View Related

Ubuntu :: Permissions Deleting Directory Structure?

Apr 7, 2010

I've recently installed xubuntu 9.10 and when try to delete a folder with many sub-folders, this is what happens:

dav@dav-desktop:~/Downloads$ ls -l
total 1266644
-rw-r--r-- 1 dav dav 243161797 2010-04-06 20:06

[code]...

View 4 Replies View Related

Programming :: Deleted Files In Directory With So Many Files Without Deleting Directory Itself

Nov 14, 2010

There are millions of files in many directories. Wherenver i try rm * or find or use xargs, they say 'argument list too long' and exit. How can i deleted files in a directory with so many files without deleting the directory itself.

View 3 Replies View Related

General :: Memory - Preventing A Process Being Swapped Out?

Aug 30, 2011

Does anyone know of a linux utility which will prevent all memory in a forked process from being swapped out to disk? I've seen the 'mlockall' call, but hacking the app sounds like overkill.My reason for needing this is that I'm running Windows XP under VirtualBox on my linux netbook, and I'm concerned there are basically two levels of swapping going on, which on a single dinky netbook hard disk isn't

View 3 Replies View Related

General :: Preventing Package Installation In Ubuntu 11.04?

May 1, 2011

I'm in the process of installing the usual Python/Numpy/Scipy/Matplotlib combination. I'm using the installed version of Python (2.7) on Ubuntu 11.04 but I've compiled Numpy and Scipy (and ATLAS/LAPACK etc.) from source. I now want to install matplotlib from the repositories but every time I do python-numpy is installed as a dependency of python-matplotlib. I've tried "apt-get hold python-numpy" etc. and also locking the version of each package in synaptic but both synaptic and apt-get will happily install the packages when requested, I assume because hold/lock version don't work on packages that aren't yet installed.

How can I prevent these packages being installed? Or is there a way to tell Ubuntu that I already have versions?

View 6 Replies View Related

General :: Update Error Preventing From The Internet?

Feb 26, 2010

I decided to hit the update icon.It did not finish updating before the power was interrupted. How I get an Error occurred. stating, " E:dpkg was interrupted, you must manually run'dpkg--configure -a'to correct the problem. E:_cache->open()failed,please report. I am lost how to correct this script error.I am sure it is easy. I can open google earth that was downloaded, but not the web.

View 4 Replies View Related

General :: Preventing The Pager Less From Exiting When Scrolling Beyond The End Of File?

Apr 4, 2011

I like less and use it as my default pager in Linux. However, there are times that I am scrolling down through a large document quickly and less exits when I reach the end of the document before I have time to stop scrolling. I'd like less to exit only I type q, and not because I ask it to scroll beyond the end of the document. Is that possible?

View 1 Replies View Related

General :: Preventing Udev From Creating Device Entries Under /dev

May 21, 2010

I need to prevent udev from creating the /dev/v4l/by-path/* and /dev/v4l/by-id/* files upon connecting my webcam. The problem is that Kopete doesn't want to display the video if these files are present. It works fine if I remove them, but I'd rather not have them created in the first place, since they seem to be completely useless anyway.

View 4 Replies View Related

General :: Missing Firmware Preventing Internet Connection?

Jul 13, 2011

just did a dual boot or whatever you call it last night)and I can't figure out how to connect to my home wireless internet. I checked in one of the menus, and it says "firmware missing". Does anybody have an idea of what I need to do to fix this? If I haven't been specific enough, please ask for more information. I'm not really sure what to include.

View 1 Replies View Related

General :: Preventing Windows Version Of Vim From Destroying Other File Systems Permissions

Aug 30, 2010

I am currently using the windows version of gVim to edit source files on a networked drive mapped to a linux system, as well as local files created in cygwin.

The problem is that the windows version of gVim destroys the original file permissions on the respective systems. IE: Files on cygwin are defaulted to 077. When edited by the windows version of vim they are saved as 777.This problem doesn't even occur when using ms-notepad (as well as all other editors I've tried), so I am not quite sure why gVim does it.

A possible solution would be to use cygwin's gVim for everything, but that's rather cumbersome as it requires running an x11 environment to support it, and it causes some problems when running some commands from within gVim (or vim for that matter) when working on the networked drive.

Any ideas how I might be able to maintain the existing file permissions?

This morning while on a different machine the problem with cygwin did not occur. Cygwin & gVim were the same version, however the other machine is running WinXP while the machine the problem is occurring on runs Win7.

View 1 Replies View Related

General :: Preventing Screen Blank In Busybox(embedded) On A KERN Board?

Sep 24, 2010

I'm trying to run a shell script on a kern board (av1100) that shows some text output on the attached screen. The big problem is that the screen goes to blank in like 2 minutes.I'd just like to have the script showing it's output while the thing is on.Isn't there a command to stop the screen from going to blank?p.s. there is no bash available, just #!/bin/sh

Code:
#!/bin/sh
###########################################################

[code]....

View 2 Replies View Related

General :: Deleting Everything: # Rm -rf /

Aug 23, 2010

Just wondering, what happens when you delete every single file on a running Linux system?

# rm -rf /

View 3 Replies View Related

General :: Deleting Several Lines In Vim?

Mar 5, 2011

I've a big text, and I would like to delete several lines in vim. I was thinking in doing that with marks, but I can't do it. Below it's an example text and I want to delete from <FROM HERE> to <TO HERE>. How can I do that?
[Quote] .....

View 3 Replies View Related

General :: Deleting Another User's Diretories From Own?

Apr 12, 2010

I am a non-root user, and have made a directory into which other users in my group can write. The directory is setgid, so files and directories within it have the same group.I can delete files placed into this directory, but if a user creates a subdirectory with files in it, I can't seem to delete those. Is there something special I can do (other than, say, bothering the user in question or the sysadmin about it) to get rid of this subdirectory?

EDIT: Inevitably, of course, someone asks "why?"The shared folder in question is a mercurial repository. We can't use a shared-account ssh-key-based server for this like mercurial-server, and we can't just host it externally for various reasons. But that part works fine.We use Redmine for project management, but it does not yet read the repo index for file contents - it reads the working directory. So the working directory must be kept up-to-datecrontab has been disabled by the sysadmin, so that's out. So I naïvely put a changeset hook in the shared repo that performed an "hg update". This seemed to work fine initially, until, of course, someone pushed a commit with a new directory. While I had vague thoughts of trying to make a setuid script for the hook, I'll probably just consider safer avenues.

View 1 Replies View Related

General :: Windows 7 - After Deleting Partitions?

May 16, 2011

I have a laptop that I was dual booting with Windows 7 and Ubuntu. I used the MSFT disk manager to delete the partitions. I made sure my windows live cd was working, which it was, before doing this. But now, when I boot my computer, it won't run the cd. All I get is

error: no such partition. and then a command prompt: grub rescue>

I made sure my boot priority was set to boot from the CD first.

View 2 Replies View Related

General :: Deleting Iframes From Files

Apr 25, 2009

my website was recently infected with this stupid malware lotultimatebet .cn...there is a hidden iframe on almost all the 6000 pages of my site.can you please advise, if it is possible for me to remove this line from all pages by executing some command?

View 1 Replies View Related

General :: Deleting A File Beginning With '?'

Jan 26, 2010

I have found a file beginning with a question mark in my home dir, not sure how the hell it got there. It's from a downloaded rar i think.

Does anyone know how to do this?

View 14 Replies View Related

General :: Deleting A Line Containing The Word?

Jun 10, 2010

what would be the syntax to delete a line containg the word "word" from the file "file" i want to delete the whole line and not only the word...

View 6 Replies View Related

General :: Deleting Files By Date

Nov 5, 2009

I had a program run riot and it has created hundreds of spurious files in one directory. Fortunately they are all dated 4th November so are easily identified. What bash command can I use from the console to delete them all?

View 2 Replies View Related

General :: Extracting And Then Deleting Archives?

Apr 23, 2011

I have a large number of zip-archives which I would like to extract and then delete, keeping only the extracted files. The files are located in a number of directories and I issued the following command, hoping that it would solve my problem (which it didn't):

Code:find . -name "*.zip" -execdir unzip '{}' ; -deleteWhat happened was that find continued to extract the files as intended, but then it deletednot only the zip-archives but also the newly extracted files.it only affected a portion of the files that I had already backed up.I don't have enough space on my hard drive to extract all the files without simultaneously removing any data and I don't have the energy to go through all the directories one by one manually. Surely there must be a better way. Is there a way to fix the code snippet above so that it works as I intended or is there a better way of doing this?

View 4 Replies View Related

General :: Process Works After Deleting It?

Jun 1, 2010

If I delete some program, let's say - PulseAudio, it still runs and I need to kill this process. Why? How can it work if it's no more on the HDD? And if I just reboot the PC after deleting PulseAudio (without killing it), it won't be in memory then?

View 6 Replies View Related

General :: Recover From Deleting Partition

Apr 4, 2010

I have deleted the ubuntu partition on my xp pc. Now at restart i have the following:
GRUB loading.
error: no such partition
grub rescue>
I have no idea what to do now. I have downloaded super grub - because one of the pages that i googled said it would help - but my pc does not read from either the cd or usb drives - don't know why.I need this pc recovered today .

View 6 Replies View Related

General :: Vista Not Booting After Deleting Partition

May 26, 2010

My cousin just deleted his Linux partition and another smaller partitio nand now Windows is not booting, no he does not have the recovery disc. When Windows tries to boot it goes to "GRUB" and says "partition not loaded". What are some GRUB commands? And is it possible to fix this without using the recovery CD?

View 1 Replies View Related







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