1. 安装 sudo apt-get update sudo apt-get install openssh-server 2.开启服务 查看查看ssh服务是否启动 打开"终端窗口",输入"sudo ps -e |grep ssh"-->回车-->有sshd,说明ssh服务已经启动. 如果没有启动, Read More
posted @ 2018-11-12 19:40
靖意风
Views(3153)
Comments(0)
Diggs(0)
参考摘录的是博客园的文章:https://www.cnblogs.com/zhaopengcheng/p/5481048.html ubuntu系统:16.04 1. 首先用管理员权限创建一个新用户,按照提示设置password以及其它 sudo adduser wwj 然后在可查看 /etc/pa Read More
posted @ 2018-11-12 19:38
靖意风
Views(183)
Comments(0)
Diggs(0)
1, fopen() 的使用,在linux环境下,我们可以使用man fopen查看使用说明: #include <stdio.h> FILE *fopen(const char *path, const char *mode); path 是指文件路径。 mode 含义如下: r 只读方式打开一个 Read More
posted @ 2018-11-12 18:29
靖意风
Views(653)
Comments(0)
Diggs(0)
在Linux的内核态和用户态都有信号量,使用也不同,简单记录一下。 1> 内核信号量,由内核控制路径使用。 内核信号量是struct semaphore类型的对象,它在<asm/semaphore.h>中定义 struct semaphore { atomic_t count; int sleepe Read More
posted @ 2018-11-12 18:23
靖意风
Views(992)
Comments(0)
Diggs(0)
参考博客: https://www.cnblogs.com/-zyj/p/5760484.html 1. 批量删除筛选的文件夹 ls -l | grep ^d | xargs rm -rf 批量mv一批文件到 某个文件夹下 find ./* -type f -name "*.c" | xargs - Read More
posted @ 2018-11-12 18:12
靖意风
Views(163)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号