• 遇到的命令


    汇编相关

    汇编代码汇编成目标文件

    nasm -g -f elf64 -o hello.o hello.s

    ld 连接

    ld -o hello hello.o

    反编译 可执行文件

    objdump -d -M intel 可执行文件

    参考

    npm

    npm 一次性加速

    npm install --save-dev electron --registry https://registry.npm.taobao.org

    curl

    查看本机的公网IP地址

    curl cip.cc 等URL。

    zip

    JAVA

    jar 打包

    java javac

    jps 查看java进程 在ElasticSearch中遇到过

    nohup

    后台运行
    nohup python3 app.py > out.file 2>&1 &

    tail

    查看正在改变的日志文件 tail -f name.log

    gcc

    以hello来命名可执行文件
    gcc -o hello hello.c
    指定标准
    gcc -std=c99 hello.c

    pip3

    为了下载速度更快,换到国内的源
    一次性:
    pip install pdfminer3k -i https://pypi.tuna.tsinghua.edu.cn/simple
    永久

    第三方库的导出和安装

    列出安装了的现有的包
    pip freeze > requirement.txt
    按照安装列表安装
    pip install -r requirement.txt

    git

    关闭swap分区

    swapoff -a 关闭所有交换设备

    xinput 关闭笔记本的触控板、小红点

    先看看触控板的id是多少:

    lxq@carbon:~$ xinput
    ⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
    ⎜   ↳ SynPS/2 Synaptics TouchPad              	id=13	[slave  pointer  (2)]
    ⎜   ↳ TPPS/2 Elan TrackPoint                  	id=14	[slave  pointer  (2)]
    ⎜   ↳ Logitech Wireless Keyboard PID:4023     	id=9	[slave  pointer  (2)]
    
    

    这里,触控板是13,小红点是14,禁用他们:
    xinput disable 13
    xinput disable 14

    tar

    对于 经过压缩的 *.tar.gz

    tar xzvf *.tar.gz

    各种格式的文件的解压和压缩

    对于 *.tar

    tar xvf *.tar

    压缩功能
    sudo apt-get install rar
    1
    解压功能
    sudo apt-get install unrar
    rar x test.rar

    lsblk 当插入外设没有自动识别的时候手动挂载

    2 > 1

    直接运行下载的脚本

    sudo bash -c "$(curl -fsSL https://*****.sh/)"

    ln

    创建链接
    ln -s /原来/的/绝对/路径 /新的/链接/的路径

    systemctl

    启动服务 systemctl enable servicename

    setcap

  • 相关阅读:
    Python模糊查询本地文件夹去除文件后缀(7行代码)
    Python正则表达式
    python的logging模块
    Python中hashlib模块
    Python的os模块
    项目初始化mysql建库和授权
    Add correct host key in /root/.ssh/known_hosts to get rid of this message
    高中典型的等比数学题
    autoenv的使用方法
    celery任务进程关闭
  • 原文地址:https://www.cnblogs.com/liuluopeng/p/12187153.html
Copyright © 2020-2023  润新知