当前位置:网站首页>chmod +x 的含义,为什么要chmod +x
chmod +x 的含义,为什么要chmod +x
2022-08-08 06:20:00 【开门大弟子】
1.chmod +x
1.linux系统下的文件颜色含义:
绿色文件: 可执行文件,可执行的程序
红色文件:压缩文件或者包文件
蓝色文件:目录
白色文件:一般性文件,如文本文件,配置文件,源码文件等
浅蓝色文件:链接文件,主要是使用ln命令建立的文件
红色闪烁:表示链接的文件有问题
黄色:表示设备文件
灰色:表示其他文件
chmod +x就是赋予用户文件的执行权限,之前我安装一个文件显示为没有操作权限,尝试过sudo,以及chmod 777均未解决。之后使用chmod +x解决。
2.chmod +x的使用
首先给执行权限:
chmod +x 文件名(包括扩展后缀)
之后执行程序:
./ 文件名(包括扩展后缀)
3.chmod +x以及chmod u+x
chmod u+x代表设置某个用户获得执行文件的权限。
u 代表用户.
g 代表用户组.
o 代表其他.
a 代表所有
边栏推荐
- Educational Codeforces Round 133 (Rated for Div. 2) C Supplement
- 并查集按秩合并rank数组
- 仿记事本;QFile
- The CAP theorem instance analysis
- navicat15 连接Oracle数据库 报错ORA-28547: connection to server failed, probable Oracle Net admin error的解决方案
- Rust development - Struct usage example
- What does the "busy" Polkadot latest effort mean for DOT investors?
- Introduction to uvm
- 整数分块例题
- 基于knn的手写数字识别
猜你喜欢
随机推荐
How many times the neural network is generally trained, the neural network training time is too long
Redis 的内存策略
手写哈希表
tkinter-TinUI-xml实战(7)PDF分页与合并
flex布局缺点
图解LeetCode——636. 函数的独占时间(难度:中等)
Cs software UI building methods
基于Mysql的智慧医疗管理系统
教你六步拆解 DDD领域驱动设计落地实践
Redis In Action —— Advanced —— 数据主从同步原理 —— 全量同步 与 增量同步 工作流程及原理 —— 以及如何利用 docker 容器技术快速模拟单机 Redis 集群
从ELF格式分析arm动态链接原理
信息传输率(Information Translate Rate,ITR)
神经网络一般训练多少次,神经网络训练时间过长
Docker安装nacos2.0并指定mysql,安装sentinel
四面拿下字节2-2Offer,入职就是...
LLVM系列第二十九章:写一个简单的常量加法“消除”工具(Pass)
Introduction to uvm
七千字带你了解封装等机制
Query and track multiple express tracking numbers, and filter the tracking numbers shipped at a certain time
Integer block sample









