---
title: "Linux 基本操作记录"
canonical_url: "https://yangqiuyi.com/blog/linux/linux-ji-ben-cao-zuo-ji-lu"
---

> Index of every page on this site: [llms.txt](https://yangqiuyi.com/llms.txt)

## SSH

1. **连接**

```sh
ssh username@host
```

## 用户管理

1. **切换用户**

```sh
su <username>
```

1. **添加用户**

```sh
useradd <username> -m
```

`-m` 会在/home下创建一个与用户名相同的文件夹

1. **删除用户**

```sh
userdel [username]
```

## 进程管理

1. 列出进程

```sh
ps -ef
```

1. 终止进程

```sh
kill -9 [PID]
```

`-9`表示强制关闭进程

## 磁盘管理

[菜鸟教程-Linux文件系统](https://www.runoob.com/linux/linux-filesystem.html)

## Sitemap

See the full [sitemap](https://yangqiuyi.com/sitemap.md) for all pages.
