실행 -> vi종료 -> :qenter저장하지 않고 종료 -> :qenter변경된 내용을 저장한 후 종료 -> :wq파일 생성 및 편집 -> vi test.cINSERT모드 -> i명령모드 -> ESC
makefile을 이용하면 소스코드들을 간단하게 compile할 수 있음$@: the file name of the target of the rule$^: the names of all the prerequisite$?: the name of all the prereq
shell script를 실행하면 script에 적혀있는 terminal의 명령어들을 순차적으로 실행시킬 수 있음script를 executable file로 만들려면, $ chmod + filename위의 shell script를 "./test.sh 11 22"로 pa
일단 zip, unzip 설치\-> sudo apt-get install zip unzip특정 directory의 모든 file 및 directory를 2019315447.zip으로 압축\-> zip -r 2019315447.zip ./\*
A Linux file is a sequence of m bytes.Regular file: contains arbitrary dataDirectory: index for a related group of filesSocket: for communicating with
Unix I/O vs Standard I/OStandard I/O models open files as streams\-> Abstraction for a file descriptor and a buffer in a memoryUnix file I/O\-> open()
There are 2 types of processes:Foreground process -> Shell must wait for process terminationBackground process -> Shell doesn't wait for process termi
Multitaskingfork() spawns new process -> Called once, returns twiceexit() terminates own process -> Called once, never returns / Puts it into "zombie"
int main(){ char cmd = NULL; size_t size = 0; char arg11;}
Make chatting program using Message QueueYou must run 2 programs(users).When each program starts, get sender's id and receiver's id from stdinSender:
What is a socket?A remote-local, application-created/owned, OS-controlled interface to network (a "door")\-> To the kernel, a socket is an endpoint of
Process: One address space per process/ Each process has its own data(global variables), stack, heapThread: Multiple thread share on address space/ it
word search ver.2.01) Ask filename want to search.2) Ask what function wan to use.3) If you select 1 or 2, ask what word want to find.4) If you select
You have to implement a ticketing server which is capable of handling numerous clients simultaneously. The server should manage the ticketing procedur
Make a swsh shell works under linux environment\-> which covers the files, signals, and IPCA shell is a program that takes 1) input from a user, 2) in