随笔分类 -  Linux

摘要:原因 是因为屏幕缩放和QT共同作用的问题。 解决方案 我写在了Github某个issue上 https://github.com/flameshot-org/flameshot/issues/564#issuecomment-1054125459 另外,在使用flameshot之前,使用deepin 阅读全文
posted @ 2022-03-07 23:28 Rocin 阅读(607) 评论(0) 推荐(0)
摘要:解决方案 参考 1. https://bbs.deepin.org/forum.php?mod=viewthread&tid=176979&extra= 2. https://bbs.deepin.org/forum.php?mod=viewthread&tid=159729&extra=&page 阅读全文
posted @ 2020-02-13 18:26 Rocin 阅读(959) 评论(0) 推荐(0)
摘要:docker镜像存储位置 例如我的driver是overlay2,则docker镜像的实际存储在/var/lib/docker/overlay2文件夹里面。 ls和du的不同 显示文件的大小或文件夹的 的大小。所以在 时,元数据存储在一个block里面,一个block的大小(4.0K),而不显示里面 阅读全文
posted @ 2019-10-09 23:42 Rocin 阅读(4607) 评论(0) 推荐(0)
摘要:安装步骤 切换至root 安装依赖库 下载源码包并且解压 编译安装 可能出现的问题 问题1 nginx找不到命令 1.1 如果用的是bash: 1.2 如果用的是zsh 问题2 加上sudo后,nginx找不到命令 2.1 解决办法1 2.2 解决办法2 查看nginx进程 阅读全文
posted @ 2019-09-26 18:55 Rocin 阅读(433) 评论(0) 推荐(0)
摘要:重现 用htop的Tree view(按F5)之后查看线程 参考 https://segmentfault.com/q/1010000003586656 mousycoder的回答 https://unix.stackexchange.com/a/166403 stantona的回答 http:// 阅读全文
posted @ 2019-07-25 12:24 Rocin 阅读(781) 评论(0) 推荐(0)
摘要:tldr conda dstat htop oh-my-zsh https://github.com/nicolargo/glances neofetch https://dev.yorhel.nl/ncdu - 找出最大占用磁盘空间的文件、文件夹 阅读全文
posted @ 2018-12-20 10:52 Rocin 阅读(591) 评论(0) 推荐(0)
摘要:后台运行(终端能操纵) 只需要在后面加& 查看正在运行的jobs 放到前台运行(终端不能操作) fg % 一个终端一个context。一个终端就是一个父进程,里面的jobs是子进程。所以当一个终端运行jobs时,在另外一个终端输入jobs显示无。 阅读全文
posted @ 2018-07-25 10:09 Rocin 阅读(640) 评论(0) 推荐(0)
摘要:``` mv /tmp/ ``` ``` cp /opt/file.bak rm ``` 阅读全文
posted @ 2018-07-23 10:14 Rocin 阅读(261) 评论(0) 推荐(0)
摘要:tree help 阅读全文
posted @ 2018-05-22 10:53 Rocin 阅读(211) 评论(0) 推荐(0)
摘要:1. 主题Harmattan,https://www.jianshu.com/p/5c8d4a1f4c91,这个主题在deepin linux下有黑框背景,因为是伪透明,所以选择黑色背景的主题即可 阅读全文
posted @ 2018-05-06 17:32 Rocin 阅读(302) 评论(0) 推荐(0)
摘要:1. 显示port 22 refused, 输入 apt get install openssh server就可以解决 2. 关闭ssh服务 service ssh stop 3. 可以用 service status all查看 阅读全文
posted @ 2018-04-22 00:22 Rocin 阅读(159) 评论(0) 推荐(0)
摘要:1. recovery mode E 2. ro rw 3. plus init=/bin/bash 4. passwd root 阅读全文
posted @ 2018-04-22 00:21 Rocin 阅读(423) 评论(0) 推荐(0)
摘要:![](https://images2018.cnblogs.com/blog/1310818/201804/1310818-20180422001535649-661899025.jpg) 阅读全文
posted @ 2018-04-22 00:16 Rocin 阅读(168) 评论(0) 推荐(0)
摘要:1. lsof i : 2. nmap 127.0.0.1 3. sudo netstat tunlp (不加sudo看不见PID) 4. gufw 参考 https://askubuntu.com/questions/9368/how can i see what ports are open o 阅读全文
posted @ 2018-04-22 00:13 Rocin 阅读(567) 评论(0) 推荐(0)
摘要:1. ps p $$ 一个名为 "$$" (这是shell的特殊参数),表示当前你正在运行的 shell 实例的 PID 2. echo $0 3. echo $SHELL 永远points to 默认的shell 4. 找出当前 Shell 的版本 1. bash version 2. zsh v 阅读全文
posted @ 2018-04-21 23:50 Rocin 阅读(339) 评论(0) 推荐(0)
摘要:1. ls lsh 2. du sh du == disk usage (磁盘使用量,占用的磁盘空间) 一个文件占用的磁盘空间和一个文件的大小是两码事情。占用空间取决于文件系统的块(block)的大小,linux一般默认是4k(4096) ,因此,一个大小为1个字节的文件,最小也要占用4k,如果你创 阅读全文
posted @ 2018-04-21 23:46 Rocin 阅读(469) 评论(0) 推荐(0)
摘要:1. Shebang这个符号通常在Unix系统的脚本中第一行开头中写到,它指明了执行这个脚本文件的解释程序。 阅读全文
posted @ 2018-04-21 23:43 Rocin 阅读(187) 评论(0) 推荐(0)
摘要:1. lscpu ,cat /proc/cpuinfo 用于查询CPU信息 2. cat /proc/meminfo, free m 内存信息 3. lsblk 硬盘与分区分布 4. lshw 显示硬件信息表 这个命令应用普遍,它可通过个人需求而列出多种不同的硬件参数:CPU、内存、硬盘、USB控制 阅读全文
posted @ 2018-04-21 23:38 Rocin 阅读(242) 评论(0) 推荐(0)
摘要:1. ps aux 查看特定的进程 例如ps aux | grep apt 阅读全文
posted @ 2018-04-21 23:33 Rocin 阅读(143) 评论(0) 推荐(0)
摘要:1. gdebi -- 可以代替Ubuntu software安装软件 2. System monitor -- 监控流量 3. uget -- 下载软件 4. Okular -- pdf reader 5. Typora -- markdown editor 6. Anaconda 7. Pych 阅读全文
posted @ 2018-04-21 23:28 Rocin 阅读(1409) 评论(0) 推荐(0)