2022-10-11 14:41阅读: 21评论: 0推荐: 0

Linux常用命令

文件/目录操作

创建文件/目录

# 创建文件
touch <file>
# 创建文件夹
mkdir <catelog>

删除文件/目录

# 删除单个文件
rm -f <file>
# 删除整个目录
rm -rf <catelog>

修改文件/目录权限

# 修改文件权限
chmod 777 <file>
# 修改目录权限
chmod 777 -R <catelog>

其它操作

修改软链接

# 以修改python的软链接为例
ln -s /usr/bin/python3 /usr/bin/python

本文作者:swlong

本文链接:https://www.cnblogs.com/swlong/p/linux.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   swlong  阅读(21)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.