![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
leexiaomi6618
多喝水
展开
-
linux 常用命令总结(1)
linux 常用命令总结(1)文件目录操作ls :查看当前目录下的文件pwd :查看当前路径cd :切换目录cp :拷贝文件 cp (source) (target)mkdir/rmdir :新建目录/删除目录 mkdir test1 / rmdir test2rm :删除文件cat :连接文件,显示ASCII文件 cat file.txt 显示file.txt文件的内...原创 2019-04-14 22:48:14 · 151 阅读 · 0 评论 -
配置vim编辑器
找到vim配置文件(mac os) vimrc,终端输入命令:cp /usr/share/vim/vimrc ~/.vimrc可使用vim打开配置文件输入需要配置的选项原创 2019-05-12 22:05:53 · 200 阅读 · 3 评论 -
htonl htons ntohl ntohs inet_pton inet_ntop
字节序转换函数uint32_t htonl(uint32_t hostlong)主机字节序到网络字节序长整型转换uint32_t htons(uint16_t hostshort)主机字节序到网络字节序短整型转换uint32_t ntohl(uint32_t netlong)网络字节序到主机字节序长整型转换uint32_t ntohs(uint16_t netshort)网络字节序到主机...原创 2019-09-20 22:47:20 · 355 阅读 · 0 评论 -
I/O多路复用 select poll epoll
select/poll/epoll1.select()函数函数原型:int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)nfds:整型标量,比所有文件描述符集合中文件描述符最大值大1。readfds:此文件描述符监视文件集合中是否有数据可读...原创 2019-09-22 23:27:01 · 244 阅读 · 0 评论