Linux26 Linux User 계정 등록 방법 1. Linux(Ubuntu) User 계정 등록 1.1 ueradd 방법 $ sudo useradd -m user $ sudo passwd user New password: Retype new password: passwd: password updated successfully $ ssh user@172.21.26.240 user@172.21.26.240's password: Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.13.0-35-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/a.. 2022. 3. 4. udev C 코드 프로그램 [네트워크 디바이스 확인] 1. 네트워크 디바이스 예제 코드 #include #include #define SYSPATH "/sys/class/net" #define VIRTUALPATH "/sys/devices/virtual/net" int main(int argc, char *argv[]) { struct udev *udev; struct udev_device *dev, *dev_parent; char device[128]; /* verify that we have an argument, like eth0, otherwise fail */ if (!argv[1]) { fprintf(stderr, "Missing network interface name.\nexample: %s eth0\n", argv[0]); return 1;.. 2022. 3. 2. 이전 1 2 3 4 5 다음