Linux Foundation (i)--Server foundation and Simple command set

Source: Internet
Author: User

Linux Overview
Linux是一种操作系统,Unix之父,肯.汤普森,丹尼斯.李奇(C语言之父)Linux之父,林纳斯.托瓦兹自由软件之父,理查德.斯托曼  GNU项目
Common server Systems
Common Linux file systems
    XFS       常用    EXT4      SWAP     虚拟内存文件
Linux Simple command set
yum  -y  install  bash-completion     安装一个辅助包yum  -y  install   软件名  .. ..       加载、安装一个软件             remove      移除systemctl   restart   服务名 .. ..         启动一个服务start|stop   
Linux Network configuration Instruction set
‘Ifconfig ‘                                 查看已连接的网卡设备route –n                  查看路由表cat  /etc/resolv.conf    查看DNS服务器地址nmcli  con  show      查看网络配置(连接名)Cat  /etc/sysconfig/network-scripts/ifcfg-eno16777736 查看网卡配置文件夹Nmcli device status                     查看所有网卡设备Nmcli connect delete eno16777736    删除某一个网卡Nmcli connect add con-name network ifname eno16777736type Ethernet 重新为网卡eno16777736 添加一个名为network 的配置nmcli con mod “连接名” ipv4.method manual ipv4.address“ip地址/掩码位数”手工配置子网掩码Nmcli con mod “连接名”connection.autoconnect yes配置允许自动连接Nmcli con mod “连接名”ipv4.gateway 网关地址Nmcli con mod “连接名”ipv4.dns dns地址Nmcli con down/up “连接名” 停用/激活指定连接
Linux Change Password
1.  Echo “123” |passwd – stdin root2.  
Relative path and absolute path
‘相对路径‘:不受当前位置影响,以”/” 开始,特点是搜索准确‘绝对路径‘:通配符:‘* ‘     可以匹配任何文件‘?‘   只能匹配一个字符
The display, creation, copying, deletion, and movement of Linux files and folders
‘显示:‘Ls :   显示根目录下面的所有文件/文件夹Ls  -A: 显示所有文件/文件夹(包括.开头的隐藏文档)Ls  -l: 以长格式显示详细列出 文件权限、大小、等Ls  -lh: 提供易读的容量单位‘创建‘:Mkdir : mkdir 文件 /  文件夹//Mkdir –p /vod/movie  表示连父系目录一起创建‘复制:‘CP-copy:cp 被复制的文件 目标地址Cp –r :     递归复制,若复制文件内包括文件夹 则必须有次选项Cp –p :     复制时保持原有的权限,修改时间等不变Cp –rp:      一般情况下我们做文件复制时结合使用‘删除:‘Rm-remove:  rm 文件或者文件夹Rm –r  :     递归删除,删除文件夹及下面的文件Rm –fr / :     删除根目录文件( 谨慎操作)‘移动/改名‘Mv :            mv被移动的文档A  目标文档BMv 被移动的文件  目标文件夹

Linux Foundation (i)--Server foundation and Simple command set

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.