Linux+Shell
Linux+Shell
知之为知
记录学习内容
展开
-
Shell编程
Shell编程脚本要求:1.以 #!/bin/bash开头2.脚本需要有执行权限例:输出hello worldvim hello.sh#!/bin/bashecho "hello world"脚本执行方式:1.赋予脚本执行权限再执行chmod u+x hello.sh./hello.sh2.sh 脚本(不用赋予执行权限)sh hello.shShell变量:系统变量、用户自定义变量系统变量:$HOME、$PWD、$SHELL、$USER等查看当前shell中所有变量:se原创 2021-10-31 18:14:22 · 73 阅读 · 0 评论 -
Linux基础知识
Linux基础Xftp、Xshell下载:https://www.netsarang.com/zh/free-for-home-school/关机:halt 立即关机showdown -h now (立即关机)showdown -h 1 (1分钟后关机)init 0重启:rebootinit 6Linux内置vi编辑器,vim为vi增强版vi、vim三种模式:(1).正常模式(2).插入模式 按i(3).命令行模式 : 或 /vi(view)、vim命令:拷贝粘贴:拷原创 2021-10-31 18:13:36 · 317 阅读 · 0 评论 -
centos下载
centos下载:下载地址:https://www.centos.org/download/不同的架构x86_64、aarch64、armhfp、i386、power9、ppc64、ppc64elx84_64代表64位:我们常说的主流的64位架构,代表厂家有Intel、AMDboot.iso与dvd.iso的区别:boot不能直接安装需要配置网络yum源,dvd可以直接安装下载dvd版本:http://mirrors.cqu.edu.cn/CentOS/8.4.2105/isos/x86_64/原创 2021-06-24 16:43:08 · 115 阅读 · 0 评论