随笔分类 - Linux
摘要:https://zhuanlan.zhihu.com/p/64138532 https://my.oschina.net/alchemystar/blog/3008840
阅读全文
摘要:#include <stdio.h> union { short value; // 2字节 char bytes[sizeof(short)]; // char[2] } test; int main(int argc, const char * argv[]) { test.value = 0x
阅读全文
摘要:#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
阅读全文
摘要:1、mac上传文件到linux服务器 scp 文件名 用户名@服务器ip:目标路径如:scp -P端口号 /Users/test/testFile test@xxx.xxx.xxx.xxx:/test/ 2、mac上传文件夹到linux服务器,与上传文件相比多加了-r scp -r 文件夹目录 用户
阅读全文
摘要:运行下面自动脚本(已经全部替换为国内地址): /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
阅读全文