LinuxUNIX Programming LinuxUNIX IT UNIX History 44 UNIXLinux































- Slides: 31

Linux/UNIX Programming Linux/UNIX 시작 문양세 강원대학교 IT대학 컴퓨터과학전공






UNIX History (4/4) UNIX/Linux 시작 UNIX의 대중화 – Linux의 출현 • Free software, open source 추구 • GNU Project와 더불어 대중성을 가짐 • 현재 200여 개 넘는 배포판 존재 (software 자체는 무료, maintenance는 유료) • 위키(한글): http: //ko. wikipedia. org/wiki/%EB%A 6%AC%EB%88%85%EC%8 A%A 4 • 위키(영문): http: //en. wikipedia. org/wiki/Linux • Open architecture 추구를 통해 PC에서 슈퍼컴까지 활용분야 넓어짐 Page 7 Linux/UNIX Programming by Yang-Sae Moon



UNIX 제품 종류 UNIX/Linux 시작 UNIX는 단일 제품이 아니라, 제품군을 의미하며 다음과 같은 두 가지 특징을 공통으로 포함함 • 멀티태스킹(Multitasking): 유닉스 시스템이 한번에 하나 이상의 프로그램을 동시에 실 행할 수 있음을 의미 • 멀티유저(Multiuser): 유닉스 시스템이 한번에 한 명 이상의 사용자를 동시에 지원할 수 있음을 의미 상용 UNIX 제품 무료 UNIX 제품 유닉스명 Free. BSD Linux Net. BSD 유닉스명 AIX BSD/OS HP-UX Irix OSF/1 Solaris Sun. OS Tru 64 Ultrix Unixware Page 10 제조회사 IBM Berkeley Software Design(BSDI) Hewlett-Packard(HP) Silicon Graphics Digital Equipment Corporation(DEC) Sun Microsystems HP Alpha Server Series Digital Equipment Corporation(DEC) Novell Linux/UNIX Programming by Yang-Sae Moon


UNIX 시작 (2/7) UNIX/Linux 시작 로그인 login: • 사용자명(login name)을 입력하고 RETURN 키 password: • 패스워드를 입력하고 RETURN 키 Page 12 Linux/UNIX Programming by Yang-Sae Moon

UNIX 시작 (3/7) UNIX/Linux 시작 로그인 예제 (실제 수행해 봅시다. ) Page 13 Linux/UNIX Programming by Yang-Sae Moon


UNIX 시작 (5/7) UNIX/Linux 시작 Shell Prompt • Shell: 사용자의 명령을 읽고 해석하는 프로그램 • Shell이 다음 명령을 받아들일 준비가 되면, Prompt를 보여줌 • Prompt는 사용하고 있는 Shell에 따라 차이가 있음 − Default Prompt: C Shell(%, $), Korn Shell($), Bourne Shell, … − User Defined Prompt: 사용자가 지정(. cshrc)하여 변경 가능함 • 끝내고자 할 때는 Shell Prompt 상에서 “logout” 또는 “exit”를 입력 Page 15 Linux/UNIX Programming by Yang-Sae Moon

UNIX 시작 (6/7) UNIX/Linux 시작 Shell Prompt (계속) Page 16 Linux/UNIX Programming by Yang-Sae Moon



간단한 유닉스 작업 (2/10) UNIX/Linux 시작 날짜 및 시각 확인하기 (date) Page 19 Linux/UNIX Programming by Yang-Sae Moon

간단한 유닉스 작업 (3/10) UNIX/Linux 시작 현재 로그인한 사용자 확인하기 (who) Page 20 Linux/UNIX Programming by Yang-Sae Moon

간단한 유닉스 작업 (4/10) UNIX/Linux 시작 디렉토리/파일 목록 보기 (ls) Page 21 Linux/UNIX Programming by Yang-Sae Moon

간단한 유닉스 작업 (5/10) UNIX/Linux 시작 파일 내용 보기 (cat) Page 22 Linux/UNIX Programming by Yang-Sae Moon

간단한 유닉스 작업 (6/10) UNIX/Linux 시작 파일 내용 보기 (more) Page 23 Linux/UNIX Programming by Yang-Sae Moon


간단한 유닉스 작업 (8/10) UNIX/Linux 시작 과거 로그인한 이력 보기 (last) Page 25 Linux/UNIX Programming by Yang-Sae Moon

간단한 유닉스 작업 (9/10) UNIX/Linux 시작 명령어 매뉴얼 보기 (man) Page 26 Linux/UNIX Programming by Yang-Sae Moon

간단한 유닉스 작업 (10/10) UNIX/Linux 시작 자신의 호스트 이름 보기 (hostname, uname) Page 27 Linux/UNIX Programming by Yang-Sae Moon

. cshrc 파일 (1/3) UNIX/Linux 시작 로그인(C Shell 가정)할 때 자동적으로 실행되는 파일 자신의 환경(Prompt 형식, 명령어 Alias 등)을 설정하기 위해서 사용 Prompt 상에서. cshrc 파일 실행하는 명령어(source) $ source. cshrc Page 28 Linux/UNIX Programming by Yang-Sae Moon

. cshrc 파일 (2/3) UNIX/Linux 시작 Page 29 Linux/UNIX Programming by Yang-Sae Moon

. cshrc 파일 (3/3) UNIX/Linux 시작 내. cshrc 파일을 어떻게 작성하고 수정하지? Page 30 Linux/UNIX Programming by Yang-Sae Moon

Homework#1 UNIX/Linux 시작 Page 31 Linux/UNIX Programming by Yang-Sae Moon
Unixlinux
Linuxunix
Raw sockets in unix network programming
Stevens unix network programming
Unix operating system
Unix programming
Bsd berkeley software distribution
History of unix
Bsd unix history
Multi tasking operating system
Perbedaan linear programming dan integer programming
Greedy programming vs dynamic programming
What is in system programming
Linear vs integer programming
Programing adalah
Extreme programming history
Brief history of programming languages
History of php programming language
History of php programming language
Brief history of c programming language
Dynamic programming history
Also history physical
What is unix
Explain what is an os
Unix was originally developed in
Unix protection
Objetivo de unix
Posix shared memory synchronization
Unix device drivers
Namei algorithm in unix
Namei algorithm
A.out format