XeNote/posts/Code/Linux/Linux Commands.md
2020-12-01 06:28:42 +03:00

50 lines
691 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Başlangıç Uygulamalarını Listele
```bash
systemctl -t service --state=active
```
## Tüm Uygulamaları Listele
```bash
systemctl -at service
```
## Uygulama Başlangıç Durumunu Aç/Kapa
```bash
sudo systemctl enable {service}
sudo systemctl enable confluence.service
sudo systemctl disable {service}
sudo systemctl disable nginx.service
```
### List All Ports with Apps
```bash
sudo netstat -peanut
```
```bash
sudo netstat -lp
```
```bash
netstat -tulpn | grep :6379
```
```bash
#Get the PID of the process
ps -u my_account -o pid,rss,command | grep redis
# then kill
sudo kill -9 the_pid
```
## Stop Redis
```bash
/etc/init.d/redis-server stop
```
<br/>
#linux-code