General :: Write A Bash Script To Restore Deleted Files To Original Location?

Dec 5, 2010

I have managed to write a bash script that moves files to the recylce bin instead of being deleted. Then (with a bit of assistance) wrote another bash script that deletes the files from the recycle bin. Now I need to write one that will restore the files preferably to their original location? I am very new to linux and stuggling with where to even begin...any ideas? There seems to be some advice about creating a cloning tree, but I've never heard of them?

View 8 Replies


ADVERTISEMENT

Ubuntu :: Deleted Top Panel - How To Restore In Original State

Aug 5, 2011

The top right panel item contains the shutdown, time, network icons, etc. I don't use the messaging icon so right-clicked and chose 'remove from panel'. The whole lot disappeared! How can I restore things to their original state?

View 5 Replies View Related

General :: Unconsciously Deleted The Project Files \ Way To Restore The Files?

Apr 16, 2011

I was working on my Ubuntu lab machine and unconsciously deleted the project files I was working on. I have been working on the project since last 10 days now. Is there a way to restore the files? I do not have sudo access. I was working in my home directory which is served by a common file system (serving all the lab machines).

View 1 Replies View Related

General :: Write Script To Commit Files To SVN From Defined Location

Feb 1, 2010

I need help to write a script to commit files to SVN from a defined location to a SVN folder (ideally with new folder).

View 1 Replies View Related

Fedora Installation :: How To Restore Audio Files To Original State

Jan 27, 2009

I installed F9 for a friend. She wasn't getting any sound. I ran aplay -l, but got no sound card listed. I ran lspci -v, but got no sound card listed. However,the output of lspci -v said the computer had a particular motherboard. I Googled for it and was told it had an onboard sound card. That led me to the package called realtek-linux-audiopack-4.06a, which I installed. It included an installation script, which I ran.

The script didn't work to compile various files it was supposed to, but it did work to delete various files from my friend's system. Here are the bits of the script that removed files:

echo "Remove old sound driver"
if [ -d /lib/modules/$KERNEL_VER/kernel/sound ]; then
rm -rf /lib/modules/$KERNEL_VER/kernel/sound/pci > /dev/null 2>&1

[code]....

In the result, the failure of the compilation didn't matter, because lspci -v lied. She didn't have the motherboard shown, but a different one without an onboard sound card. Of the files deleted by the script.

I was able to reinstall libasound.so.2 and libasound.so.2.0.0, but I haven't yet tried to reinstall the other ones deleted by the script. Now, I want her to buy a sound card, but I'm afraid it won't work unless all the deleted files are reinstalled. I'm looking for guidance as to how I can reinstall the files deleted by the bits of the script I set out above, without completely reinstalling Fedora.

View 4 Replies View Related

Software :: Restore Deleted Files In Gnome Commander?

Jan 26, 2010

Is any easy way to restore deleted files with Gnome Commander (v1.2.8.2)? I have external drive with two partitions: FAT32 and EXT4. I was using GC on Ubuntu 9.10 and it was working fine, today I installed openSUSE and GC is showing only EXT4 partition. Nautilus is showing both and it is working fine though.

View 2 Replies View Related

General :: Write A Bash Script That Gets The List Of Files In A Directory?

Apr 5, 2010

I'm trying to write a bash script that gets the list of files in a directory and puts them into a variable, then checks each entry and outputs them as follows:

item1 is a FILE
item2 is a DIR
item3 is a DIR
etc etc.

I am able to get the list of files into a variable, but unsure how to get the output I want.

View 3 Replies View Related

General :: Restore Original Chown Permissions On VPS Centos?

Jun 29, 2010

well, by mistake i ran a command and chown the whole server apache:apache

now, i can't do anything... is there a way to restore the original permissions??

View 3 Replies View Related

Ubuntu :: Nautilus Location Bar: How To Write Manually Location

Oct 30, 2010

I have been testing ubuntu 10.10 maverick, it has some nice features. Anyway I am missing the possibility of writing manually the folder you want to go on nautilus using the Location bar. It was used to have some kind of icon which you can click and it switched between graphich breadcrumbs or the location of the folder and you could changed it manually, you know what I mean?

View 2 Replies View Related

Ubuntu :: Restore Backup Server - Where Is The Location Backup Snapshots Or Files Are Saving

May 10, 2011

I install and tested Restore EE Backup server on a test PC with basic configuration and its working fine.

[URL]

The issue i have is where is the location these backup snapshots or files are saving? I want to add a separate Storage to save the backup?

View 1 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Deleted Path Variable - How To Return To The Original Path Value

Apr 26, 2011

Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.

View 3 Replies View Related

General :: Convert Many Files To Individual .bz2 Files Retaining Original Name?

Mar 28, 2010

i have a large directory of .bsp files that i would like to convert .bz2 archives. I've been searching for some time and all i can find is the obvious compress multiple files into one large archive. If anyone knows how to convert each file individually, while retaining the original file name (testmap.bsp would be archived as testmap.bsp.bz2)

View 5 Replies View Related

