General :: Command To Empty Recycle Bin?

Oct 15, 2010

Simple question but even google does not come up with an answer, seems to be too easy that someone else asked it ;). Could anyone tell me what is the shell command to empty the garbage bin under Linux?

View 3 Replies


ADVERTISEMENT

Ubuntu :: Empty Trash Command For Files (Desktop Recycle Bin)

Aug 28, 2010

I mount /home on a logical partition. Files and directories that I trash from here go nicely into the recycle bin, and I can right click on it and choose "Empty Trash" with no problem. Files off of the root directory in directories that I "own" (i.e. /mydir/*) do not play as nicely. I went ahead and followed instructions from another post, namely:

Code:
sudo mkdir /.Trash
sudo chmod 1777 /.Trash

And after trashing some files from /mydir, there is indeed a subdirectory with my uid (1000) and files that I trash from /mydir are going in there. However, the recycle bin on my desktop remains empty, and the only method I have for deleting said files is by deleting them from the /.Trash/1000 folders through the command line. So my question is: Is there anyway that I can trash files from /mydir, see them appear on the desktop recycle bin, and empty the trash without the need to rm them directly through the command line? Not sure if it will help, but here is my fstab:

Code:
# / was on /dev/sda1 during installation
UUID=4129f389-92be-459e-8bbc-928c1440f718 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=6a30914d-04a3-4b03-85bd-2bf16a68a41a /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=f388cf04-bbd6-4bf9-9d69-0778b0f158fd none swap sw 0 0

View 7 Replies View Related

Ubuntu :: Recycle Bin Wont Empty?

Feb 25, 2010

my recycle bin wont empty. i ran the command:sudo rm -r ~/.local/share/Trash/files/*and got the response:rm: cannot remove `/home/steve/.local/share/Trash/files/*': No such file or directory

View 1 Replies View Related

General :: Empty Bash Command Line?

Sep 28, 2010

I am looking for a way to delete the currently entered commandline without wasting seconds on the "Backspace"-key.

For example I scrolled the bash history and have a long commandline that would execute when I pressed ENTER:

~$ aptitude search openssl | grep dev

But now I decide that I do not want to execute this command. Can I get an empty prompt fast without deleting the whole line with Backspace? On the Windows "cmd" you can just press ESCAPE and it is gone. This behavior would be what I want.

The question may seem trivial but this is bothering me for a long time now.

View 2 Replies View Related

General :: Command Not Found For All But PWD And Echo - Path Empty

Mar 1, 2011

I logged into my Red Hat Enterprise Linux machine at work (use it for software development) and the primary GUI does not load. Instead, widgets appeared for xclock, xterm, and Firefox. In the terminal, I start typing in commands to try to figure out what's going on, but all commands are not found except pwd and echo. I 'echo $PATH' and that returns just an empty, blank line. 'echo $SHELL' lets me know I'm using cash.

The likely cause was my attempt to install Adobe Reader Firefox plugin yesterday. After it downloaded, I ran the binary but Firefox didn't seem to recognize that I had installed it, so I went into my .cshrc file and added the adobe folder to the path. That didn't seem to work, so I gave up, deleted the binary and the folder I installed to, and removed that directory from the path in the .cshrc file. This last thing (the export PATH line in that file) I'm certain is back exactly as it was before.

I have successfully added the /bin and /usr/bin back to the path from command line via
setenv PATH /usr/bin:/bin
but of course it doesn't stick after reboot nor does it magically load the primary GUI. I'd rather not go through the effort of creating a ticket for our company's Global Service Desk cuz there's no telling how long that could take to resolve. In the meantime, I can't do any programming.

View 23 Replies View Related

General :: Recycle Scanner Driver?

Nov 26, 2010

I have this Epson multifunction TX-105 and it worked fine with Hardy Heron. Now i am running Lucid Lynx and cannot find a driver for the scanner part. Question: is it safe to try the old script on this new Ubuntu version..? Printer was automatically detected and it's ok. Damn scanner is the one i want to activate.

View 3 Replies View Related

General :: Find Contents From Recycle Bin That Were Put Into One Folder - Name Unknown?

Oct 13, 2010

Recently I did a System Mechanics clean-up of invalid and other misc files. The files were moved to the recycle bin, but I couldn't open a file individually while it was in the recyle bin in order to double check whether or not I wanted to perminently delete it. I then selected all items and moved them to a single folder hoping to open it later to review the individual files.I don't know the folder name or what part of the computer this folder was moved to. Is there a way I can find this new folder, name unknown, that was created on 10-12-10? I'm sure it's taking up valuable space in my computer and I want to permently delete the unwanted items individually and not as a whole batch.

View 1 Replies View Related

General :: "cp" Command - Called BACKUP And Is Initially Empty

Jan 10, 2011

I'm in a directory containing various files and subdirectories, one of which is called BACKUP and is initially empty, what exactly happens if I launch the following command line:

Code: cp -R . BACKUP???

If I'm not mistaken, all the content of the current directory should be copied into the BACKUP directory, apart from the directory BACKUP itself. Actually I get a message saying something like:

Code: cannot copy a directory onto itself BUT when I look into the BACKUP directory I find another directory called BACKUP which I did not expect to find. Moreover, if I launch the same command again I get the same message (repeated two or more times) and then I find that inside the "second" BACKUP directory there is a third one, with the same name again. In other words, every time I launch the command I get a deeper tree of "BACKUP" directories, as if the command was messing everything up. I know that most probably I'm the one who's messing things up and I also know the "problem" can be easily bypassed by using as a destination for the copy a directory located elsewhere, but I'd like anyway to understand the reason for such a behaviour.

View 3 Replies View Related

Ubuntu :: Sed Command Empty The File?

Mar 13, 2010

I have this file: 1.txt, with this contents:

Code:
test
mycomputer

I just try change the string "mycomp*" by "othercomputer":

Code:
sed 's/mycomp.*$/othercomputer/' 1.txt > 1.txt
but sed command empty the file.

[Code].....

View 2 Replies View Related

Ubuntu :: Allow Empty Return From Read Command?

Feb 19, 2010

I am writing a short script to do some backups.Here is a small section of it:

Code:
echo -n "Please enter your choice ..."
read CHOICE

[code]....

View 3 Replies View Related

Fedora :: Trash Icon Stays Full On Empty Command - No Hidden Files

Apr 26, 2011

Using Fedora 14 with Gnome 2.3 Desktop utilizing Compiz and Emerald theme manager. When I empty the trash, the icon is still the FULL Trash icon. I tried using different Emerald Themes, and different Icon sets, but still the Trash Icon stays full. I checked the trash folder in $HOME/.local/share/trash and found nothing, no hidden files.

View 3 Replies View Related

General :: "recycle Bin" Without Desktop Environment?

Mar 31, 2011

Without a desktop environment (KDE,Gnome, ...) , is there a way to recover deleted files (like a recycle bin or a trash directory).

View 8 Replies View Related

General :: Shell Scripting \ (test If A File Is Empty, If It Is Then Display "file Is Empty" Otherwise Display "file Is Not Empty")?

Oct 5, 2010

I am a final year student doign Computer systems engineering and just been introduced to linux. While still strugling to catch up with the commands, I am now given an assignment under shell scripting.I seriously am strugling to understand this question, can you please assist me.Here follows the assignment:

Operating Systems III
Some tips
e.g. (test if a file is empty, if it is then display "file is empty" otherwise display

[code]....

View 10 Replies View Related

Ubuntu :: Where Is The Recycle Bin

Dec 21, 2010

where the folder for the recycle bin is on Ubuntu 10.10?

View 3 Replies View Related

Fedora :: Restoring Recycle Bin Icon?

Jun 15, 2010

I'm really into desktop customization so today while i was changing a couple of things here, i did the stupidity of changing the recycle bin icon (right click on the icon> properties> basic tab). I obviously regreted it and now i'm trying desperatly to restore it to the default icon. I'm not a total noob when it comes to customization

View 2 Replies View Related

Ubuntu Networking :: SSH And Deleting Files To The Recycle Bin?

Apr 18, 2011

I'm using Ubuntu 10.04. I have set up a pc to act as remote storage. I connect my desktop pc to it. I have done the following:

sudo apt-get install sshfs
sudo adduser fuse
sudo mkdir /mnt/remotedir
sudo chown username /mnt/remotedir
sshfs username@remote_computer_ip:/path_on_remote_comp /mnt/remotedir

(obviously replacing the username and paths with my information)

I can connect to the remote computer however I cannot delete remote files to the recycle bin. What do I need to do in order to delete files to the recycle bin?

View 7 Replies View Related

Ubuntu :: Cannot Move Files To Trash / Recycle Bin Does Not Retain Stuff

Jul 23, 2010

When I try to move a file to trash, it doesn't retain anything. I drag a file to the trash bin icon, I open the trash bin, its' empty. How do I make my trash bin retain some trash?

View 1 Replies View Related

Ubuntu Servers :: Bash In 10.04 Server - Every Empty Line In The Script Results In "command Not Found"

Oct 8, 2010

Bash acts weird in 10.04 server. Whenever I try to run .sh scripts, every empty line in the script results in "command not found". Then on even simple scripts I get syntax errors, but the same exact scripts work on my 9.10 desktop installation. There's also another problem, I'm not really sure if it's bash-related. After setting the proxy using

[Code]...

View 5 Replies View Related

Ubuntu :: (BASH) Join Command (GNU Coreutils) - Why Join Ignores The -e Flag And Fails To Insert FOO In The Empty Field

Mar 2, 2011

I am trying to understand the join command. I wish to join two files:

Code:
$ cat test1
a 0
b 2.51
c 19.85
$ cat test2
a 0
b 2.51
[Code]...

this is great but I do not understand why join ignores the -e flag and fails to insert FOO in the empty field.

View 1 Replies View Related

General :: How To Empty Several Subdirectories

Aug 18, 2010

I looked through google but can't find an answer for this..... say I have a directory called "files"; this directory contains several other directories..... what I wanna do is delete ALL the files within the subdirectories, but NOT delete the subdirectory. Can this be done easily without having to run a command for each subdirectory?

View 8 Replies View Related

General :: How To Empty A File

Jul 15, 2010

I have a large file that a process writes to. I would like to empty that file. If I delete it the process will stop writing to it. Just flush the content but keep the file.

View 9 Replies View Related

General :: Using An Empty Ex4 Partition

Apr 12, 2011

I have Ubuntu in one partition . The partition is about to be full..I have a spare partition which I thought could merge with the existing..But I guess it is not possible. I am slightly confused with the way linux stores the files. There is a root directory and within that there are boot ,Var,tmp and home..

Suppose I install an application from a package manager , I really do not understand where the path is ...Supose I want to store certain new applications in the spare partition , how do I tell the system? Also while installing it doesnt give a choice regarding the path ...All I see is a couple of files exracted and when it completes , it sits on the menu neatly. From a storage perspective how do you gain control? Say in Win , normally any package will ask for the path which you can customize..How do you plan the storage of files in Linux?

View 7 Replies View Related

General :: List Only Non-empty Files Using Ls?

Sep 23, 2010

How can I list (using ls) all files that are not empty (size > 0) using linux?

View 7 Replies View Related

General :: Empty Map In Nautilus But Not In Terminal?

Aug 25, 2010

Lucid 10.04 distro. On an ext usb hd I have 250วด info in 6 directories. All directories are visible in terminal mode mod 755. All directories are visible in nautilus, all files are visible except in one directories which contains 200gig of videos.A file search shows all in all directories. All files can be opened mv, cp etc. I can move a file from this directory to another and all is well.In my Debian 5.05 distro with the same hd and directories etc, this problem does not occur.

View 6 Replies View Related

General :: How To Delete All Empty Folders

Jun 7, 2010

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?

View 3 Replies View Related

General :: Everything Is Going Great \ Mail.log Is Empty?

Apr 15, 2010

OS: DebianMail Server : PostFixAV: ClamAVI have a newly created SMTP mail server and so far, everything is going great. Over 300 mails are being sent a day and no major issue has come up since then.However, the thing is that every morning I'm rotating my logs so that mail.log becomes mail.log.0 and so on.Its working fine but this morning, mail.log after having been empty and rotated, is empty and nothing is being logged anymore in it.The strange thing is that mail.info is but not mail.log. Mail server is still working well, syslog shows nothing strange, mail.err either, everything is working smoothly as its always been since I started everything, but my mail.log is being kept empty

View 2 Replies View Related

General :: Forcing Tar To Create An Empty Archive?

Apr 21, 2010

I'm trying to use tar to tar files before transfer, so I can keep the entire file path rather than losing it along the way. However, when I try to tar an empty folder, it tells me that it is cowardly refusing to create an empty archive. I want to keep the empty folder on the other end, but don't want to put anything else into the archive to make it non-empty. Is there any way to do this?

View 1 Replies View Related

General :: Disk Space Used On Empty Partition?

May 26, 2009

The partition is formatted to ext3, starting with block 1 on the drive. The mount point for /dev/sdc1 lists 0 files when doing `ls -A` `df -h` shows that the partition has 92MB used. How is this space being used, and how can I free it up?edit: I guess this isn't a newbie question.

View 7 Replies View Related

General :: Create Empty Or Blank Iso File?

Nov 23, 2010

I having been searching for a way to create an empty or blank iso file, so that I can mount it, and have a backup application think it's a blank CD. I am tired of wasting CD's by having the application write a recovery CD, just for me to turn around and export it to an iso image to be stored in a online archive, and then throw away the physical CD.

View 5 Replies View Related

General :: Replaces Empty Spaces By Underscore?

Mar 11, 2011

my requirement is i need to copy mail subject to a text file and create one directory from the name of subject.

my MAIL subject is like this :

Quote:

Subject:Thanks to linuxquestions.org

i copied the mail subject to a file. and now the issue is to creating a directory.

now i want to create a directory without empty spaces, insted of space replace _ in that place.

i want out put like this.

Quote:

Thanks_to_linuxquestions.org

View 5 Replies View Related







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