Short List Of Commonly Used Useful Commands

This is a guide with explanations for a lot of very useful commands that is commonly used in Linux.
everything in italic such as this, you are supposed to type inside your terminal and press enter.

Lesson 1 - Learn about sudo, su, regular users and administrator users.

The first thing you need to know is that there are two basic types of users. regular users and administrator users
regular users can read files, run programs and surf the internet. administrator have complete control over the computer.
in Linux you are logged in as a regular user by default so you cant break your system easily.
Regular users are not allowed to install any programs, mess around with drivers for the system and other such things.
Therefore if you want to install anything, linux will ask you for your password so it can give you temporary administrator rights, so you can install the programs you want
everytime linux asks for your password, some program is requesting administrator rights to access system files, or to install programs.
Inside the terminal, you have to type sudo before the commands you wish to run if you want to access restricted files, install programs or change system files.r pas

fdisk -l
sudo fdisk -l

the first command you wrote will fail, because the program fdisk is a program which only administrators have access to.
the second command you wrote will succeed, because you started the program with temporary administrator rights.

Lesson 2 - Learn simple navigation of the folders in linux and making/removing of folders

Lesson 3 - Learn about the folders in linux

Lesson 4 - Learn about files in linux

Lesson 5 - Learn about system files in linux

Lesson 6 - Learn about devices in linux

Lesson 7 - Learn about installation in linux

Lesson 8 - Learn about how to get help in linux

apt-get install
apt-cache search




Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License