博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2023年4月30日

摘要: ## 阅读全文

posted @ 2023-04-30 00:20 乔55 阅读(3) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-30 00:20 乔55 阅读(1) 评论(0) 推荐(0) 编辑

2023年4月27日

摘要: 命令提示符 1. / 永久设置命令提示符 1. vim ~/.bashrc<--[PS1=""] 2. vim /etc/profile.d/myenv.sh 2. 最简单的提示符格式:PS1="[\t \u@\h \w \#]\\$" 1. \t表示时间 2. \u表示用户名 3. \h表示部分主 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(208) 评论(0) 推荐(0) 编辑

摘要: /etc/profile.d/myenv.sh 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(4) 评论(0) 推荐(0) 编辑

摘要: tuptime详解 1. uptime // 查看系统运行了多久 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(7) 评论(0) 推荐(0) 编辑

摘要: id详解 1. id kx 2. id -u kx 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(6) 评论(0) 推荐(0) 编辑

摘要: 命令的格式 1. cmd [选项] [参数] 1. // 短选项:unix风格,如-c,-l,-h 2. // 长选项:GNU风格,如--all 3. // BSD风格:一个字母,如a 2. 有命令选项的前后顺序有要求,有的没有要求 3. 可以用冒号将多条命令隔开,批量执行 shell命令详解 - 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(12) 评论(0) 推荐(0) 编辑

摘要: a alias b c cal cat d e echo f g h hostname hostnamectl set-hostname myname i id init j k l lsblk lscpu m man n o p ps q r runlevel s t tree type u un 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(5) 评论(0) 推荐(0) 编辑

摘要: 查看系统信息 1. lscpu // 查看CPU信息 2. cat /proc/cpuinfo // 查看cpu信息 3. cat /proc/partitions // 查看硬盘与分区信息 4. lsblk // 查看硬盘与分区信息 5. cat /etc/os-release // 查看操作系统 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(6) 评论(0) 推荐(0) 编辑

摘要: 查看系统信息的文件 1. /proc保存的是当前系统的状态信息的相关文件 2. /proc中的内容都是以内存的形式保存的,并不是磁盘文件中内容 3. cat /proc/cpuinfo // 查看cpu信息 4. cat /proc/meminfo // 查看内存信息 5. cat /etc/os- 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(16) 评论(0) 推荐(0) 编辑

摘要: cal 1. cal // 显示当月日历 2. cal -y // 显示当年信息 3. cal 5 2023 // 查看当前日历信息 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(33) 评论(0) 推荐(0) 编辑

摘要: which详解 1. which ls // 显示外部命令路径 whereis 1. whereis ls // 显示外部命令路径,显示帮助文档路径 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(8) 评论(0) 推荐(0) 编辑

摘要: alias详解 1. 别名的优先级高,次之是内部命令,次次之是外部命令 2. 别名存放位置: 1. ~/.bashrc // 仅对当前用户有效 2. /etc/bahsrc // 对所有用户生效,不建议 3. /etc/profile.d/myenv.sh // 对所有用户生效 3. type my 阅读全文

posted @ 2023-04-27 08:46 乔55 阅读(12) 评论(0) 推荐(0) 编辑

摘要: man可查看的条目 1:可执行程序或shell命令 2:系统调用(内核提供的函数) 3:库调用(程序库中的函数) 4:特殊文件(通常位于/dev) 5:文件格式和规范,如/etc/passwd 6:游戏 7:杂项(包括宏和规范) 8:系统管理命令(通常只针对root用户) 9:内核例程(非标准) 阅读全文

posted @ 2023-04-27 08:45 乔55 阅读(6) 评论(0) 推荐(0) 编辑

摘要: Linux文件的位置 errno /usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h 阅读全文

posted @ 2023-04-27 08:45 乔55 阅读(4) 评论(0) 推荐(0) 编辑

摘要: 运行级别 1. runlevel:// 查看当前系统的运行级别 2. init 3: // 切换到3级别 3. vim /etc/inittab<--[id:3:initdefault:]: // 修改默认启动。centos6 阅读全文

posted @ 2023-04-27 08:45 乔55 阅读(32) 评论(0) 推荐(0) 编辑

摘要: 开机提示语 1. vim /etc/motd<--[内容] // 开机提示语 阅读全文

posted @ 2023-04-27 08:45 乔55 阅读(8) 评论(0) 推荐(0) 编辑

摘要: 查看系统环境变量 1. echo ${SHELL} // 显示当前系统使用的shell 2. cat /etc/shells // 显示当前系统使用的所有shell 阅读全文

posted @ 2023-04-27 08:45 乔55 阅读(128) 评论(0) 推荐(0) 编辑

摘要: 设置主机名 1. // 主机名不要使用下划线,下划线是非法字符。可以使用短杠- 2. hostnmae myname // 临时设置。 3. vim /etc/hostname<--[myname] // 通过配置文件修改 4. hostnamectl set-hostname myname // 阅读全文

posted @ 2023-04-27 08:45 乔55 阅读(245) 评论(0) 推荐(0) 编辑

2023年4月22日

摘要: 第01章:Linux编程基础 vimrc:链接 shell命令行操作:链接 hitory历史命令:链接 安装较新vim:链接 安装plug-vim:链接 安装更新的cmake:链接 安装更新的gcc:链接 安装python3.8:链接 常用命令:链接 vim末行模式:链接 vim命令行模式:链接 v 阅读全文

posted @ 2023-04-22 09:58 乔55 阅读(5) 评论(0) 推荐(0) 编辑

摘要: # 第00章:安装系统与软件 # 第01章:Linux基础 ### 命令汇总:[链接](https://www.cnblogs.com/kxwslmsps/p/17357913.html) ### Linux系统的运行级别:[链接](https://www.cnblogs.com/kxwslmsps 阅读全文

posted @ 2023-04-22 09:57 乔55 阅读(7) 评论(0) 推荐(0) 编辑

摘要: 字符:链接 sizeof,strlen:链接 常量:链接 变量:链接 变量跨文件使用,链接 有关变量声明的关键字:链接 运算符概念:链接 运算符详解:链接 位运算符:链接 移位操作:链接 命名空间:链接 C++与C的区别:链接 指针:链接 引用:链接 临时对象:链接 内存布局:链接 小端对齐与大端对 阅读全文

posted @ 2023-04-22 09:53 乔55 阅读(7) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:45 乔55 阅读(2) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:45 乔55 阅读(4) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:45 乔55 阅读(2) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:45 乔55 阅读(4) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:45 乔55 阅读(4) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:44 乔55 阅读(2) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:44 乔55 阅读(6) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:44 乔55 阅读(2) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:44 乔55 阅读(4) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-22 09:43 乔55 阅读(4) 评论(0) 推荐(0) 编辑

2023年4月21日

摘要: vs安装小插件 安装utf8强制工具:扩展-管理扩展-搜索force:安装force utf-8 (with BOM) 调试快捷键 // F9:添加一个断点/删除一个断点 // ctrl+F5:开始执行,不调试 // F5:开始调试、每按一次跳过一个断点 // shift+F5:停止调试 // ct 阅读全文

posted @ 2023-04-21 09:25 乔55 阅读(35) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(1) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(1) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(1) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(1) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(1) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(1) 评论(0) 推荐(0) 编辑

摘要: ## 阅读全文

posted @ 2023-04-21 07:56 乔55 阅读(3) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页