Difference between revisions of "Terminal"

From Linux Gaming
Jump to navigation Jump to search
(Created page with "The terminal is the black thing with text you probably have already seen in some hacker movies. It might look scary, but it basically works like a voice assistant with text input. If you see instructions in the form of `sudo pacman -Q | grep -i -C 10 "apt"`, then this is something you have to copy and paste into the terminal.")
 
Line 1: Line 1:
The terminal is the black thing with text you probably have already seen in some hacker movies. It might look scary, but it basically works like a voice assistant with text input.
The terminal is the black thing with text you probably have already seen in some hacker movies. It might look scary, but it basically works like a voice assistant with text input.


If you see instructions in the form of `sudo pacman -Q | grep -i -C 10 "apt"`, then this is something you have to copy and paste into the terminal.
If you see instructions in the form of <code>sudo pacman -Q | grep -i -C 10 "apt"</code>, then this is something you have to copy and paste into the terminal.
 
=== How does the terminal work? ===
You write a line of text, you press enter, and you look at what happens. The terminal usually tells you if something goes wrong. Sometimes you need to press additional buttons like <code>y</code> for "yes" or <code>n</code> for "no".
 
=== Is the terminal dangerous? ===
It might look scary, but it's not dangerous. If you write something wrong, it will just tell you that it's wrong - your computer will not explode.
 
However, you should not copy/paste stuff from untrusted sources (like this wiki - everyone can edit it) that you don't understand. The commands might be malicious. For example, if you would type the following you would delete everything on your computer, and potentially destroy your motherboard.
 
'''<big>DO NOT DO THIS!</big>''' <code>sudo rm -rf / --no-preserve-root</code>'''<big>DO NOT DO THIS!</big>'''
 
Other commands may uninstall your graphical user interface, or install a remote access for hackers.
 
However, it's not easy to input these commands by accident. You might type <code>sudo rm -rf /</code> by accident, but you won't type the <code>--no-preserve-root</code> if you don't actually want to harm your computer. You should be careful when running <code>sudo</code> though. This is the equivalent to "Administrator access", but much more powerful. You should always avoid running a ''root-shell'' (a shell where you have sudo access without typing sudo). You would detect it by the # symbol at the beginning of each line.

Revision as of 10:07, 15 February 2022

The terminal is the black thing with text you probably have already seen in some hacker movies. It might look scary, but it basically works like a voice assistant with text input.

If you see instructions in the form of sudo pacman -Q | grep -i -C 10 "apt", then this is something you have to copy and paste into the terminal.

How does the terminal work?

You write a line of text, you press enter, and you look at what happens. The terminal usually tells you if something goes wrong. Sometimes you need to press additional buttons like y for "yes" or n for "no".

Is the terminal dangerous?

It might look scary, but it's not dangerous. If you write something wrong, it will just tell you that it's wrong - your computer will not explode.

However, you should not copy/paste stuff from untrusted sources (like this wiki - everyone can edit it) that you don't understand. The commands might be malicious. For example, if you would type the following you would delete everything on your computer, and potentially destroy your motherboard.

DO NOT DO THIS! sudo rm -rf / --no-preserve-rootDO NOT DO THIS!

Other commands may uninstall your graphical user interface, or install a remote access for hackers.

However, it's not easy to input these commands by accident. You might type sudo rm -rf / by accident, but you won't type the --no-preserve-root if you don't actually want to harm your computer. You should be careful when running sudo though. This is the equivalent to "Administrator access", but much more powerful. You should always avoid running a root-shell (a shell where you have sudo access without typing sudo). You would detect it by the # symbol at the beginning of each line.