随笔分类 - Linux
摘要:Linux新增分区操作 df命令查看 # 查看已挂载分区 及 文件系统类型 snowing@ubuntus:~$ df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda2 ext4 57359200 133970
阅读全文
摘要:### 1.0 refernce manual - [Chinese reference manual](https://yianwillis.github.io/vimcdoc/doc/help.html) ```bash https://yianwillis.github.io/vimcdoc/
阅读全文
摘要:# 2. Linux基础 ## 2.1. 查看系统版本信息 ### 2.1.1 查看操作系统内核 - centos ```bash [demo@centos ~]$ uname -r 3.10.0-693.el7.x86_64 ``` - ubuntu ```bash # ubuntu walker
阅读全文
摘要:1.软件管理 1.1 软件的编译和运行 C语言的运行和编译 源文件`--预处理--`预处理文件`--编译--`汇编文件`--汇编--`目标文件`--链接--`可执行文件 #分步骤编译运行 gcc -E hello.c -o hello.i gcc -S hello.i -o hello.s gcc
阅读全文
摘要:# 6.文本处理和正则表达式 ## 6.1 常见文本处理工具 ### 6.1.1 查看普通文本内容 - `cat` 命令格式 ```bash cat [OPTION]... [FILE]... # 支持标准输入 With no FILE, or when FILE is -, read standa
阅读全文
摘要:1. shell脚本的基本结构 1.1 shell脚本的格式 指明解释器类型 通常被称为shebang,常见的有sh、bash、zsh,如#!/bin/bash指明此脚本使用/bin/bash来解释执行 格式:#!加解释器的路径 #!/bin/bash #!/usr/bin/python #!/us
阅读全文
摘要:# 3.Linux文件系统和目录管理 ## 3.1. Linux目录结构与文件类型 ### 3.1.1 Linux目录结构 - 根目录结构 ```bash bin dev home lib64 media opt root sbin sys usr boot etc lib lost+found m
阅读全文
摘要:# 4. Linux用户组和权限管理 ## 4.1 Linux用户和组介绍 ### 4.1.1 用户和组的关系 - 查看用户所属组 ```bash $ id snowing # uid:用户 gid:用户主组 groups:用户主组及其附属组 uid=1000(snowing) gid=1000(s
阅读全文
摘要:# 一、虚拟机网络连接模式 1. 桥接模式(Bridged):虚拟机与物理主机处于同一个网段,占用实际物理IP,可联网 将物理主机的网卡与虚拟机的虚拟网卡利用虚拟网桥进行通信,相当于将物理主机虚拟为交换机,所有虚拟机和物理主机本身均连接到该交换机的某一接口,虚拟机IP地址与物理主机IP处于同一个网段
阅读全文