Programming :: Create A Bash Menu Script For Home Server - Restore Files From A Backup?

Jan 19, 2011

I would like to create a bash menu script for my home server For instance if i were to type ./script It would then bring up 3 options

a. Create a backup
b. Restore files from a backup
c. Quit

If you were to select a or b it should then ask you were you want to backup or restore from. And if i were to type in an incorrect letter i should get an error and take me back to menu. I have attepmted this a view time now and have magaged to get the menu up using parameters

View 9 Replies View Related

Programming :: Simple Bash To Write Files By Year To A Log File

Jan 31, 2011

I have a folder of 2 many files that the old ls just hangs.

I am trying to write some log files such as;

I don't mind doing one at a time, but I am just playing and even getting the listing I am not getting the date stamp, I have the following;

That does create the file, but all the files look like this;

So basically it's just sticking that ls inside the log file and not actually running the ls, so how can I use the above type to get files just created per year?

View 2 Replies View Related

General :: Remove The Plasma Desktop In SuSE 11.1 And Restore The Original Desktop?

Oct 1, 2009

Is there a way in SuSE 11.1 to have the conventional desktop, instead the plasma desktop? I thought that installing KDE 3.5 will fix it, but I was wrong. I really don't want to download back SuSE 11.0, just to have my old desktop layout. SuSE developers should at least leave it as an option than to force people to install it

View 2 Replies View Related

Fedora :: Restore Original Yum Config?

Aug 17, 2009

how to restore the original yum settings?

I followed a walkthrough that set the yum config to be more robust(?) or harder to break F11 and since have had major problems installing things.

Can I roll this back or reinstall the yum parts of the OS from scratch to regain normal operation?

View 4 Replies View Related

OpenSUSE :: Restore Original KDE Desktop As It Was From The DVD

Apr 9, 2009

When i click the green frog head, things dont behave as before. When i moved my mouse from the Favorites to Applications or to Computer/Recently Used/Leave tabs, the desktop enviroment would automatically switch, without me having to click them. Another thing is if i want leave the green frog toolbar i have to click somewhere withing the green frog head window to close that window. Before i was able to get out of it by clicking on any window out of it, like a firefox window. Also when i go to desktop setup , the only themes remaining are Oxygen and Aya.There were more before. Finally similar programs on the taskbar are grouped together which i don't like. how i could over these problems without having to reinstall the OS , preferably using the opensuse dvd.

View 9 Replies View Related

OpenSUSE :: Restore The Original 11.3 KDE 4 Desktop ?

Apr 8, 2011

I have managed to delete my default openSUSE 11.3 KDE 4 desktop. I also ended up with this seemingly unchangeable desktop set up. How do I restore the original openSUSE 11.3 KDE 4 desktop ?

View 3 Replies View Related

Fedora :: Restore KDevelop To Original F11 State?

Oct 23, 2009

I tried to install KDevelop4, decided I didn't want to use it, and now I am having trouble getting KDevelop3 working again. The only steps to installing kdevelop4 were installing a new version of kdevplatform and then kdevelop itself. I did this:

1) sudo yum remove "kdevplatform* kdevelop*"
2) disable updates and testing repo
3) sudo yum install "kdevelop"

The problem is that there is something wrong with the menus (File, Edit, etc). There are many important items missing, as well as one of them says "No text!". This indicates that this is not the original packaged version with F11 because I used it for a year and it was certainly not like this. Is there a better way to get back to the original version than I showed here?

View 1 Replies View Related

Ubuntu Installation :: How To Restore To Its Original Setup?

Feb 28, 2010

They were controlled by BIOS for start-up without problem.Just wiped out Fedora and installed Ubuntu 9.10 64bit. During installing GRUB I saved it on Master, IIRC.Now Ubuntu and Vista startup are controlled by boot loader. I have to start Ubuntu first and on kernel selection select (loader)(on/dev/sdb1).Then Vista starts.It works.How can I restore to its original setup?Their booting is controlled by BIOS.

View 8 Replies View Related

Ubuntu :: Restore 11.04 Back To Its Original State?

Aug 15, 2011

I recently had a problem in Ubuntu 11.04. I had just installed GNOME 3, however, I didn't really like it as much so I decided to go back using GNOME 2,but then a whole bunch of things happened. I tried re-installing GNOME 2,but then I lost the Ubuntu enviorment and stuck only with GNOME and now I'm only left with a terminal whenever I log in. how to restore Ubuntu 11.04 back to its original state, like as if it had a fresh installation?

View 7 Replies View Related

Ubuntu :: Write A Bash Script Which Will Find Files Then Move Them To A Specific Directory?

Sep 1, 2011

I'm trying to write a bash script which will find files then move them to a specific directory.

So far I have:

Code:
#!/bin/bash
#script to find and move files
src_dir="/path/to/source/directory"
des_dir_mov="/path/to/destination/directory/for/movies"
des_dir_img="/path/to/destination/directory/for/images"
find $src_dir -iname '*.avi' -type f -exec mv '{}' $des_dir_mov ';'

