LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-12-2004, 01:52 PM   #1
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Rep: Reputation: 15
how do I delete a program?


OK, so I installed Mandrake Linux on my Win 2k machine today. This is the first time I have ever used Linux before and so far, its not bad. I will have to get used to it! Anyways, I was on the Linksys website and tried to use their Java Chat tech support and it said I didn't have Java, so I go to sun's website and download Java for Linux (not RPM linux) and follow their instructions on how to install it through the terminal. Well, I got it installed ok, but noticed that the path it installed to is my desktop. So now, I have a protected folder on my desktop. I then found out that Java is included in Konqueror, so I didn't need the newly installed program - just Linksys's website didn't pick it up for some reason. So, how can I uninstall this program and get the folder off my desktop?
 
Old 07-12-2004, 02:31 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Since you installed the BIN file,
become root and delete the directory. That's it.
 
Old 07-12-2004, 02:34 PM   #3
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
can you give me more of a step-by-step?

I am guessing:
open Terminal
type su
enter password
go to desktop directory

then what?
 
Old 07-12-2004, 05:17 PM   #4
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Rep: Reputation: 15
type 'su'
enter root password hit enter

deleted icon from desktop by changing into desktop folder and deleting it

'cd /home/username/desktop'
'ls'
'rm nameoffile'

if you mean menu go to /opt/kde/share/ and find any folders and del the icons

*note* all this can be done graphically and some without root access. You can always enter root in kde also...

just right click kde start and edit menu, etc
 
Old 07-12-2004, 07:18 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Follow the step provided by name_in_use450.
However, if you want to delete a directory and all of its contents (files and sub-directories), type:
Code:
rm -rf directory_name
 
Old 07-12-2004, 07:45 PM   #6
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
thanks. yes it is an entire folder that I need to delete. So it looks like that terminal works similarly to DOS. Is there a cheat sheet somewhere that gives a quick and dirty list of popular commands?
 
Old 07-12-2004, 08:30 PM   #7
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
here is a site i use. http://www.ss64.com/bash/

you can also look at the man pages by typing man <command> in the terminal. for example the man page for the rm command is displayed when you type man rm. you can do this for any command you need help with.
 
Old 07-13-2004, 08:55 AM   #8
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
OK, I tried it this morning and nothing happened. Here is what I typed:


[name@localhost name]$ su
Password:
[root@localhost name]# cd /home/name/desktop
bash: cd: /home/name/desktop: No such file or directory
[root@localhost name]# cd
[root@localhost root]# cd /home/name/Desktop
[root@localhost Desktop]# ls
Home.desktop j2re1.4.2_04/ Trash/ Welcome.desktop
[root@localhost Desktop]# rm -rf j2rel.4.2_04
[root@localhost Desktop]#

I went to the desktop and the folder is still there with it's contents and subfolders
 
Old 07-13-2004, 05:06 PM   #9
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
by the way, if it helps, the folder has a padlock on the icon that I see on the desktop. so I guess the real problem is how do I unprotect this folder and it's contents?
 
Old 07-13-2004, 05:53 PM   #10
krock923
Member
 
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
Don't know if this'll help, but for me at least i have to do this to get to the desktop folder:

cd /home/name/.gnome-desktop

where name is your username
 
Old 07-13-2004, 06:54 PM   #11
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
well, what I did gets me to my desktop because when I type ls, it shows the folder that I want to delete.
 
Old 07-13-2004, 11:46 PM   #12
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
You should try this to find out what your permissions on the file are:
ls j2rel.4.2_04 -l
 
Old 07-15-2004, 12:48 PM   #13
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
[root@localhost home]# ls j2re1.4.2_04 -l
ls: j2re1.4.2_04: No such file or directory
[root@localhost home]# ls /j2re1.4.2_04 -l
ls: /j2re1.4.2_04: No such file or directory
[root@localhost home]# cd /home/name/Desktop/j2re1.4.2_04
[root@localhost j2re1.4.2_04]# ls
bin/ COPYRIGHT LICENSE README
CHANGES javaws/ man/ THIRDPARTYLICENSEREADME.txt
ControlPanel.html lib/ plugin/ Welcome.html
[root@localhost j2re1.4.2_04]# ls CHANGES -l
-r--r--r-- 1 root root 1098 Feb 24 10:46 CHANGES
[root@localhost j2re1.4.2_04]#

OK, so I had a little problems getting the permissions settings on the folder, but one of the files inside the folder that I can't delete has the above permissions.
 
Old 07-15-2004, 04:17 PM   #14
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
You only have read rights on the file.

In a terminal type:
su
password:
chmode 777 CHANGES

rm -rf j2re1.4.2_04]

Here is good site for beginner's :
http://www.unixguide.net/linux/linuxshortcuts.shtml
 
Old 07-15-2004, 05:44 PM   #15
m_a_b
Member
 
Registered: Aug 2003
Distribution: Ubuntu 6.10 Edgy
Posts: 90

Original Poster
Rep: Reputation: 15
FINALLY!

hehe, I new it was a permissions problem, but I couldn't figure out how to fix it. I found the permissions tab in the properties by right clicking the folder, but I couldn't change anything from there. Apparently I am not given the administrator privilages when I log on at startup. If there any way to fix it so I don't have to chmod stuff every time I want to delete it?
 
  


Reply



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
How to delete files that won't delete? di11rod Linux - Security 7 10-19-2005 09:14 PM
Total recovery: Which program? ghost4linux, YaST2? Best drive imaging program? lagu2653 Linux - Software 1 06-20-2005 01:44 PM
C program problem on delete duplicated nodes in linked list ! antony_csf Programming 2 10-28-2004 10:42 AM
The program Screen, "delete" key doesn't work TroelsSmit Linux - Newbie 0 10-13-2004 07:55 AM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM

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

All times are GMT -5. The time now is 08:03 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