LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2007, 11:43 AM   #1
vonedaddy
Member
 
Registered: Aug 2004
Location: Philadelphia,PA
Posts: 185

Rep: Reputation: 17
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
 
Old 12-12-2007, 11:53 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by vonedaddy View Post
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".
 
Old 12-12-2007, 12:00 PM   #3
vonedaddy
Member
 
Registered: Aug 2004
Location: Philadelphia,PA
Posts: 185

Original Poster
Rep: Reputation: 17
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
very simple questions Paxmaster Debian 7 01-01-2005 08:46 PM
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 01:40 PM
Some somewhat simple questions Radical Edward Linux - Newbie 6 12-01-2004 08:20 PM
Two simple questions Bigun Linux - General 12 09-13-2002 07:44 AM
Three simple questions ErikD Linux - Software 2 10-15-2001 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration