Ubuntu :: "clean Up" Script - Clear Trash From Command Line?
Feb 28, 2010
I'm looking to make clean up script. I need it to,
Clear ALL Private Data in firefox
Clear Recent Doc's
Clear Trash
Clear Thumbnail folder
I know how to clear the trash from the command line and also the thumbnail folder. I tried to google how to clear firefox but the files to delete seemed to have changed from older versions, they seem to be sqlite files and also I'm unsure which ones to remove. how to clear recent doc's but all the guides seem to be to be for GUI.
View 5 Replies
ADVERTISEMENT
Mar 19, 2010
I find that when I am using bash, I like to type clear <enter> ls.. or clear; ls.
I wanted to these two commands into a script called cls so I can call the script to clear the screen and list files at the same time. My script looks like this:
I did chmod a+x and put it into /usr/bin
The script works fine, except that when I execute it, the folders/files are not color coded. If I type clear; ls on the command line, they are color coded.
How can I make this work in the script?
View 2 Replies
View Related
Oct 17, 2009
I have just accidently deleted /usr/lib as root, how do I restore it from the trash can from command line? Seeing as how no programs will now run. I can't seem to find /root/.Trash, no such folder seems to exist ,or did I just royally screw myself?
Edit:
First off where is the Trash folder for root in Fedora 11 I have googled and looked everywhere I can't get a straight answer. It is not in /root/.Trash for one.
View 2 Replies
View Related
May 8, 2010
I downloaded and installed k3b from the software center and remember seeing that after it was installed, an additional 180MB would be taken up. so the installation process took about 2-3 minutes after unpackaging or whatever it does. But when I went to uninstall it, it took like 2 seconds. Is there a way to clean up packages that hasn't been uninstalled all the way or haven't been used? Is that normal?
View 4 Replies
View Related
Aug 21, 2011
I got this error message when i tried to delete a video. i have cleared my trash bin but i still get this error message.
View 2 Replies
View Related
Sep 3, 2010
How can I open the Trash to clean it??
I am using KDE4.5 in openSUSE11.2
View 2 Replies
View Related
Dec 20, 2010
its basically a cleanup script which will clean all my trash folders..
n run
apt-get clean
apt-get autoclean
apt-get autoremove..
how can i do so?
View 9 Replies
View Related
Sep 25, 2009
This message comes up when I try to upgrade. The upgrade needs a total of 400M free space on disk '/'. Please free at least an additional 394M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
View 2 Replies
View Related
May 29, 2010
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies
View Related
Aug 3, 2010
I tried to set up an alias for update, upgrade and clean by putting this line into my .bach.rc file
Code:
#alias ud= 'aptitude update && sudo aptitude upgrade && sudo aptitude dist-upgrade && sudo aptitude autoclean' but when I type ud I get this error message, by the way I tried the bash.rc entry both commented and uncommented with the same result.
[Code]..
View 4 Replies
View Related
Jan 21, 2010
I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.
I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'
This is how i defined other aliases e.g.
And they work. Hence I assume cls will work too but this is what I get when I try to give cls on command prompt. Am i missing something? Is there a way to do this?
Then someone suggested, You cannot alias keystrokes to commands or vice versa. You could just alias cls to an echo command: echo -en "x0c"
And I added the following to .bashrc,
Sourced the .bashrc file. No errors but cls still does not clear the screen. Infact when I typed the echo -en "x0c on command prompt as well, nothing happened. What does this command do?
View 3 Replies
View Related
May 14, 2011
I go to make trash for "rm" command ...
I use this Options :
1) Edit /home/$USER/.bashrc
Code:
2)restart terminal and test this :
Code:
Now my problem is for some file .
for example . i make this file :
Code:
View 13 Replies
View Related
May 30, 2011
I see sometimes when you're compiling something to run, you do a make, install and clean. What exactly does clean do?
View 3 Replies
View Related
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
Sep 27, 2010
Can I delete files in trash that is older than 10 days with a terminal command?
View 3 Replies
View Related
Dec 9, 2010
I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...
View 3 Replies
View Related
Feb 24, 2011
I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
View 5 Replies
View Related
Aug 22, 2011
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies
View Related
Mar 12, 2011
When I move something to Trash it doesn't show the option of "Empty Trash". I can use "move to Trash" and it just moving there like some ordinary folder, but shift+del give me an option for deleting the files. Using OpenSUSE 11.3 32bit.
View 6 Replies
View Related
Feb 10, 2011
Is there any commands I can type in gnu grub to wipe or format my harddrive
View 3 Replies
View Related
Feb 8, 2011
How to run the yum command in non-cache mode. I browsed but didn't get the correct answer.
View 3 Replies
View Related
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
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Feb 17, 2010
how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 1 Replies
View Related
Jan 24, 2011
I'm using the linux 'script' command [URL]... to track some interactive sessions. The output files from that contain unprintable characters, including my backspace keystrokes.
Is there a way to tidy these output files up so they only contain what was displayed on screen?
Or is there another way to record an interactive shell session (input and output)?
View 4 Replies
View Related
Sep 30, 2010
I have a questions concerning tape drives.
Is it necessary to erase tape before recording ?
Do You know linux command to clean tape drive ?
View 1 Replies
View Related
Jun 18, 2010
Code: cmd='date | wc'
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
View 4 Replies
View Related
Apr 30, 2011
I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
Can someone point me in the right direction
View 1 Replies
View Related
Oct 25, 2010
I tried
Code:
chown -R owner:group *
which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?
View 9 Replies
View Related
Feb 16, 2010
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 4 Replies
View Related