随笔分类 -  Linux

摘要:1、查看占用内存最多的十个进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head 2、查看占用 cpu 最多的十个进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head ——————— 阅读全文
posted @ 2023-10-04 19:57 hack747 阅读(283) 评论(0) 推荐(0) 编辑
摘要:首先 yum install gcc 安装完成后 gcc -o 指定文件名 文件(gcc -o hello hello.c) 另外 对pthread_create未定义的引用 pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,在编译中要加-lpthread(放在命 阅读全文
posted @ 2022-04-27 18:26 hack747 阅读(94) 评论(0) 推荐(0) 编辑
摘要:[root@server ~]# useradd chenjiafa //添加一个名为chenjiafa的用户 [root@server ~]# passwd chenjiafa //修改密码 Changing password for user chenjiafa. New UNIX passwo 阅读全文
posted @ 2022-04-24 09:19 hack747 阅读(796) 评论(0) 推荐(0) 编辑
摘要:今天下午想装点东西。。 突然发现所有的6 yum源都失效了 YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/removing mi 阅读全文
posted @ 2021-05-10 18:51 hack747 阅读(110) 评论(0) 推荐(0) 编辑
摘要:一、软件安装方法1)APT方式a.普通安装:apt-get install softname1 softname2 …;b.修复安装:apt-get -f install softname1 softname2... ;(-f Atemp to correct broken dependencies 阅读全文
posted @ 2020-03-12 07:54 hack747 阅读(2537) 评论(0) 推荐(0) 编辑

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