zoukankan      html  css  js  c++  java
  • 乱七八糟想到什么记什么4

    多用户操作系统

    • tty
      产看当前终端
    • who
      查看当前主机上有哪些人在哪些终端上登录
    • free -h
      查看内存
    • init
      可以用来切换模式 其中三种模式 5代表模型 3代表字符 n代表没有模式
      init 3
      init 5
    • nano
      字符界面的工具 文本工具

    配置文件夹etc

    Linux一切皆文件,配置文件放在etc目录下面,etc配置文件相当于Windows的注册表。-

    • /etc/motd 欢迎词
      登陆后的消息提示
    • /etc/issue
      登陆前的消息提示
    • 脱字符 ^ 代表Ctrl键的意思
    • hostname -I
      查看当前主机ip

    shell

    工作在人机之间

    主流的是bash shell

    • sh:Steve Bourne
    • bash:Bourne-Again Shell,GPL,CentOS 和 Ubuntu 默认使用
    • csh:c shell , C 语言风格
    • tcsh
    • ksh :Korn Shell, AIX 默认 shell
    • zsh: MacOS默认shell

    查看当前的shell

    u20@u20:~$ echo $SHELL
    /bin/bash
    

    查看系统支持的shell

    u20@u20:~$ cat /etc/shells
    # /etc/shells: valid login shells
    /bin/sh
    /bin/bash
    /usr/bin/bash
    /bin/rbash
    /usr/bin/rbash
    /bin/dash
    /usr/bin/dash
    /usr/bin/tmux
    /usr/bin/screen
    

    查看后台运行的bash

    ps 相当于Windows中的任务管理器

    u20@u20:~$ ps aux | grep bash
    u20         3343  0.0  0.2   8268  5300 tty1     S+   04:34   0:00 -bash
    u20         5509  0.0  0.2   8276  5260 pts/0    Ss   05:59   0:00 -bash
    u20         6729  0.0  0.0   6300   736 pts/0    S+   06:46   0:00 grep --color=auto bash
    
    * * * 胖并快乐着的死肥宅 * * *
  • 相关阅读:
    Zigbee安全基础篇Part.3
    Zigbee安全基础篇Part.2
    Zigbee安全基础篇Part.1
    mini2440 Nor Flash工作原理分析
    fuck the browser mode
    valgrind使用
    windows下自己常用的几个bat
    二叉树可视化
    npm的使用
    tp5的phpword使用
  • 原文地址:https://www.cnblogs.com/bpzblog/p/12813508.html
Copyright © 2011-2022 走看看