linux常用命令使用示例

linux常用命令

运行程序
./main
sh hello.sh
python hello.py

切换目录
cd /home 进入home目录

复制
cp hello.c //usr 复制当前目录的hello.c 到usr目录

剪切
mv hello.c //usr剪切当前目录的hello.c 到usr目录

查看
ls 列出当前目录所以文件

压缩解压
tar

tar

zip

unzip

USB相关
lsusb查看usb状态

网络
ifconfig查看网卡

猜你喜欢

转载自blog.csdn.net/u010835747/article/details/108543199
今日推荐