随笔分类 -  系统-linux

摘要:安装后重启 sudo apt-get install ubuntu-restricted-extras sudo apt install ffmpeg 阅读全文
posted @ 2022-03-25 10:06 该显示昵称已被使用了 阅读(987) 评论(0) 推荐(0)
摘要:get_pty参数 # pty(pseudo terminal device)由两部分构成,ptmx是master端,pts是slave端, get_pty这个参数,实际在远程执行sudo命令时,一般主机都会需要通过tty才能执行,通过把get_pty值设置为True,可以模拟tty, 但是随之而来 阅读全文
posted @ 2022-01-14 15:43 该显示昵称已被使用了 阅读(413) 评论(0) 推荐(0)
摘要:sudo apt-get install --reinstall ubuntu-desktop 阅读全文
posted @ 2021-12-25 19:23 该显示昵称已被使用了 阅读(37) 评论(0) 推荐(0)
摘要:编辑下列文件: sudo vim /etc/systemd/logind.conf 然后将其中的: #HandleLidSwitch=suspend 改成下面,去掉“#”号: HandleLidSwitch=ignore 最后重启服务: service systemd-logind restart 阅读全文
posted @ 2021-12-25 18:22 该显示昵称已被使用了 阅读(83) 评论(0) 推荐(0)
摘要:# 命令 cp -r --parents /mnt/aaa/bbb/ccc /tmp # 效果 tmp下面有mnt目录【mnt>aaa>bbb>ccc】 阅读全文
posted @ 2021-12-24 17:58 该显示昵称已被使用了 阅读(68) 评论(0) 推荐(0)
摘要:awk 方法 https://www.cnblogs.com/xudong-bupt/p/3721210.html $ ps -ef | awk 'NR==1{print $1,$2,$8} /java|mysql/{print $1, $2, $8}' UID PID CMD mysql 3494 阅读全文
posted @ 2021-07-07 16:28 该显示昵称已被使用了 阅读(439) 评论(0) 推荐(0)
摘要:sar -n DEV 1 100 1代表一秒统计并显示一次 100代表统计一百次 阅读全文
posted @ 2021-06-15 19:08 该显示昵称已被使用了 阅读(50) 评论(0) 推荐(0)
摘要:设置vnc 1. 使能 网上一堆瞎扯淡,直接如下: 设置-共享,打开vnc就ok了 2. 出现认证失败错误 gsettings set org.gnome.Vino require-encryption false 阅读全文
posted @ 2021-05-30 09:24 该显示昵称已被使用了 阅读(33) 评论(0) 推荐(0)
摘要:centos: http://mirrors.aliyun.com/centos/7/isos/x86_64/ ubuntu: mirrors.aliyun.com/ubuntu-releases/20.04.1/ 阅读全文
posted @ 2021-02-22 20:41 该显示昵称已被使用了 阅读(162) 评论(0) 推荐(0)
摘要:# 写 sync; dd if=/dev/zero of=/tmp/tempfile bs=1M count=1024; sync 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 2.55 阅读全文
posted @ 2020-11-16 16:51 该显示昵称已被使用了 阅读(333) 评论(0) 推荐(0)
摘要:常用 #看cpu cat /proc/cpuinfo #看时间 date +"%Y-%m-%d %H:%M:%S" # 参看文件的创建、修改等时间 stat filename.txt #看指定目录大小 du -sh du -h --max-depth=0 du -s * | sort -nr | h 阅读全文
posted @ 2020-10-27 09:11 该显示昵称已被使用了 阅读(357) 评论(0) 推荐(1)
摘要:https://www.cnblogs.com/zhuchenglin/p/8686924.html /bin 二进制可执行命令 /dev 设备特殊文件 /etc 系统管理和配置文件 /etc/rc.d 启动的配置文件和脚本 /home 用户主目录的基点,比如用户user的主目录就是/home/us 阅读全文
posted @ 2020-10-27 09:08 该显示昵称已被使用了 阅读(83) 评论(0) 推荐(0)
摘要:https://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/ -L(local) 在 SSH Client(C) 执行下列命令来建立 SSH 连接以及端口转发: $ ssh -g -L 7001:<B>:389 <D> 然后在我们的应用客户 阅读全文
posted @ 2020-10-24 08:42 该显示昵称已被使用了 阅读(209) 评论(0) 推荐(0)