ubuntu常用指令

Linux 查看CPU信息,机器型号,内存等信息:https://blog.csdn.net/seapeak007/article/details/80764906

 

终端SSH连接服务器:ssh ubuntu@192.168.2.193

退出SSH连接:exit  或者  Ctrl+D

上传/下载文件或文件夹(scp [src] [dst]

scp -r username@1.2.3.4:/home/username/text.txt

scp -r localfile.txt username@1.2.3.4:/home/username/

scp -r yinwenbin@10.100.1.239:/home/yinwenbin/workspace/MultiScaleRetinex/cuda/ /home/yinwenbin/workspace/videoAnalyze.subject.yinwenbin/4src/MultiScaleRetinex/
scp -r -P 5003 /home/yinwenbin/workspace/videoAnalyze.subject.yinwenbin/4src/MultiScaleRetinex/cuda/ root@10.100.1.239:/home/workspace/MultiScaleRetinex

ubuntu18.04指令:

sudo netplan apply:重启网络

 

文件对比工具

apt-get install meld

meld

 

找到含有特定字符串的文件,并删除

sudo find /home/ywb/.local/share/* -name "*pycharm*" |xargs rm -rf

 

查看CPU和内存使用情况:htop

 

find: `/run/user/1000/gvfs': 权限不够 的问题:https://blog.csdn.net/codemacket/article/details/77864770

umount /run/user/1000/gvfs

rm -rf /run/user/1000/gvfs

 

ubuntu上jpg文件转BMP文件:

sudo apt install libjpeg-turbo-progs

djpeg -bmp -outfile outputname.bmp inputname.jpg

 

查看软件可安装的版本:apt-cache madison <...>

 

为软件添加启动图标

sudo vi /usr/share/applications/postman.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;

posted @ 2019-07-16 23:17  walker_bin  阅读(312)  评论(0编辑  收藏  举报