Create New Document

The title of your document (will be displayed as H1)
URL-friendly name (no spaces, use dashes)
Path where to create document (optional, use forward slashes to create subdirectories)

Move/Rename Document

Current location of the document
New path for the document (including the slug)
This only changes the document's path. It does not modify the document's title (H1 heading).

Delete Document

Are you sure you want to delete this document? This action cannot be undone.

Warning: If this is a folder, all contents including subfolders and documents will be deleted.

Message

Message content goes here.

Confirm Action

Are you sure?

Attachments

Allowed file types: jpg, jpeg, png, gif, svg, webp, txt, log, csv, sfd, zip, pdf, docx, xlsx, pptx, mp4 (Max: 10MB)

Document Files

Loading attached files...

Document History

Previous Versions

Loading versions...

Preview

Select a version to preview

Wiki Settings

Language for the user interface
Number of versions to keep per document. Set to 0 to disable versioning.
Maximum allowed file size for uploads in MB.

User Management

Add New User

Leave empty to keep current password
Users with these groups can access restricted sections.

Define path-based access rules for sections of your wiki, then assign users to groups in the Users tab. Rules are evaluated in order. First match wins.

Active Rules

Import markdown files from a ZIP archive. Files will be processed and stored in the appropriate document structure. Directory structure in the ZIP (category/subcategory) will be preserved in the wiki.

Upload a ZIP file containing markdown (.md) files to import.

Create and manage backups of your wiki data. Backups include all documents, images, and configuration files.

Available Backups

Loading backups...

Add/Edit Access Rule

Selected: /

Add Column

Banner

which

which 命令简单指南

which 命令用于查找命令的位置(在 PATH 环境变量中搜索)。


基本用法

which 命令名

常用案例

1. 查看命令安装位置

which ls
# 输出:/usr/bin/ls

which python
# 输出:/usr/bin/python3

which grep
# 输出:/bin/grep

2. 检查命令是否存在

which nginx
# 如果安装了,显示路径:/usr/sbin/nginx
# 如果没安装,无输出

# 配合 echo 判断
which nginx && echo "已安装" || echo "未安装"

3. 查看多个命令

which ls cat grep
# 输出:
# /usr/bin/ls
# /bin/cat
# /bin/grep

4. 查看所有位置(-a 选项)

which -a python
# 显示所有找到的 python:
# /usr/bin/python3
# /usr/local/bin/python3

常用场景

场景1:确认是否安装了某个软件

which git        # 检查 git 是否安装
which docker     # 检查 docker 是否安装

场景2:查看实际使用的是哪个版本

which python3    # 查看当前使用的 python3 位置
which node       # 查看 node 位置

场景3:在脚本中使用

#!/bin/
# 检查 python 是否存在
if which python > /dev/null; then
    echo "Python 已安装"
else
    echo "Python 未安装"
fi

对比说明

命令 用途
which python 查看 python 在哪
whereis python 查看 python 及其源码、手册位置
type python 查看 python 是命令还是别名/内置

快速示例

# 基础查找
which ls          # /usr/bin/ls

# 查找所有版本
which -a python   # 显示所有 python 路径

# 检查命令是否存在并获取路径
PATH=$(which node)
echo $PATH        # /usr/bin/node

简单总结

Attached Files

Loading attached files...
Search Results