Debian :: Delete A File On Every Startup?

May 20, 2010

I would like to delete some files stored in the personal directory, say .adobe, .macromedia, .xsession-errors, on every start-up or shutting down. I can do it with cron but I would like to learn different (simpler) options. The thing is, I haven't been able to input the proper terms in a search engine. Note that these files must exist in their default location during the session. This is, I don't want to make them links to /dev/null or move them to /tmp.

View 8 Replies


ADVERTISEMENT

Debian :: Automatically Delete USB Flash And Copy New File

Aug 26, 2010

How can I automate the following: When I insert a flash drive into any of the available USB ports, some kind of script or software, must automatically mount it, delete everything off the flash drive, copy an audio file back to it and then automatically unmount the USB.Maybe I should setup some kind of Kiosk to use the above functionality - would that be easy?

View 2 Replies View Related

Ubuntu :: Delete File - No Right Click Delete Option?

Feb 18, 2010

Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?

View 6 Replies View Related

General :: Startup Script - Delete Downloaded Archives (Clean Up)

May 29, 2010

I'm looking to make a script that will do the following;

yum update -y
cd /home
wget [URL]
sh latest
(install various scripts like ConfigServer series, ClamAV)
edit settings in files
delete any downloaded archives (clean up)
reboot/delete self

View 5 Replies View Related

General :: Find Folders With ONLY One Specific File In And Delete File And Folde

Oct 21, 2009

Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.

View 5 Replies View Related

General :: Remove Write-Protected File - Will It Actually Delete The Password File?

Jul 30, 2010

When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?

View 1 Replies View Related

Red Hat / Fedora :: Edit A Text File To Delete All Commas In The File?

Jan 4, 2011

i want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything.

View 2 Replies View Related

Programming :: Sed Delete Lines From File One If Regexp Are Listed In File Two?

Sep 17, 2009

I am trying to delete lines of a file if they contain text that is present on another file. For example

> cat one.txt:

a
b
c
d

[code]....

I get the following output:

> ./test.sh one.txt two.txt
a
b
d
e

[code]....

View 6 Replies View Related

General :: Stale NFS File Handle - How To Delete File

Jan 21, 2010

How do I delete a file if it happens like this.
-????????? ? ? ? ? ? temp.cgi

View 5 Replies View Related

Ubuntu :: When Delete A File, It Really Isn't Gone?

Jun 15, 2010

In Windows when you delete a file, it really isn't gone.Have to have special software to actually wipe it.what programs in Linux/Ubuntu are along same lines.secure delete a file, secure empty trash, clean the hard drive unused areas (where files once were).Are they in package manager, synaptics or on the web?Update. I took the new Ubuntu system with me on road trip this weekend as a trial.Wireless network connection is from across street. Connected just fine.Hook Nikon camera in to D/L pics, "saw" camera immediatelyForgot cell phone charger at home. Used the USB cable. "saw" phone immediately and phone said charging.So, so far all is well just some things are done a little differently than windows!

View 9 Replies View Related

Ubuntu :: Can't Delete Certain File

Oct 30, 2010

I put a MicroSD card in to a card reader, it's from a Nokia mobile phone, and then plugged that in to the USB port.For some reason I can't delete certain files. I am assuming my phone has some kind of virus.Ubuntu refuses to let me access, modify or delete the files that are in the music folder but clearly not music files.

So I tried to open the folder with Wine to try and delete it the windows way (I have no idea if that was even supposed to work) and I get an error message that says 'File not Found' in a typical windows error display box.Now I am having the exact same problem trying to open my home folder from the places menu. The same error pops up.All I want to do is clear a MicroSD card and put new music on it.Also, I am the only user on this computer, and I have administrator privileges, and I cannot access the root folder or the lost-found folder.

View 9 Replies View Related

Ubuntu :: File Could Not Delete?

Dec 23, 2010

I used external hard drive to keep my back up and my machine stored same file in media folder of my machine which occupies all my hard disk space. Now I wanted to delete it but I could not delete it. How can I delete it to free up the space

View 9 Replies View Related

General :: Delete A File From Different Dir Without Using Cd?

Nov 30, 2010

we assume that we have 2 folders with the name 1 and 2 . The folder 2 is inside 1 . Also, in folder 2 we have file with name "file.txt". And we are in folder 1 . How can we delete the file.txt in one command line ? I mean without using the code below:

Code:

cd 2
rm -f file.txt
cd ..

View 3 Replies View Related

Fedora :: Unable To Delete File

Aug 12, 2010

I am not able to delete any file. I am seeing following error when i am trying to delete. "The trash has reached its maximum size! Cleanup the trash manually.".

But Trash is already empty and the file i am trying to delete is only 28bytes.
the folders '~/.local/share/Trash/files' and '~/.local/share/Trash/info' are also empty and there permissions are also correct. file manager is dolphin.

i saw this problem happening after firefox crashed.

I found a file ~/.local/share/Trash/metadata with following content- [Cached] Size=18446744068999530549

After setting SIze=0, i am able to delete files.

View 3 Replies View Related

Ubuntu :: How To Force Delete A File

Jan 5, 2010

