Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I decided to give the Opera 7.50 beta a chance and compiled it via the konsole, as root. Well, can't say that I care for it and now want to remove it, but how? I would like to do it via konsole, though, I'm a bit lost as to how to go about doing it.
I tried just selecting the file folder, which is on my desktop, and deleting it, though I get the following message:
Access denied to /home/eek/Desktop/opera/LICENSE.
I found and read the article in Linuxquestions.org, under the search Permissions, but I'm still a bit lost on how to change the permissions so that I can just toss the thing is the trash bin.
Linux requires that you set up a minimum of two user accounts when you install: the root (superuser, read administrator) and normal user. The normal user can't do serious damage to the system (only his/her own filespace), unless you give the user permissions to access files he/she shouldn't have access to. The root user has access to everything, which is why you should not log in as root for everyday tasks. It you get access denied errors, it's because you need to have root access privileges to make some change. The command su ('SuperUser' or 'SwitchUser' depending on who you ask) will allow you to temporarily give yourself root privilege to execute a command. Use it this way: Open a terminal. Type in su and press <enter>. You will be prompted for the root password. Type in the root password, and you are root. If you do something to kill your system, too bad. You did it as root. When you are finished doing whatever, DON'T hang around as root. Type the word 'exit' and press <enter> to exit root privilege.
Just one more thing: How do I go about deleting the program and or files? I su to root and can find my way around, but how do I delete something? I took a look the the <help> in the konsole and was unable to find anything that jumped out at me. I think that I am still trying to work it like Microsoft.
Or, do I just need to change the permissions from root and then just drag the folder to the trash bin?
Replace /path/to/dir/to/delete with your path. IE. /home/user1/.gnome-desktop/opera.7.5.0.scr
This will remove the entire directory structure and everything underneath it. Also note that Linux is case sensitive. /home/user1 is not the same as /home/User1
Very important step, as BigRig points out, exit from root!
You might want to look here for some common commands and comparison to DOS commands. Once you find a command you want to use, type
Code:
man command
to see the man, or help, pages on that command. IE.
Code:
man rm
will show you more than you ever wanted to know about the rm command, including switches like -fr.
- means use the following arguments, f means force instead asking for confirmation on every file/dir, r means recursive, meaning delete this and everything underneath it. There is also more than one way to do it, as you will find. You can do this:
P.S. You can also chain commands using the pipe or | symbol. For instance if you wanted to find the word BOB in a file but only wanted lines that contained SMITH but not JOHN, you could do this:
Code:
cat file | grep BOB | grep SMITH | grep -v JOHN
for a good guide on bash (that is the console environment, like DOS), look here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.