The Linux terminal is somthing that many users think is scary… Well its not at all. Lets start by explaining a few basics.
sudo = Super User Do: This command gives you super user priviligaes
Apt = Advanced Packaging Tool
Lets get some commands going here to make you feel like a hacker 😉 to load the terminal press
CTRL+ALT+TIf terminal, does not load. You can find it in the menu.
sudo apt updateUpdates respitories
sudo apt upgradeupdgrades your system
sudo apt install nameapackageThis commands installs a package that is in your respositories. Here is a full example to install gimp
sudo apt install gimp
Now lets start on commands that control your computer
Example: cd Desktop
lsLists files and folders in the directory
rmRemoves a file. I will show you how to use this on further down when we piece it all together
cpCopies and Pastes a file to another location.
mvMoves a file from one location to another an example is further down
mkdirMakes a new folder
touchMakes a txt file
Now lets put this commands into practice, we are now going to tell terminal to go to desktop create two folders and a text file then we are going to copy and paste that text file into one of the folders then move it into another folder then delete the text document and folders. Copy these commands and what them work.
cp testdoc folder1/testdoc
mv folder1/testdoc folder2/testdoc
Now as you can see this has created folder1 and Folder2 and Created testdoc then copied and pasted test doc into folder1 then moved testdoc into folder2.
It has done this because the cp and mv command work the same lets show you an example
cp /directory/filename /different-directory/filename
You will see that the first bit /directory/filename this is were the file is currently located /different-directory/filename this is were you want the file to go to.
Lets get everything we added just removed
Thats the end of this demo I hope you learned some simple commands here and realised that the terminal is not so scary after all.