思维导图
#!/bin/bash
echo "$(head -n 5 /etc/group | tail -1)"
mkdir /home/ubuntu/copy
cd /home/ubuntu/copy
cp /etc/shadow test
chown root test
chmod o-r,o-w,o-x test
#include <myhead.h>
//递归实现,输入一个数,输出这个数的每一位
void fun(int num){if(num == 0 ){return ;}printf("%d\n",num%10);fun(num/10);
}
//递归实现输入一个数,输出这个数的二进制
void fun1(int num){if(num == 0) return ;fun1(num/2);printf("%d",num%2);
}
int main(int argc, const char *argv[])
{int num=0;printf("输入");scanf("%d",&num);printf("每一位\n");fun(num);printf("二进制:\n");fun1(10);puts("");return 0;
}