I'd like to have all the possible movie file types then the image file types checked in a loop.

Every time I try to include an array in this script it breaks

View 3 Replies View Related

Ubuntu :: Firefox Auto Update Keeps Failing - Original Installation Location

Jul 29, 2011

Firefox auto update keeps failing so...I need help locating the original installation location.

I tried downloading the update and using archive manager to open rather than save, but still it wanted to save. Now I can't find the location it selected.

I want to locate the downloaded saved and delete the new files, to conserve space.

And I need to learn how to force an Automatic update.

I found a folder named firefox and another firefox 3.0 System will not let me delete / move to trash.

I want to update to latest version. Don't want to remove the original and lose all my bookmarks

View 9 Replies View Related

General :: How To Know Who Deleted Bash History?

Apr 8, 2011

In my organization, we have a centralized home directory for all users which gets mounted from all the machine where user logs in.Since any XYZ user can login to any of hundreds test machines and run 'sudo su - myusername', hence taking control of my home dir.How do I track who took control of my home dir and deleted its contents.

View 3 Replies View Related

Software :: Restore To Original State After A 'make Install' ?

Feb 26, 2011

I was in real doubt where to put this, so I hope I picked the right forum; otherwise, my apologies!

I want to build Roadsend PHP on my system. There seems to be no way to do this with the package manager, so I have to build it from source.

Turns out it depends on something called 'Bigloo'. Again no luck with the package manager, so I had to build this one from source too.

I took version 3.0c (Roadsend website recommends this version), did a

Code:
./configure && make && make install

, which did the job. Builing Roadsend worked, but I got a runtime error, which had to do with the Bigloo version.

No problem, I tought, then I'll just install Bigloo 3.1a. I did a "make uninstall" in the 3.0c dir, and tried to build 3.1a. This also worked, but now when I try to make Roadsend, I reports:

Code:
*** ERROR:bigloo.heap:
Release mismatch -- Heap is `3.0c', Bigloo is `3.1a'

So, somehow, there are still traces of 3.0c on my system. Maybe some file that didn't get deleted or some table entry that hasn't been undone?

My question is: How can I remove all traces of this version? Apparently, "make uninstall" is not thorough in this case.

And: Is there a general solution to remove everything when I did a "make install". So that my system is in the same state as it was before I ran the command?

View 4 Replies View Related

Ubuntu :: 10.10 - Continuous Crashing - System Restore To Its Original Settings Or Something?

Dec 30, 2010

I recently had my laptop which ran windows xp, wiped and ubuntu installed in its place. I was told of all the grand benefits of ubuntu so I thought yeesss. Everything was running beautifully, everything was heavenly, until i encountered "a flash website ". This was strange because ..... worked fine.

Anyway ever since I encountered that site Ubuntu crashes on startup. I log in then crash. Its strange because sometimes it takes a while to crash e.g. when trying to open any application, or sometimes its instant.

1. How i diagnose this problem so it can be fixed, remember it may have to be before the log in.
2. Is there someway I can do a system restore to its original settings or something?

View 3 Replies View Related

Red Hat / Fedora :: Chmod Command To Run To Restore The System To Its Original State?

Jun 15, 2011

we have a customer that ran a sudo chmod +x -R * command on his / filesystem by mistake and now the machine cannot be accessed on the network Has anyone any idea what chmod command to run to restore the system to its original state ?

View 1 Replies View Related

Debian :: Restore Original Boot Record After Grub Installation?

Mar 11, 2011

A few days ago I installed my first Linux product, which is Debian 6.0, and I installed the GRUB booting device on my main boot record, as it was suggested that it was a harmless step to take. Unfortunately, some quirk in my system made GRUB believe that I had XP when in fact I have Vista, so the options I have now are to boot Debian or to boot XP which is not on my computer. In other words, I have to get rid of GRUB now, but I'm realizing that he's not such an easy customer to kick out. I have moved my Linux installation to another drive, but the old GRUB always stays in place, and my Vista is stuck there frozen for eternity. So after considering all kinds of possibilities, I have come to the conclusion that the easiest way to restore my original boot record would probably be to find its backup copy that I assume the installation program made, and to copy it back into the right address at the beginning of the disk. I don't have the Vista recovery CD, so I really have to do this manually. So now my questions are these: did the installation program make a copy of the boot track, and if so, where did he put it and under what name, and finally, what command can I use from within the Debian terminal, which is now my only tool left, to copy the content of thesaid file into the first 512 bytes of the hard drive? I know that would be a simple matter for any serious geek, I guess I must be a little rusty. Anybody feel up to it?

View 9 Replies View Related

Slackware :: Desktop Fonts Got Tiny - How To Restore Original Size

Jun 8, 2010

When booting into my slack12 fluxbox desktop today my fonts were so small they were hard to read. The same is true if I use kde. I didn't change anything that I can think of. I tried running fc-cache but it didn't change anything. My xorg.conf hasnt changed. Interestingly, my xterm font didn't change size, but the konsole font is tiny like my other desktop fonts.

View 3 Replies View Related







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