LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Two Simple questions (https://www.linuxquestions.org/questions/linux-newbie-8/two-simple-questions-606311/)

vonedaddy 12-12-2007 10:43 AM

Two Simple questions
 
OK here are 2 simple questions I would appreciate some help with.


1) I have a directory (lets say /var/tmp) with a bunch of old crap in it. It has both directories and files inside it and also files inside the directories.

rm -r *

Now I semi-understand the -r (recursive) but how do I get it to delete everything without asking me if I want to decend into directories and also to stop prompting me to ask if I want to delete regular file blah blah blah


2) How do I get the filemanager (default for gnome) to open everything in the same window? Like when I open my home folder, then click on Music it opens a whole new window and I will have 10 open windows when I finally get to the file I want.


Thanks in advance.

Steve

colucix 12-12-2007 10:53 AM

Quote:

Originally Posted by vonedaddy (Post 2988414)
Now I semi-understand the -r (recursive) but how do I get it to delete everything without asking me if I want to decend into directories and also to stop prompting me to ask if I want to delete regular file blah blah blah

You asked for a very dangerous command, anyway you can use the -f option to force deleting without prompting.
Quote:

2) How do I get the filemanager (default for gnome) to open everything in the same window? Like when I open my home folder, then click on Music it opens a whole new window and I will have 10 open windows when I finally get to the file I want.
In Nautilus (the GNOME default file manager) go to Edit --> Preferences --> Behavior and check "Always open in browser windows".

vonedaddy 12-12-2007 11:00 AM

Ahh thanks... so -rf nice... I understand it is dangerous, but also very handy.

I saw that but assumed that the browser window was different from the base window since it has a lot more options to it.

Either way thanks for the help!


All times are GMT -5. The time now is 04:55 PM.