문제 1
xudeg@KIMNOHJEONG MINGW64 ~
$ mkdir easylinux
xudeg@KIMNOHJEONG MINGW64 ~
$ cd easylinux
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ pwd
/c/Users/xudeg/easylinux
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ls
go-web-application-windows.exe*
문제 2
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ export WEBAPP_VAR=development
문제 3
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ alias execwebapp=/c/Users/xudeg/easylinux/go-web-application-windows.exe
문제 4
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ vi ~/.bashrc
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ source ~/.bashrc
문제 5
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ execwebapp
2024/09/13 05:49:42 This is GO-WEB-APPLICATION
2024/09/13 05:49:42 INFO: Application is initializing...
2024/09/13 05:49:42 INFO: Configuration files are being read...
2024/09/13 05:49:42 WARN: Debug mode is enabled.
2024/09/13 05:49:42 DEBUG: Verbose logging is activated for debugging.
2024/09/13 05:49:42 WARN: Example warning message.
2024/09/13 05:49:42 WARN: Another warning, maybe related to configuration.
2024/09/13 05:49:42 INFO: Starting server on port 8080...
2024/09/13 05:49:42 INFO: Server is ready to receive requests.
2024/09/13 05:49:42 INFO: Listening for connections...
2024/09/13 05:49:42 INFO: Health checks are running.
2024/09/13 05:49:42 INFO: WEBAPP_VAR 환경변수는 development 입니다.
2024/09/13 05:49:42 Starting server on :8080
문제 6
문제 7
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ touch webapp.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ vi webapp.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cat webapp.log
2024/09/13 05:54:22 This is GO-WEB-APPLICATION
2024/09/13 05:54:22 INFO: Application is initializing...
2024/09/13 05:54:22 INFO: Configuration files are being read...
2024/09/13 05:54:22 WARN: Debug mode is enabled.
2024/09/13 05:54:22 DEBUG: Verbose logging is activated for debugging.
2024/09/13 05:54:22 WARN: Example warning message.
2024/09/13 05:54:22 WARN: Another warning, maybe related to configuration.
2024/09/13 05:54:22 INFO: Starting server on port 8080...
2024/09/13 05:54:22 INFO: Server is ready to receive requests.
2024/09/13 05:54:22 INFO: Listening for connections...
2024/09/13 05:54:22 INFO: Health checks are running.
2024/09/13 05:54:22 INFO: WEBAPP_VAR 환경변수는 development 입니다.
2024/09/13 05:54:22 Starting server on :8080
문제 8
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ps -al
PID PPID PGID WINPID TTY UID STIME COMMAND
1669 1 1669 22276 ? 197609 05:49:25 /usr/bin/mintty
1699 1698 1699 21084 pty2 197609 05:51:34 /usr/bin/bash
1801 1670 1801 14112 pty1 197609 05:55:10 /usr/bin/ps
1698 1 1698 14024 ? 197609 05:51:34 /usr/bin/mintty
1670 1669 1670 26288 pty1 197609 05:49:25 /usr/bin/bash
1800 1699 1800 19592 pty2 197609 05:55:06 /c/Users/xudeg/easylinux/go-web-application-windows
1241 1 1241 2468 pty0 197609 04:37:01 /usr/bin/tree
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ kill -9 1800
문제 9
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ pwd
/c/Users/xudeg/easylinux
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ mkdir practice
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cd practice/
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ pwd
/c/Users/xudeg/easylinux/practice
문제 10
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ mv ../webapp.log .
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ ls
webapp.log
문제 11
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ cat webapp.log | grep -i info > webapp-info.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ ls
webapp-info.log webapp.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ cat webapp-info.log
2024/09/13 05:54:22 INFO: Application is initializing...
2024/09/13 05:54:22 INFO: Configuration files are being read...
2024/09/13 05:54:22 INFO: Starting server on port 8080...
2024/09/13 05:54:22 INFO: Server is ready to receive requests.
2024/09/13 05:54:22 INFO: Listening for connections...
2024/09/13 05:54:22 INFO: Health checks are running.
2024/09/13 05:54:22 INFO: WEBAPP_VAR 환경변수는 development 입니다.
문제 12
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cp practice ./practice_backup
cp: -r not specified; omitting directory 'practice'
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cp -r practice ./practice_backup
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ls
go-web-application-windows.exe* practice/ practice_backup/
문제 13
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ mv practice_backup/ practice_bak
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ls
go-web-application-windows.exe* practice/ practice_bak/
문제 14
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cd practice
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ ls
webapp-info.log webapp.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ tar -cvf practice.tar .
./
tar: ./practice.tar: file is the archive; not dumped
./webapp-info.log
./webapp.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ ls
practice.tar webapp-info.log webapp.log
문제 15
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ mv practice.tar ../
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice
$ ls ../
go-web-application-windows.exe* practice/ practice.tar practice_bak/
문제 16
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ls
go-web-application-windows.exe* practice/ practice.tar practice_bak/
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ rm -r practice
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ls
go-web-application-windows.exe* practice.tar practice_bak/
문제 17
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ ls
go-web-application-windows.exe* practice.tar practice_bak/ practice_tar/
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ mv practice.tar ./practice_tar
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cd practice_tar
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice_tar
$ ls
practice.tar
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice_tar
$ tar -xvf practice.tar
./
./webapp-info.log
./webapp.log
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice_tar
$ ls
practice.tar webapp-info.log webapp.log
문제 18
xudeg@KIMNOHJEONG MINGW64 ~/easylinux/practice_tar
$ cd ..
c
xudeg@KIMNOHJEONG MINGW64 ~/easylinux
$ cd ..
xudeg@KIMNOHJEONG MINGW64 ~
$ rm -r easylinux/