Ok i'm runnign ubuntu using the live CD i already have ubuntu installed on my computer but it wont boot. I'm trying to delete the file causing the problem. SO is there a way to delete a file that is in the ubuntu installed on my computer from the ubuntu on the livecd?if that doesnt make sense how can i delete a file in my ubuntu w/o actually being in ubuntu?

View 7 Replies View Related

Ubuntu :: Can't Delete / Rename File

Feb 6, 2010

I have moved all files from one hard drive to another but one file remains that I cannot move, delete or rename.

From a fresh boot, nothing nefarious running in the background...

Using Nauitilus, find a file called: .goutputstream-59R62U

It appears to be a 1.5Gb MPEG file. I can click on it and it plays in MoviePlayer. I can drag it into VLC and it plays normally. But I can't move it, delete it or rename it and I can't do the same to its parent directory or the parent of that directory.

Running sudo nautilus from Terminal it doesn't appear at all.

Running Gnome Commander it doesn't show up either. When trying to delete its parent directory (with permissions set to rwxrwxrwx) I get the following error:

Error while deleting ".goutputstream-59R62U"

File not found

View 4 Replies View Related

Ubuntu :: How To Delete The Contents Of This File.

Mar 23, 2010

/root/.local/share/Trash/files/I have a tar backup file in there and can't get rid of it. I've tried from root with Nautilus, the files disappear for a couple of seconds and then reappear.

View 7 Replies View Related

Ubuntu :: Unable To Delete A File

Feb 6, 2011

My problem is with a file that I can't delete, or move for that matter.

My dad was just randomly saving pictures and deiced he wanted to trash it. I don't know what he did, but in no longer has a file name, just the extension jpeg. Now I tried to right click it and move to the trash, but that option isn't highlighted, same for the rename. When I try to move it, it says the file does not exist. Here is what is says exactly:

Error stating file '/home/ashley/Desktop/Ed/dads files/TV Shows/isis (joanna cameron)/jpeg': No such file or directory

View 1 Replies View Related

Ubuntu :: How To Upload And Delete File

Jul 21, 2011

How can I upload and delete a file? :

View 3 Replies View Related

Applications :: Delete A Word In A Vim File?

Jan 12, 2011

I have been looking around for a, "start new thread" button but cant seem to find it (which is my first question). My real question is, how do I delete a word in a vim file from the editor command? What I want to do is go to a specific line (36) and delete 3 words after my cursor

i.e :36 | 3dw

error: "3dw" is not a command. Ive tried ":d" this deletes teh whole line which is not what I want.

View 8 Replies View Related

Red Hat / Fedora :: Delete The First Line Of Log File ?

Mar 3, 2010

I have a log file /var/log/messages. Now all i want is to delete the first line through script without disturbing provisioning the file.

View 1 Replies View Related

General :: Delete 3.3GB File In Thumbdrive?

Nov 21, 2010

when i try to delete, it says can not move to trash,so, how do I delete it permanently?In windows is shift+del

View 2 Replies View Related

General :: Delete File, And Can't Get It Back?

Jan 30, 2010

after so many times deleting staff for mistake.I am unable to get it back from my external hard drive.I use Ubuntu 8.04 LTS and I have all my staff on external hardrive.

Quote:

Z:----> Media -----> FreeAgent Drive

After delete I knew was her

Quote:

/acousticmetal[1]/

, I did all the search I can possible think of.and i dint have any good look can any one please help me out on this issue?.

View 13 Replies View Related

General :: Delete A File Or Certain Files Using Php?

Apr 28, 2011

i wanna ask on how to delete a file or a certain file in linux by using php or in other word by using web browser. example i want to delete the file inside /var/www/cgi-bin/ with browser.

View 14 Replies View Related

General :: Delete Last 6 Lines Of File With Sed

Jun 5, 2011

looking to delete the last 6 lines of a file with sed. figured out how to delete the last line..but i want the last six.

View 6 Replies View Related

General :: Delete Line From File?

Nov 11, 2010

I was creating a few scripts, I am trying to create a restore script to restore files that have previously been moved to a folder I selected. When moved I stored the original path for these files all in one text file.

I want to know if anyone can tell me how to delete the line from the file after using it restore the file. I have used the grep command to search through the file "pathName" to find where the file was stored but now want to delete that same line.

View 5 Replies View Related

General :: How To Delete File Which Has No Owner

Jan 9, 2010

I am facing a basic problem in RHEL 5.2. Some of files in a mounted showing ? in place of owner and group owner.
root# find /data/abc -nouser
listing those files.
How to delete those files because
root# find /data/abc -nouser -exec rm -rf {} ;
showing error access is denied.

View 10 Replies View Related

General :: How To Delete Unreadable File

Aug 19, 2010

how to delete unreadable file? As you can see at attached picture, there is two unreadble files at root directory.

Code:

[code]....

View 4 Replies View Related

Server :: Trying To Delete Data From File With Php

Oct 20, 2010

i've been using php/fwrite to add text to a file using the below code but how do i remove text from a file? note that i don't know what line it's on as there will be other content in the file.

View 5 Replies View Related

General :: Create A File And Delete A File Using "-" Symbol

Apr 10, 2011

How would you create and then delete a file that begins with the symbol "-"? Try it.

I can't write the command for this question and I don't why.

View 3 Replies View Related







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