OpenSUSE Install :: Deleting File/directories Via CL
Mar 27, 2010
rm [non-empty directory's name] -r
....and not....
rmdir [non-empty directory's name]-i
..or..
rmdir [non-empty directory's name} -ir
backround:
I just downloaded and innstalled 11.2 about 6 weeks ago, and Have updated several times since... I was very frustrated and found that I did in fact have the proper pernissions to delete this directory. I checked multiple forums for much longer than I would like to admit, and they kept telling me to use (in the end) the same commands.....I finally stumbled upon a forum that again told me to use rm [nonempty directory's name] ...and viola
So I have a share hosting account with 60 sites all running wordpress.
There is a plugin I want to delete from all 60 wordpress sites.
The plugin is in the same path in all 60 sites.
mysite.com/wp-content/plugins/carter Is there a way I can search the entire home directory with filezilla or another ftp and delete every folder with that name in every site or I have to do it the tedious 1by1 sucky way?
I noticed on a couple of my friend's computers, the baobab with Fedora and Arch Linux was able to delete folders by right clicking on them. The Baobab with Ubuntu does not have that feature. I then looked at then obtained the source code and ran ./configure --help, and saw nothing about enabling that feature.
Windows 7 x64 was the only install with a separate boot partition which was already on the Dell laptop. I then shrunk the partition to allow me to put opensuse on. Then I made the stupid mistake of deleting the opensuse and boot partitions while in Windows. I was going to do this, copy pictures of my new born baby off then reboot and delete all stuff and redo all the partitions and installs again.Now I just get grub rescue with the following when I do ls command:(hd0) (hd0,1) (hd0,2)I would like advise on how to get the data off, I cannot afford to lose my babies pics as there are no other copies. I will then do a normal install of opensuse first then Windows 7 after it.
I was dual booting windows 7 with opensuse 11.3 and then realized I wasn't ever using Opensuse. I then deleted the partition it was in and now I cannot boot into windows. Grub immediately takes over upon booting but doesn't detect any partitions. I tried booting from an opensuse cd and changing the boot order priority, but grub still comes up. I don't have a windows 7 installation disc
I'm trying opensuse 11.2 KDE out again after a bad experience last year. I'm installing it over Fedora 12 and when I try to install I get this error: Failure occured during following action: Deleting logical volume /dev/VolGroup/lv swap system error 4015 What does this mean? I've had other problems with with distro in the past but never this one. what is needed to enable the installer to install?
I have Windows 7 and openSuse on my Acer Aspira 5532. I find that after using it, I'd rather get rid of Windows 7 all together. However, I want to be careful not to remove the partition that has the Windows 7 Reinstallation boot disk just incase in the future I wish to go back to Windows. Is there a way I can make my entire computer Linux (no dual boot) but also not deleting the Windows 7 reinstallation partition?
Further, can someone example why, on Boot, I have like 5 options to choose from? Like two openSUSE versions, failsafe, Windows 1, and Windows 2....? To be honest, when I installed openSUSE, I just did the recommended partition job that it suggested. I don't know much about partitions.
Code: fdisk -l Device Boot Start End Blocks Id System /dev/sda1 1 3724 29912998+ 83 Linux /dev/sda2 29256 30401 9205245 7 HPFS/NTFS /dev/sda3 3725 4271 4393777+ 5 Extended /dev/sda4 * 4272 12104 62918572+ 83 Linux /dev/sda5 3725 4271 4393746 82 Linux swap / Solaris
I want ot install a new opensuse 11.4 as yest another OS. Due to the fact that I already have 4 sda partitions, I have to make some changes. What I am thinking about is to copy the sda2 (windows recovery) data to some folder etc (nevermind), then delete the sda2. Then I want to create a new primary partition for the new suse 11.4 and install it. What is worying me is the grub boot menu. I was planning to edit the new one (the opensuse 11.4), with old data.
Code: ###Don't change this comment - YaST2 identifier: Original name: linux### title Desktop -- openSUSE 11.2 - 2.6.31.5-0.1 root (hd0,3) kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080105BB0F00WDHE41DC-part4 resume=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080105$ initrd /boot/initrd-2.6.31.5-0.1-desktop .....
Now my question is will the settings of (hda0,n), change due to the fact that I have deleted the sda2? I have a lot of unused space at the end of my disk and want to create a new "sda2" there.
In system info my ext4 /home directory shows total space of 51.7 gigs with 51.5 gigs available.
My ext4 / directory shows total space 19.7 gig and 7.7 gig free. Whenever I install anything it goes to the / (as guess root directory) In Dolphin it shows my /home directory but anything installed under that seems like it installs on the / directory.
If I have 51 gigs free where is it and how do I gain access?
I just installed the 11.4 version after using numerous previous versions. During this install the /usr directory was placed in a separate partition. How would I go about placing it in the partition with all the other running directories?
opensuse 11.1 64 bit NVIDIA 180.22 yesterday i update my kde from 4.13 to 4.2. Before i install kde 4.2 ,i disable all repo about 4.13
and remove kde 4.13 .using one-click installer,i install kde 4.2 successfully.but i can not login my account in kde session .it says
"call to lnusertemp faild (temporary directories full?)..." use command df /tmp df -i /tmp df /var/tmp df -i /var/tmp
i found my disk have enough space,about 70% free space.i try to lonin use root account .it failed too ,with same error.any one know what is the matter about my kde 4.2?
I am installing a new hard drive to replace my old one that contained the /var and /home directories. I don't want to copy the whole directories, especially from home because there is a lot I don't need in it.What I need to do is set the mount points for the two partitions I have made on the new drive to /var and /home, but it will not let me do this with the other drive still running. I can't unmount /var and /home while the computer is running, and I would guess that having two drives with /var and /home on them would not work.
So, how can I set the mount points on the new drive and copy the files I need from the old to the new one? It would seem that would require two /home partitions to be mounted at the same time, but I don't think that is possible. I am sure there is some way, probably many ways knowing Linux so please,
I have two non-system drives with archive files. Each drive is formatted with one primary partition only, occupying all the drive space. In each drive there will be a number of directories with files in them, like this:
opensuse 11.1 64 bit NVIDIA 180.22 yesterday i update my kde from 4.13 to 4.2. Before i install kde 4.2 ,i disable all repo about 4.13 and remove kde 4.13 .using one-click installer,i install kde 4.2 successfully.but i can not login my account in kde session. it says "call to lnusertemp faild (temporary directories full?)..."
i found my disk have enough space,about 70% free space. i try to lonin use root account .it failed too ,with same error. any one know what is the matter about my kde 4.2?
I started withsda1 windows restore sda3 extendedsda5 swapsda6 /mandrivasda7 /SUSE 11.3 sda8 /SUSE 11.2I then made some changes with gparted (from PartedMagic 5.5) to create an ntfs partition to simulate a condition where someone may want to delete that partition and use the free space for linux. I then deleted that partition, sda2 then sda5 (swap) and taking some screenshots, went about resizing partitions to use that free space and then recreate swap. the intention being to create a basic guide on how to go about this.I have previously only had my swap at the end of the extended partition, deleting itand recreating it later had caused little trouble.I realize that a resize/move operation would have been a better choice.What I was not expecting was the partition number changes that occurred.
Code: root@PartedMagic:~# fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes
I tried running a back-up/restore script in a WordPress install to migrate from one server to another... long story made short, I ended up doing it manually and all is well on that front
The one remnant from that botched script is that it tried creating a directory 'wp-backup' and then a file inside that directory - but it tried using '' instead of '/'. So what it created was a file named 'wp-backupindex.php' with a file size of 0 bytes.
The problem is thus: I can't change the permissions nor delete the file, because of the invalid file name. I don't have direct shell access (that cost *extra*, of course) and every time I try with the web-based file manager (Quixplorer) it sees it as 'wp-backupindex.php', as though the '' is acting as an escape sequence in the file name. Same thing in FileZilla, I can't do anything to the file without it complaining about the invalid file name.
how to ixnay this one file given the limitations above (no shell access) short of calling and bugging tech support to delete the file for me?
i waas wondering if anyone knew of a script or program that removes duplicate words in a txt file. im making an install script and the install list has gotten a bit long so i want to ensure there are no duplicates in the file
I am using Ubuntu 10.10 and 10.04 on two different computers.I have the same problem with both .... when I delete a file on my hard drive or a removable drive I dont get the space back even after I empty the trash.The file is gone and deleted but its as if its only hidden from me seeing it and still sitting on my drive.For example when I have files on a thumb drive and I delete them and try and put new files on there it will tell me I dont have enough disk space even though all files have been deleted, the only way for me to get the disk space back is to format the drive.I have now realized I have the same problem with my hard drives, I delete files but I dont get any space back, eventually I will have a full hard drive but no files on there
This has happened twice to me. I'm editing a filename on the desktop, for example, I have a part of the name highlighted and press delete. Inadvertently, I press delete again, but with nothing highlighted. The file is deleted, but is not added to the recycle bin (possible bug).
I believe that is what is happening. I cannot seem to recreate it purposefully on my work computer --I had done this at home this morning while sans-coffee.
Currently, I'm working on personal project. and I'm kinda stuck. What I want to do is that open a file, and edit that file (deleting unwanted characters). The problem arises after I deleted unwanted characters, the file still has the same length of the original one. Let's assume that we have a file with "1234" in it. I deleted "3" ( I overwrite "\0" ) so now when I check the file, it's 124. But when I check the length, the both have the same size as 4
Here is an example source code int length, length2; num = open("a.dat", 2) length = lseek(num, 0, 2); // Initial length lseek(num, 2, 0); // editing write(num, "\0", 1); length2 = lseek(num, 0, 2); // Final length close(num);
When I print those values those are exactly the same. Length2 should be one less than length, but the both are 4. What's wrong in m code? Am I supposed to use different character rather than "\0"?
I am facing some problem regarding deletion of a line from a text file. The file consists of the lines of type which consists of more than 6 occurrences of : character in it. The line should be deleted completely and the line next to it must be shifted up.
I am trying to delete these symbols "[ ]" from a file but it says string not found. I tried: %s/[//g while editing the file not working also tried sed -e '/[/d' and sed '/]/d' still no job.
But it only deleted the first instance of : in each line when some lines have multiple : appearing in each one. How can I delete all the : from the entire file?