随笔分类 -  Linux

摘要:https://zhuanlan.zhihu.com/p/64138532 https://my.oschina.net/alchemystar/blog/3008840 阅读全文
posted @ 2022-06-09 10:16 OXYGEN1 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> union { short value; // 2字节 char bytes[sizeof(short)]; // char[2] } test; int main(int argc, const char * argv[]) { test.value = 0x 阅读全文
posted @ 2022-06-05 22:43 OXYGEN1 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(int argc,char *argv[]) { int srcfd = o 阅读全文
posted @ 2022-06-02 17:37 OXYGEN1 阅读(52) 评论(0) 推荐(0) 编辑
摘要:1、mac上传文件到linux服务器 scp 文件名 用户名@服务器ip:目标路径如:scp -P端口号 /Users/test/testFile test@xxx.xxx.xxx.xxx:/test/ 2、mac上传文件夹到linux服务器,与上传文件相比多加了-r scp -r 文件夹目录 用户 阅读全文
posted @ 2022-01-18 15:55 OXYGEN1 编辑
摘要:运行下面自动脚本(已经全部替换为国内地址): /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 阅读全文
posted @ 2022-01-16 16:52 OXYGEN1 编辑

点击右上角即可分享
微信分享提示