Windows has been crashing systematically on my old netbook, so I booted debian from a liveUSB. The reason I don't want to install it outright is that I didn't backup my files, so my plan was to do the backup with live debian. Yet, for some reason, Debian's "File viewer" doesn't "see" my HD files. That is, my disk is listed as a mounted device and I can see all its directories ("Downloads", "My Documents" and so on) but they all seem to be empty.
So I try from the terminal, where "dir" on /Downloads effectively returns the list of all the files I remember I had there. So on my first attempt I try to copy one single file to /home, that is,
Code: Select alluser@debian:/media/user/36AEF3F8AEF3AE8D/Users/xxxx/Downloads$ sudo cp filename.jpg /home (/media/user/36AEF3F8AEF3AE8D is the mount point for the /dev/sda2 filesystem) and I get
Although I've been using Ubuntu for a while, I haven't really done any scripting thus far,but now find myself needing to do (what I thought was) some fairly simple stuff.However, despite much searching, I have been unable to find a solution to my problem.I need a script which will delete all of the files/folders from a directory except those I specify. From the command line, I am able to use:rm -r !(constant|system|*.msh|)
which works fine, deleting everything except the 'constant' and 'system' folders (and everything in them) and any files ending in '.msh'. I have tried to put this into a script file, specifying to use the bash shell, and escaping the required characters, but I just get the message 'cannot find !(constant|*.msh)'.I have read that using the find command may be a better way of doing it, but so far I have not been able to make the command work in the way which I need (I have easily been able to delete ALL the files/folders in the directory!).
I have installed a new system on my desktop computer, and would now like to delete files/folders from the web interface, as they no longer reflect the files and folders on my desktop PC. I use my desktop PC to sync files and folders one way to my laptops.
Can't rename, move or delete files or folders that have a foreign character. Code: The file or folder /data/down/done/1999 Taraf de Ha-douks does not exist. Kubuntu Karmic. Fails in konqueror and dolphin.
I have an archive directory that needs to be cleaned up once per quarter. The top level (/data/archive/*) directory names change daily, as well as the subdirectories and the filenames (the application names everything according to date). Also, there are two top level directories, bin and incoming, that we can't touch. I want to write a shell script that loops through the 15 or 20 top level directories and deletes all files and subdirectories older than 3 days (skipping the bin and incoming folders). Can someone get me started on a script? I am kinda new to shell scripting.
10.10 on a ext4 partition. I deleted a folder that sat on a NTFS partition that I use as data storage. I note that if I delete folders or files on this NTFS partition there is not the option to move to waste basket - it is just deleted. If the folder still exists on the hard drive (has not been over written) I may be able to retrieve it - but where could it be? On the NTFS partition?
I am trying to install Fedora 10 on an old P3 Inspiron 5000. When I boot from the Live cd the screen is split into three sections and is hard to navigate. I am able to edit the /etc/X11/xorg.conf file and log out and log back in to proceed with the installation. The problem is when I finish the installation and reboot to the new OS it boots to the triple section mode again because my xorg.conf is not edited. To do any commands in Fedora I need to get through a brief user setup in which I cannot navigate through until I can see the screen better. Is there a way to boot to a graphical type safe mode so I can see the whole screen to finish the installation? How can I access folders from the live cd to edit the installed files? This way I can edit the xorg.conf file before booting and all would be legible.
When I was using Ubuntu 10.10 I was able to add menus, edit and delete them from the main menu by right clicking on the menu and selecting Edit menus [URL]. After installing Ubuntu 11.04, I found that I can't add, edit or delete any menu. Any one knows how to add, edit and delete menus from the main menu?
Recently I did a wget for DreamLinux 4beta6.3, which I now cannot burn to a disk. Another issue with linux in general being just a hobby. Why could a dev not set it up where you could just wget the upgrades for the main distro files themselves ?? We already do this when upgrading the apps, so why not the distro? Why could you not start at alpha, and just slap do a rolling upgrade into rc and beyond?
I understand the potential stability issues, but why can't we ghost the drive and hence have a backup on hand and then do this as outlined, and hence do a single install from alpha the distro's grave? I am wasting four months on "Setting Up" each install, only to wind up reinstalling again. This happens in every variation I have come across. Even in stable versions, the rolling upgrade just craps the install, and the major do overs hijacks all my data.
I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.
just install kde in ubuntu couple of hours ago.i was just checking the panels and widgets.unfortunately i delete the bottom main panel. so i cant access any thing.just desktop is seen.without kde bottom panel kde is useless.its looks like this.snapshot1.pngwhat can i do. i want it to default position ?
I have recently done a clean install of Ubuntu 10.04 [and it is all going very nicely unlike some others] on my dual boot Dell Dimension 5100.After seeing some advice about advanced partitioning I decided to expand my partition table during the 10.04 install process from swap, / and /home (where I keep My Documents) to swap, /, /home, /var, /tmp and /usr, all of which was achieved without problem.I am now getting "Low Disk Space" messages on my home partition (488 MB remaining!!!) I have emptied the trash and cleaned up any obviously large but surplus files. (I did find two that concern me but they aren't HUGE and I am unsure of what they do: file-meta.db and file-index.db in /home/john/.cache/tracker/ which are 290 MB and 108 MB respectively, last modified five months ago and something to do with SQLite3.)
Anyway, am I right in saying that my new /var, /tmp and particularly /usr partitions now contain some of what was previously held on / and /home, leaving old files that can be removed? If so, what is now surplus and how do I delete it safely? I had a bit of a dig but, as the properties in Nautilus of, for example, /usr do not indicate what partition it is on, I can't safely tell what is current and what is old.
I have a Nook. When I plug it into the USB port on my system, a window pops up asking what I want to do with the new device. I can open it and access media/nook and move files into and out of the directory.
There's a button to "Safely dismount Nook" before I unplug it. I use that. Apparently, however, sometimes it doesn't respond. Now I have .hal-mtab-lock in my /media folder, along with Nook Main Memory and Nook Main Memory (1) folders. I can't delete any of them.
How do I a) delete these folders, and b) make sure it actually unmounts the device in the future?
I am on mac os x and whenever I make aliases in my apache config file to point to folders outside of main web document root folder, I get access forbidden. I have chmod -R 777 the whole destination directory (to test it) and still no go. Access forbidden. I have also tried pointing directly to [URL].
Currently I am doing a java project and I renamed some file/folders to start with '.'. i.e. ".project", ".classpath", ".settings/"
I can see them on my desktop but i cannot delete them. In the terminal, "ls" command does not show these files exist. "rm" will also say cannot find these files. How do I get rid of these files/folders?
I have a Ubuntu file server with a mix of 30+ users ( mix of windows and linux ).All are members of the same group. All need read write create access. I want to prevent deletion of certain key folders. How can I achieve this ? sudo chmod -R nnnn ??
I just had a bad experience with a server, and now i have a 17GB lost+found. It appears a lot of the stuff in there are folders which are empty. Since those really serve no purpose as far as recovering data from what I can tell, is there a slick way to delete just the empty folders from my /data/lost+found folder, leaving me with just the stuff I truly need to look through?
I have a USB drive that has a TON of folders on its root level. I want to remove all those folders and their contents except three of them. I know if I do rm -rf that will kill everything, is there a way to exclude three folders, say folder1 folder2 newfolder, and do it all in one statement?
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.