LinuxSysAdminsDoc/Linux/basic_cmd.md

73 lines
1.1 KiB
Markdown
Raw Normal View History

2021-04-06 16:21:38 +02:00
# Theory
## Absolute path
cd /etc
## relative path
../../../etc
2021-04-06 11:56:51 +02:00
# Basic Linux Command
2021-04-06 16:21:38 +02:00
list current directory
> $ ls -l -a -r -t -h --help
ls = program
-l -a = parameters
Man for manual
> $ man ls
print working directory
> $ pwd
change directory
> $ cd
back to precedent forlder
> $ cd -
Make directory
> $ mkdir test1 test2 test3
> $ mkdir -p lol/lol/lol
-p to create parent directory if needed
2021-04-06 15:49:44 +02:00
Searching the PATH for executable files matching the names of the arguments
> $ which ls
2021-04-06 11:56:51 +02:00
2021-04-06 15:49:44 +02:00
Interactive processes viewer
> $ htop
2021-04-06 11:56:51 +02:00
2021-04-06 15:49:44 +02:00
# APT
> $ apt install
> $ apt remove
> $ apt autoremove
> $ apt update
2021-04-06 11:56:51 +02:00
2021-04-06 15:49:44 +02:00
## Display & Destop Manager
* Architecture:
> BIOS -> GRUB -> Display Manager -> Desktop Environement
* Install Desktop Environement (GUI)
> $ tasksel
> $ apt install gnome
> $ apt remove gnome
* Reconfigurer le display manager
> $ sudo dpkg-reconfigure gdm3
* Installer le display manager
> $ sudo apt install lightdm
> $ sudo apt install gdm3
* remove Desktop environement
> $ sudo apt remove lightdm
# Services
- HTOP
- dhclient > get ip
- gnome networkmanager
- wpa_supplicant > encryption @ wifi