美文网首页
Command Book

Command Book

作者: 大绵羊君 | 来源:发表于2020-03-07 18:43 被阅读0次

    Docker

    load docker image from tar

    sudo docker load < xxx.tar

    check docker image list

    sudo docker images -a

    check running docker prosess

    sudo docker ps -a

    enter docker env

    sudo docker run -it $IMAGE_ID /bin/bash

    exit docker env

    sudo docker stop $CONTAINER_ID

    Git

    update from remote

    git pull $URL $BRANCH_NAME
    or
    git remote add upstream $URL
    git pull upstream $BRANCH_NAME

    reset to specific version

    git reset --hard $COMMIT_ID

    delete remote branch

    git push origin --delete $BRANCH_NAME

    Others

    use objdump to check function sign

    objdump libxxx.so -T | grep keyword

    相关文章

      网友评论

          本文标题:Command Book

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