zoukankan      html  css  js  c++  java
  • Linux常见操作

    生成本地的SSH密钥对,简单处理的话,一路默认回车即可,生成之后的密钥对文件放在~/.ssh目录下。

    ssh-keygen -t rsa -C "your_email@example.com"

    从windows拷贝文件到Linux服务器

    scp -i C:Usersxxx.sshxxx.pem ZenTaoPMS.11.1.stable.zbox_64.tar.gz root@390.105.214.405:/home 

    软链接

    ln -s /opt/zbox/tmp/mysql/mysql.sock /var/run/mysqld/mysqld.sock
    //前面是源文件,后面是软链接出来的假文件

    滚动查看日志

    tail -f file_path

    方便compser直接下载dist,而不是install from the source.

    (sudo) apt install zip unzip php7.2-zip

    查看CPU内存等资源占用情况

    Top
    Top -ci //不看空闲的进程

    压缩当前目录下文件夹/文件test到test.tar.gz:

    tar -zcvf test.tar.gz test

    解压缩当前目录下的file.tar.gz到file:

    tar -zxvf file.tar.gz

    查看当前目录大小

    du -sh
  • 相关阅读:
    队列
    栈的链式存储
    单例和多例设计模式
    顺序栈的基本操作
    串的模式匹配
    线性表的链式存储结构
    倒置顺序表
    回文序列
    go语言系列-从运算符到函数
    go语言系列-从零到数据类型
  • 原文地址:https://www.cnblogs.com/zhaoxizhe/p/11827533.html
Copyright © 2011-2022 走看看