美文网首页
About shell

About shell

作者: vicktor_Liu | 来源:发表于2018-01-16 14:53 被阅读0次

稀里糊涂做了这么久的中转了。稀里糊涂地要写简书了。

shell

是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。

工具

ssh shell or shellcraft 还有别的。

两个工具都不错,综合上来shellcraft好很多,不过shellcraft不可以本页面搜索,但是ssh shell 检索日志的时候很容易崩溃。

连接服务器

shellcraft增加服务连接配置页面

Name:随便写,一般是写host,方便记忆

Protocol:有两种SSH 和 telnet

Host:xxx:xxx:xx:xx 22是指端口号

下面是连接服务器所用的密码方式 用户名 密码(密码在连接的时候还要输)

question1:有时候连不上,要看你是否在服务器的白名单里

question2:在名单里,配置也对,还是连不上,看服务器是不是出问题了



使用

连上服务器后,就是一些Linux命令的使用了

cd  mkdir mv rm sudo ****.sh stop start restart copy ....balabala

检索日志

一种tail 一种less

tail -f /logs/resin/logs/jvm-agentappnew-*.log | grep ‘关键字’

less /logs/resin/logs/jvm-agentappnew-808*.log.20171124.* | grep '160598832'

tail是跟踪最新的,可以理解成,我输入命令后,增加的 符合条件的最新的数据

less是检索日志里所有符合条件的数据

我们可以在有多项的时候 比如 jvm-agentappnew-01 -02 -03...用 * 代替,即01  02 03 都在搜索范围内 

grep后跟的是条件  我们可以在二者之间加限制条件,比如grep -A20 即符合条件的后边的20行,-B(之前)-C(前后)

相关文章

  • About shell

    稀里糊涂做了这么久的中转了。稀里糊涂地要写简书了。 shell 是用户使用 Linux 的桥梁。Shell 既是一...

  • Shell Note about bash

    Shell 变量 定义变量时,变量名不加美元符号($,PHP语言中变量需要),如: 注意,变量名和等号之间不能有空...

  • Config Software mirrors source f

    I just wrote a shell file to finish it. About 了解更多有趣的操作请关...

  • Xamarin.FormsShell基础教程(7)Shell项目

    Xamarin.FormsShell基础教程(7)Shell项目关于页面的介绍 轻拍标签栏中的About标签,进入...

  • 《富先森的PD分享志》闪念之初

    写在之前。。。 About it About me About U About US 初学正面教育(Pos...

  • Live out yourself

    About connecting the dots; About love and loss; About dea...

  • Dots and Lines

    *About Passion *About Product *About Team Design comes fi...

  • Shell 学习

    shell 变量 shell 参数传递 shell 数组 shell 运算符 shell echo 命令 prin...

  • Shell 概述

    学习 Shell 主要包括的内容: Shell 脚本入门 Shell 变量 Shell 内置命令 Shell 运算...

  • time talks

    its all about time its all about life its all about love

网友评论

      本文标题:About shell

      本文链接:https://www.haomeiwen.com/subject/dgpsoxtx.html