随笔分类 -  linux shell

上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 78 下一页
摘要:1、问题 2、解决方法,增加如下内容 root@PC1:~/home/test# vim /etc/profileexport DISPLAY=:0.0 3、立即生效 root@PC1:/home/test# source /etc/profile 参考:https://blog.csdn.net/ 阅读全文
posted @ 2021-10-24 17:58 小鲨鱼2018 阅读(11936) 评论(0) 推荐(0)
摘要:linux中comm命令用于提取两列数据中的唯一项、交集、并集等。 1、测试数据 root@PC1:/home/test/test# ls a.txt b.txt root@PC1:/home/test/test# cat a.txt w s g d w a root@PC1:/home/test/ 阅读全文
posted @ 2021-10-24 12:16 小鲨鱼2018 阅读(466) 评论(0) 推荐(0)
摘要:1、查看内核 root@PC1:~/GS/lihua/test# hostnamectl Static hostname: PC1 Icon name: computer-vm Chassis: vm Machine ID: dc50d4dc469c45ea8a2a10f39caa45e9 Boot 阅读全文
posted @ 2021-10-23 18:51 小鲨鱼2018 阅读(2493) 评论(0) 推荐(0)
摘要:1、问题 Package libxml-2.0 was not found in the pkg-config search path 2、检查是否有库文件, no root@PC1:/home/software# find / -name "libxml-2.0.pc" root@PC1:/hom 阅读全文
posted @ 2021-10-23 15:19 小鲨鱼2018 阅读(1224) 评论(0) 推荐(0)
摘要:1、问题 2、检查相关变量、目录 root@PC1:/test# locate libcurl.pc root@PC1:/test# echo PKG_CONFIG_PATH PKG_CONFIG_PATH root@PC1:/test# ls /usr/lib/pkgconfig/ ibus-ta 阅读全文
posted @ 2021-10-23 14:57 小鲨鱼2018 阅读(1556) 评论(0) 推荐(0)
摘要:1、问题, 命名是目录,却无法通过颜色识别 2、解决方法 root@PC1:/test# vim /etc/profile 在配置文件末尾添加ls命令别名,保存退出 3、使用source命令使其立即生效 root@PC1:/test# source /etc/profile 4、测试效果 阅读全文
posted @ 2021-10-23 11:44 小鲨鱼2018 阅读(337) 评论(0) 推荐(0)
摘要:1、问题 ll: command not found 2、解决方法 root@PC1:/etc# vim /etc/profile 在最下面增加命令别名, 然后保存退出。 3、重新加载profle文件 root@PC1:/etc# source /etc/profile 4、测试效果 root@PC 阅读全文
posted @ 2021-10-23 11:32 小鲨鱼2018 阅读(1710) 评论(0) 推荐(0)
摘要:1、内核版本 root@ubuntu02:~# hostnamectl Static hostname: ubuntu02 Icon name: computer-vm Chassis: vm Machine ID: 3c186d21e7094b71a8889a2d78350c4b Boot ID: 阅读全文
posted @ 2021-10-21 20:38 小鲨鱼2018 阅读(358) 评论(0) 推荐(0)
摘要:1、查看系统位数、系统内核 root@ubuntu02:/home# getconf LONG_BIT 64 root@ubuntu02:/home# hostnamectl Static hostname: ubuntu02 Icon name: computer-vm Chassis: vm M 阅读全文
posted @ 2021-10-21 20:07 小鲨鱼2018 阅读(1943) 评论(0) 推荐(0)
摘要:1、 getconf LONG_BIT root@ubuntu02:/home# getconf LONG_BIT 64 阅读全文
posted @ 2021-10-21 19:16 小鲨鱼2018 阅读(88) 评论(0) 推荐(0)
摘要:1、问题,root无法在图形界面登录 2、解决方法 step1、 vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 增加一行:greeter-show-manual-login=true, 然后保存退出 step2、 vim /root/.pr 阅读全文
posted @ 2021-10-10 22:51 小鲨鱼2018 阅读(398) 评论(0) 推荐(0)
摘要:1、问题 2、解决方法 step1、 vim /etc/ssh/sshd_config step2、 service ssh restart 3、测试效果 阅读全文
posted @ 2021-10-10 22:33 小鲨鱼2018 阅读(165) 评论(0) 推荐(0)
摘要:1、问题 2、解决方法 step1、 apt install openssh-server 。。。。。。 step2、 apt install openssh-client step3、 ps -e | grep sshd 3、测试效果 阅读全文
posted @ 2021-10-10 22:20 小鲨鱼2018 阅读(121) 评论(0) 推荐(0)
摘要:step1、 apt autoremove open-vm-tools step2、 apt install open-vm-tools-desktop 。。。。。。 step3、重启 reboot 阅读全文
posted @ 2021-10-10 22:06 小鲨鱼2018 阅读(782) 评论(0) 推荐(0)
摘要:1、问题:E: Unable to locate package 2、解决方法 。。。。。。 3、测试效果 阅读全文
posted @ 2021-10-10 21:59 小鲨鱼2018 阅读(773) 评论(0) 推荐(0)
摘要:1、 阅读全文
posted @ 2021-10-10 21:51 小鲨鱼2018 阅读(77) 评论(0) 推荐(0)
摘要:1、测试sl命令 root@ubuntu01:~/Desktop# sl bash: /usr/games/sl: No such file or directory root@ubuntu01:~/Desktop# 2、安装sl root@ubuntu01:~/Desktop# apt-get i 阅读全文
posted @ 2021-10-10 16:48 小鲨鱼2018 阅读(596) 评论(0) 推荐(0)
摘要:1、问题 [root@PC3 test6]# rar x xiaohou.rar -bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 2、 [root@PC3 te 阅读全文
posted @ 2021-09-28 22:22 小鲨鱼2018 阅读(327) 评论(0) 推荐(0)
摘要:来源: https://www.cnblogs.com/youyoui/p/10680329.html 1、环境变量加载顺序 2、环境变量覆盖 Linux环境变量配置 在自定义安装软件的时候,经常需要配置环境变量,下面列举出各种对环境变量的配置方法。 下面所有例子的环境说明如下: 系统:Ubuntu 阅读全文
posted @ 2021-09-27 11:53 小鲨鱼2018 阅读(99) 评论(0) 推荐(0)
摘要:1、测试文件 [root@centos79 test]# touch a.txt b.txt [root@centos79 test]# ls a.txt b.txt 2、生成测试文件的绝对路径 [root@centos79 test]# ls a.txt b.txt [root@centos79 阅读全文
posted @ 2021-08-07 11:02 小鲨鱼2018 阅读(290) 评论(0) 推荐(0)

上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 78 下一页