
Linux
马克图布No1
求同存异,坦诚相待
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++求掩码中的1的个数
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string> #include <iostream> using std::string; void netmaskToBitLength(string& mp2Ip4Mask) { unsigned long int res = inet_addr(mp2Ip原创 2021-10-29 10:00:23 · 283 阅读 · 0 评论 -
软链接和硬链接的区别-个人笔记
建立软链接和硬链接的shell命令: # 对file文件建立硬链接 ln file hard # 对file文件建立软链接 ln -s file soft 以下为实验过程以及总结原创 2020-10-10 16:25:16 · 156 阅读 · 0 评论 -
使用xface为Ubuntu 18服务器安装图像化界面
Use a GUI with Ubuntu Linux on AWS EC2 参考视频 : Youtube Onedrive 首先使用xshell远程登录到服务器 分别将以下shell命令复制粘贴到Ubuntu的终端中 sudo apt update && sudo apt upgrade sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config sudo /原创 2020-09-25 13:52:21 · 641 阅读 · 0 评论 -
Linux基本指令学习笔记
shell编程 教程 网络设置 使用ifconfig eth0 192.168.1.56即可设置或改变Linux系统的网络IP地址,注意在虚拟机中所设置的ip地址要和主机在同一个网段中,否则不能相互ping通(以上只是临时生效,重启之后则失效) IP地址分类: 子网掩码作用:(1代表网络位,0代表主机位)确定任意IP地址是否属于同一个网络段,同一网段之间通讯只需要交换机就可以了,但是不同网络段...原创 2019-12-26 21:41:18 · 462 阅读 · 0 评论