101 lines
883 B
Markdown
101 lines
883 B
Markdown
A list of good to know commands in debian terminal
|
|
|
|
|
|
---
|
|
## File managment
|
|
|
|
Print content to the terminal from a file
|
|
``` Bash
|
|
cat "file"
|
|
```
|
|
|
|
Edit a file in the terminal
|
|
``` Bash
|
|
Nano "file"
|
|
```
|
|
|
|
Copy folder/file
|
|
``` Bash
|
|
cp "source" "destionation"
|
|
```
|
|
|
|
Move folder/file
|
|
``` Bash
|
|
mv "source" "destionation"
|
|
```
|
|
|
|
---
|
|
|
|
## Navigation
|
|
|
|
Navigiate into a subfolder
|
|
``` Bash
|
|
cd folder
|
|
```
|
|
|
|
Navigate to the previoes folder
|
|
``` Bash
|
|
cd ..
|
|
```
|
|
|
|
Navigate to the root folder of the system
|
|
``` Bash
|
|
cd /
|
|
```
|
|
|
|
Shows the current filepath you are in
|
|
``` Bash
|
|
pwd
|
|
```
|
|
|
|
---
|
|
## Networking
|
|
|
|
``` Bash
|
|
ipconfig
|
|
```
|
|
|
|
``` Bash
|
|
ip addr shpw
|
|
```
|
|
|
|
``` Bash
|
|
Ping "domain"
|
|
```
|
|
|
|
``` Bash
|
|
Hostname
|
|
```
|
|
|
|
|
|
|
|
---
|
|
## Package managment
|
|
|
|
``` Bash
|
|
sudo apt autoremove
|
|
```
|
|
|
|
``` Bash
|
|
sudo apt install "Package"
|
|
```
|
|
|
|
``` Bash
|
|
sudo apt remove "Package"
|
|
```
|
|
|
|
``` Bash
|
|
sudo apt update
|
|
```
|
|
|
|
``` Bash
|
|
sudo apt upgrade
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|