命令
功能
ls
列出目录的内容
pwd
显示当前工作目录的路径
cd
更改工作目录
mkdir
创建新目录
rm
删除
cp
复制
mv
移动
touch
新建文件
file
文件类型
zip and unzip
压缩
tar
压缩
nano, vi, and jed
文本编辑
cat
输出
grep
搜索
sed
搜索
head
展示前10行
tail
打印尾部
awk
寻找
sort
排序
cut
剪切
diff
比较
tee
Prints command outputs in Terminal and a file
locate
寻找文件
find
寻找文件位置
sudo
授权
su
超级管理员
chmod
切换权限
chown
切换拥有者
useradd and userdel
创建
df
展示
du
Checks a file or directory’s storage consumption
top
Displays running processes and the system’s resource usage
htop
Works like top but with an interactive user interface
ps
创建进程
uname
Prints information about your machine’s kernel, name, and hardware
hostname
展示主机名
time
计算时间
systemctl
管理系统
watch
运行另外命令
jobs
Displays a shell’s running processes with their statuses
kill
杀进程
shutdown
关机
ping
网络检查
wget
下载文件
curl
数请求据
scp
Securely copies files or directories to another system
rsync
Synchronizes content between directories or machines
lfconfig
展示ip
netstat
展示网络
traceroute
Tracks a packet’s hops to its destination
nslookup
Queries a domain’s IP address and vice versa
dig
Displays DNS information, including record types
history
Lists previously run commands
man
Shows a command’s manual
echo
回显
ln
连接
alias and unalias
Sets and removes an alias for a file or command
cal
Displays a calendar in Terminal
apt-get
下载库