Linux的常用命令主要位于以下几个目录下:
/bin
ls
, cat
, mkdir
, rm
, cp
, mv
等。/sbin
fdisk
, ifconfig
, init
, reboot
, shutdown
等。/usr/bin
gcc
, make
, nano
, git
等。/usr/sbin
useradd
, groupadd
, sysctl
, nfs
等。/usr/local/bin
/usr/local/sbin
/usr/sbin
,但用于本地安装的系统级工具。/opt
如果你想知道某个特定命令的具体位置,可以使用 which
或 type
命令:
which ls
type git
假设你想知道 python
命令的位置:
which python
输出可能是 /usr/bin/python
。
PATH
)会影响命令的查找路径。通过了解这些目录及其内容,你可以更有效地管理和使用Linux系统中的命令。
没有搜到相关的沙龙
领取专属 10元无门槛券
手把手带您无忧上云