随笔分类 -  linux shell

上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 77 下一页
摘要:cmd命令:wsl --shutdown 阅读全文
posted @ 2022-04-27 17:21 小鲨鱼2018 阅读(2985) 评论(0) 推荐(0)
摘要:1、putty登录出现如下报错: 2、解决方法, 修改配置文件, 重启ssh服务 root@DESKTOP-1N42TVH:/home# vim /etc/ssh/sshd_config 重启ssh服务: root@DESKTOP-1N42TVH:/home# service ssh restart 阅读全文
posted @ 2022-04-27 16:56 小鲨鱼2018 阅读(3599) 评论(0) 推荐(0)
摘要:1、问题putty无法连接ubuntu 2、检查网络连接(有ip,网络都不能正常连接) 3、查看防火墙,关闭防火墙 检查网络连接:(网络连接正常了) 4、测试putty,可以正常登录。 阅读全文
posted @ 2022-04-27 16:48 小鲨鱼2018 阅读(2227) 评论(0) 推荐(0)
摘要:1、问题, 在启动ssh服务是出现如下问题 2、解决方法 root@DESKTOP-1N42TVH:/home# ssh-keygen -A ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 3、测试 root@DESKTOP-1 阅读全文
posted @ 2022-04-27 13:08 小鲨鱼2018 阅读(4985) 评论(0) 推荐(0)
摘要:1、查看状态 root@DESKTOP-1N42TVH:/home# ufw status ## 开启状态 Status: active 2、关闭防火墙 root@DESKTOP-1N42TVH:/home# ufw disable Firewall stopped and disabled on 阅读全文
posted @ 2022-04-27 13:05 小鲨鱼2018 阅读(2880) 评论(0) 推荐(0)
摘要:1、win + r wslconfig /l 2、执行如下命令 wslconfig /u Ubuntu 3、检查 wslconfig /l 阅读全文
posted @ 2022-04-27 12:38 小鲨鱼2018 阅读(268) 评论(0) 推荐(0)
摘要:1、问题,执行apt-get update时出现如下报错: Err:1 http://archive.ubuntu.com/ubuntu focal InRelease 2、 阅读全文
posted @ 2022-04-27 12:15 小鲨鱼2018 阅读(2183) 评论(0) 推荐(0)
摘要:1、 root@DESKTOP-1N42TVH:/home/test# ls root@DESKTOP-1N42TVH:/home/test# ls /home/test2/* /home/test2/a.txt /home/test2/test.sh root@DESKTOP-1N42TVH:/h 阅读全文
posted @ 2022-04-26 23:21 小鲨鱼2018 阅读(3111) 评论(0) 推荐(0)
摘要:来源: https://blog.csdn.net/weixin_45579994/article/details/112386425 WSL2默认可以使用的内存大小为主机的80%,对于Linux而言即使装了桌面,一般的开发也没必要给这么多内存,分多了,反而有可能卡主机的Windows操作:1.打开 阅读全文
posted @ 2022-04-26 22:03 小鲨鱼2018 阅读(3825) 评论(0) 推荐(0)
摘要:001、 root@DESKTOP-1N42TVH:/home/test2# ls outcome.ped root@DESKTOP-1N42TVH:/home/test2# cat outcome.ped G G C C G G T T G G C C G G T G G G C C A A T 阅读全文
posted @ 2022-04-26 21:16 小鲨鱼2018 阅读(264) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls test.txt root@DESKTOP-1N42TVH:/home/test2# cat test.txt i j k s root@DESKTOP-1N42TVH:/home/test2# sed -n l 阅读全文
posted @ 2022-04-26 15:21 小鲨鱼2018 阅读(1114) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls test.txt root@DESKTOP-1N42TVH:/home/test2# cat test.txt i j k x c b z c b e g a 2、输出行序号 root@DESKTOP-1N42T 阅读全文
posted @ 2022-04-26 15:10 小鲨鱼2018 阅读(426) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt ## 测试数据 d eee j x ee u d eeeee d a e u k q j eeee sj a d 阅读全文
posted @ 2022-04-24 18:43 小鲨鱼2018 阅读(178) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt d ees j x e.s u z e s u w e s u root@DESKTOP-1N42TVH:/ho 阅读全文
posted @ 2022-04-24 18:28 小鲨鱼2018 阅读(328) 评论(0) 推荐(0)
摘要:1、测试数据 root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt d ees j x e.s u z e s u w e s u root@DESKTOP-1N42TVH:/ho 阅读全文
posted @ 2022-04-24 18:23 小鲨鱼2018 阅读(703) 评论(0) 推荐(0)
摘要:1、linux 中 grep -q选项表示静默输出, 即不显式匹配结果 root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt ## 测试数据 d e j s q u z c b r 阅读全文
posted @ 2022-04-24 17:51 小鲨鱼2018 阅读(2924) 评论(0) 推荐(0)
摘要:1、 root@DESKTOP-1N42TVH:~# echo "/etc/init.d/ssh start" >> /etc/profile 阅读全文
posted @ 2022-04-24 13:09 小鲨鱼2018 阅读(176) 评论(0) 推荐(0)
摘要:1、问题 -bash: /mnt/c/Windows/System32/drivers/etc/hosts: Permission denied 2、解决方法 右击,选属性 选安全: 选Users: 点编辑: 点users: 选完全控制: 选应用: 选是: 3、测试效果 可以修改了。 阅读全文
posted @ 2022-04-24 10:56 小鲨鱼2018 阅读(698) 评论(0) 推荐(0)
摘要:形式1、curl xxxx > result root@DESKTOP-1N42TVH:/home/test2# curl https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20220402.zip > a.zip 形式2:curl 阅读全文
posted @ 2022-04-23 23:59 小鲨鱼2018 阅读(1037) 评论(0) 推荐(0)
摘要:1、问题: Network error: Connection refused 2、解决方法 root@DESKTOP-1N42TVH:~# /etc/init.d/ssh status * sshd is not running 3、 root@DESKTOP-1N42TVH:~# /etc/in 阅读全文
posted @ 2022-04-23 22:54 小鲨鱼2018 阅读(636) 评论(0) 推荐(0)

上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 77 下一页