![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
hatcher_h
这个作者很懒,什么都没留下…
展开
-
shell脚本
shellshell脚本文件一般以.sh结尾在shell脚本中第一行通常为#!/bin/bash#脚本执行方式# 1、文件没有执行权限sh hello.shbash hello.sh#2、有执行权限./hello.sh#添加可执行权限chmod -R 777 hello.sh文件传参bash hello.sh hello在hello.sh脚本中$0 文件名$1 第一个参数变量#不能有空格变量=变量名a=10# 变量使用${a}变量的范围局部变量 只原创 2020-05-19 22:19:15 · 130 阅读 · 0 评论 -
Linux相关命令、虚拟机网络配置
虚拟机联网## Linux命令1、查找#查找django进程,不包括grep自建的ps -ef |grep django | grep -v grep# find 查找home目录下的name.txt文件find /home -name name.txt# locate 查找home下以sh开头的文件locate /home/sh# whereis 查找可执行文件相关文件whereis ls#which 查找可执行文件which ls2、用户和用户组#添加用户useradd原创 2020-05-18 17:45:42 · 1753 阅读 · 0 评论