zoukankan      html  css  js  c++  java
  • ② linux基础bash shell基础语法

    whoami
    [root@rstx-53 ~]# whoami
    root
    
    创建用户 useradd
    [root@rstx-53 ~]# useradd yangtao
    useradd yangtao
    [root@rstx-53 ~]# passwd yangtao
    passwd yangtao
    Changing password for user yangtao.
    New password:        #不显示密码
    BAD PASSWORD: The password is shorter than 8 characters
    Retype new password:  #确认输入密码
    passwd: all authentication tokens updated successfully.
    

    shell 基础语法

    命令 选项 参数
    command options vars

    [root@rstx-53 opt]# ls             #command
    aliyun.sh  containerd  harbor-v1.10.1  nginx-0.12  src  yilu
    [root@rstx-53 opt]# ls -a          # command + options   调节命令的执行功能
    .   aliyun.sh  certs       harbor          harbor-v2.1.0  nu      src  yilu
    [root@rstx-53 opt]# ls -a /home    # command + options + vars 
    .  ..  jenkins  yangtao
    #命令: 整条shell命令的主题
    #选项: 用于调整命令的执行功能
        -a  短格式参数
        --all 长格式参数
    #参数: 命令操作的具体执行对象
    #命令必须开头  参数和选项的位置可以发生变化
    
  • 相关阅读:
    第一个WCF的程序
    第一节 SOA的基本概念和设计思想
    数组拷贝 copyOf()
    dict和set
    类的构造函数
    深入理解 Python 异步编程(上)
    Nifi自定义processor
    java inputstream to string stack overflow
    java inputstream to string
    oracle 导入 dmp
  • 原文地址:https://www.cnblogs.com/yangtao416/p/14446140.html
Copyright © 2011-2022 走看看