3 Coming to the conclusion that you do not need the le any longer, you can
delete it by entering
rm tuxfile.txt
Bash deletes the le without any conrmation.
4
Move up one level with cd .. and check with
ls -l test
if the test directory is empty now.
5
If yes, you can remove the test directory by entering
rmdir test
17.4 Becoming Root
root, also called the superuser, has privileges which authorize him to access all parts
of the system and to execute administrative tasks. He or she has the unrestricted
capacity to make changes to the system and has unlimited access to all les.
Therefore performing some administrative tasks or running certain programs such
as YaST requires root permissions.
17.4.1 Using su
In order to temporarily become root in a shell, proceed as follows:
1
Enter su. You are prompted for the root password.
2
Enter the password. If you mistyped the root password, the shell displays a
message. In this case, you have to re-enter su before retyping the password.
If your password is correct, a hash symbol # appears at the end of the prompt,
signaling that you are acting as root now.
3 Execute your task. For example, transfer ownership of a le to a new user
which only root is allowed to do:
chown wilber kde_quick.xml
4
After having completed your tasks as root, switch back to your normal user
account. To do so, enter
exit
The hash symbol disappears and you are acting as “normal” user again.
Shell Basics 199