Software :: Sed Delete Before And After?
Jan 4, 2011
I am stuck on a sed issue I can't seem to resolve. I am trying to get rid of lines before and after a regex match from the following dataset:
Code:
define host {
host_name 4000-somehost-app
[code]....
View 2 Replies
ADVERTISEMENT
Apr 18, 2010
Instead of moving to trash, how can i make the delete button delete? Delete is already enabled on the right click menu.
View 7 Replies
View Related
May 9, 2010
SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.
View 4 Replies
View Related
Sep 25, 2010
I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:
Quote:
rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back
The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.
(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)
View 2 Replies
View Related
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
Nov 1, 2010
I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.
View 3 Replies
View Related
Sep 6, 2011
Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?
View 14 Replies
View Related
Jan 15, 2011
I just use su- and cd /etc/yum.repos.d I use rm *.repo but those files are still here,I can't delete them, why?
View 5 Replies
View Related
Apr 9, 2010
I used
Code:
mkdir mnt
sudo mount -o loop ubuntu-9.10-desktop-i386.iso mnt
[code]...
View 2 Replies
View Related
Mar 15, 2011
I'm taking a C programming class in college and we use VI text editor. I installed ubuntu on my computer so I can study. Every time I try to use Vi on my computer I'm able to type and delete using the delete button, but I can't delete using the backspace button. Every time I press it it only moves back on character. How can I solve my problem?
View 9 Replies
View Related
Jun 1, 2010
I recently installed an application called DeaDBeeF. I added the GPG key, as well as the repo in my sources.list file. I've decided to stick with Audacious, so I did an "apt-get autoremove deadbeef" to remove it and all of its dependencies. I also edited my sources.list file and removed the line pointing to the repo in which I got it from.
Now my question is, how should I remove the GPG key, if I don't use the repo or application anymore? I don't want an unused GPG key sitting on my Debian if I'm not using the repo anymore.
I've tried reading the man pages but I can't seem to get it. I've tried the following command but it doesn't seem to work.
sudo apt-key del http://hadret.rootnode.net/debian/duckbill.key
View 7 Replies
View Related
Sep 2, 2009
might sound stupid as this must have been asked before but how do i delete my profile?
View 2 Replies
View Related
Jun 18, 2010
Is there any way to delete the password on the user on fedora? Then you do not need to type the password, and the computer can be open and public.
View 9 Replies
View Related
Aug 24, 2011
I recently installed 4.7 on my laptop. I really like it. Part of what I like is the activity manager wich I did not see in 4.6. However, I do not seem to be able to delete any activities there.
View 3 Replies
View Related
May 25, 2010
I have the following structure:
/.svn
/bla/.svn
/hello/.svn
/bla/bla/bla/.svn
... etc
I want to delete all the .svn folders. How do I do it?It's NOT:
rm -rf .svn
In windows you use the /s trigger. How do you do it linux?
View 4 Replies
View Related
Jan 23, 2011
$ echo -e "AsometAhingA
somethingA
ASomethiAng"
AsometAhingA[code]....
I know that sed "s/A//" deletes the first match in every line.But i want to delete only the first match in a txt. like: sed -i "MAGIC" file.txt
View 3 Replies
View Related
Jan 8, 2010
every time a new linux_image_generic install, my grub boot menu gets longer, any way to delete old images?
View 7 Replies
View Related
Jan 24, 2010
I'm trying to delete the mythtv directory in my /Home directory. I tried rm and rmdir with sudo but that didn't work and I got an error message that said the directory wasn't empty. Then I tried 'sudo -Rf rmdir mythtv', but I keep getting an invalid option error. -R was for recursive right? Is there someway to remove this directory?
View 7 Replies
View Related
Feb 7, 2010
I recently installed a few windows programs using wine and they showed up as icons in a new wine tab. Once I uninstalled them they still appeared as applications. Then I unistalled wine but they still appeared(and the tab).
View 2 Replies
View Related
Feb 28, 2010
I am trying to delete the user name I used to originally install Ubuntu. Every time I restart the computer the entry has returned.Is it undeleteable?
View 4 Replies
View Related
Mar 14, 2010
I have installed : https://help.ubuntu.com/community/ApacheMySQLPHP
and how do I delete it?
View 4 Replies
View Related
Mar 16, 2010
I removed a user account from my installation of 9.10 however that does not remove the users home directory, which I also want to do. I emptied the directory as as best I can tell, that is ls returns nothing in the directory. However when I run sudo rmdir josephI getrmdir: failed to remove `joseph': Directory not empty
View 8 Replies
View Related
May 2, 2010
how delete files from /var/wwwwhen I try to delete file from system gives following messagesThere was an error deleting orderorderform.html.""Error removing file: Permission denied"
View 2 Replies
View Related
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
Aug 1, 2010
I am having a problem with my login labeled "mysql" with the command # groupadd mysql# useradd -g mysql is is of course all within the confines of being super user. What I am having trouble with is that I cannot delete the user through the terminal using the command userdel but to no avail, it states that the user mysql is still logged in even though I have restarted the computer and logged in only to my root account.Whenever I try to log into mysql account it gives me multiple error messages something about the ICE authority and nautilus and when i get past these and onto the home screen, there is nothing, the wallpaper is there but there are no icons and no tool-bars, I cannot shutdown or get to a terminal while on the dysfunctional user. I cannot delete the user because it states I am logged in even though I am not.
View 3 Replies
View Related
Aug 5, 2010
Right now I'm duel booting Windows XP and Ubuntu 10.04. I installed Ubuntu with wubi. I want Ubuntu to be my only operating system, so how would I delete Windows XP?
View 9 Replies
View Related
Aug 17, 2010
I have a partition "/opt" which has its "/opt/.Trash-1000" directory. "opt" is owned by me the user I log in. Why my thrash icon doesn't show the "/opt" thrash? how can I delete my "opt" thrash with a GUI instead of writing "sudo rm /opt/.Thrash-1000/files/*" on a terminal?
View 8 Replies
View Related
Aug 27, 2010
How do I delete a profile on Ubuntu 10.04. A friend of mine was over and he added a profile on my computer and now sudo doesn't work, and on top of that when I go to update my comp it never prompts me for my password and just restarts the Update Manager.
View 6 Replies
View Related
Sep 21, 2010
I recently tried to delete some files off of my USB drive and it was being glitchy and really slow so I pulled the drive out and put it back in so it would read normally again. I now have an "untitled folder" in my trash that can't be deleted, and the error says "no such file or directory". Unlike a lot of the other problems I've read with not being able to delete the trash files, I don't think this is a permissions problem.
I probably made a stupid mistake and went into the .Trash-1000 folder for the USB drive itself and tried to delete the files, but each time I did that it just duplicated the original folder and renamed it, and now I can't delete those files either!
View 4 Replies
View Related
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