SlideShare a Scribd company logo
1 of 31
Download to read offline
1 일 차
jtjisgod@gmail.com
공부 방법
1. 일단 강의를 듣습니다.
( 필기 하던가 말던가 )
2. 일주일에 한번 씩 시험을 봅니다.
( 그냥 설명하는 것에 대한 명령어 쓰기 )
3. 어느 정도 주입이 끝났다고 생각되면, 자격증 시험지를 품
( 2주에 한 번 하다가, 시험 3주 전부턴 일주일에 한번, 시험 1주전엔 하루에 한번)
4. Good Luck
cat, cd, chmod, chown,
clear, cp, date, df, du, file,
find, grep, kill, less, ln,
locate, lpr, ls, man, mkdir,
mv, passwd, ps, pwd, rm,
rmdir, ssh, su, tail, tar,
top, touch, who
오늘 배울 명령어
cat [filename]
= catenate 사슬로 잇다, 연결하다; 암기하다
Display file’s contents to the standard output device (usually your monitor).
→ 파일의 내용을 표준 출력으로 보여줍니다. ( 보통 모니터로 보입니다. )
cd [directory]
= change directory 디텍토리를 바꾸어라
해당 폴더로 이동합니다.
chmod [options] [mode] [filename]
= change mode 파일의 권한 설정을 바꾸어라.
[options] = -r 등등 … 옵션에 관련된 심화된 내용은 나중에 공부
[mode] = 000, 744, 777 등 권한을 숫자로 표현한 내용, 뒷 페이지에서 공부
[filename] = 파일 또는 디렉토리 이름을 넣음
[filename]에 대한 권한이 [mode]으로 변합니다.
chmod [options] [mode] [filename]
= change mode 파일의 권한 설정을 바꾸어라.
777 → rwx, rwx, rwx
744 → rwx, r - -, r - -
222 → www, - - -, - - -
그렇다면 753은?
chown [options] [owner] [filename]
= change owner 파일 또는 디렉터리의 소유자 변경
[options] 는 나중에 …
chown jtjisgod ./text.txt
./text.txt 라는 파일의 소유주가 jtjisgod이라는 유저로 바뀐다.
clear
= clear 치워라
화면이 깨끗하게 지워집니다.
샤르르~~~
cp [options] [src] [dest]
= copy 파일을 복사해라.
[options] 는 나중에 …
[src] 는 복사 할 파일
[dest] 는 복사 할 위치
mv [options] [src] [dest]
= move 파일을 이동시켜라.
[options] 는 나중에 …
[src] 는 이동 할 파일
[dest] 는 이동 할 위치
→ 파일을 단순이 이동 시키는 것 보다는 파일의 이름을 바꾸기 위함도 있음
date [options]
= date 날짜를 확인하거나 설정합니다.
“date” = 날짜 확인
그 외 옵션을 통해 날짜를 설정 할 수 있음
( 이 부분은 시험을 보면서 공부합시다. )
file [options] [filename]
= file 파일에 대한 정보를 표현한다
그냥 한번 보는게 편할 것 같다.
find [pathname] [expression]
= find 파일을 찾아라~~~~~~~~
[pathname] 폴더의 자식에서
[expression]에 맞게 찾아라
[expression]은 size나 name등 “표현”을 의미한다
Find ./ -name jtjisgod.txt
→ 현재 폴더 ( ./ ) 에서 “jtjisgod.txt”라는 이름을 찾아라. ( 폴더나 파일 이름 모두 )
grep [options] pattern [filesname]
= global regular
expression print
[option] 은 나중에 …
나는 특히 “ -r “ 명령어를 많이 씀.
[pattern]은 어떤걸 검색하냐고 물어봄
[filename] 은 파일 명을 의미 하는 거야. 안써도 되고..
“grep -r jtj” 라고 하면 현재 폴더 아래에 있는 모든 파일들 내용에서 “jtj”를 찾아
“grep -r jtj ./file.txt” 라고 하면 “./file.txt”에서 “jtj”를 찾아
전체적인 텍스트를
검색해서 출력한다.
grep [options] pattern [filesname]
= global regular
expression print
전체적인 텍스트를
검색해서 출력한다.
grep [options] pattern [filesname]
= global regular
expression print
전체적인 텍스트를
검색해서 출력한다.
kill [options] [pid]
= kill [pid]를 죽여!!!!!!
[pid] = process id = 실행되고 있는 프로세스 ( 프로그램 ) 의 고유한 아이디
kill 1023
→ 1023 이라는 프로세스 아이디를 갖고 있는 프로그램을 죽여라!!
killall [options] [process name]
= killall [process name]을 죽여라
Process name = 실행되고 있는 프로세스의 이름
( python3 라던가,, chrome 이라던가.. )
killall chrome
→ 모든 chrome 모두 죽이기
ln [options] [source] [destination]
= link n...(몰라) 바로 가기를 만들기 위해 사용
바로 가기를 위해 사용하는데
[options]는 주로 “-s” 를 사용함.
폴더와 파일 모두 사용가능
ln -s /var/www/html ~/바탕화면/html
/var/www/html 이란 폴더의 바로가기를 바탕화면에 있는 html폴더로 해라.
( ~/바탕화면/html 에서 작업하는 것은 /var/www/html 에서 작업하는 것과 같음)
ls [directory] [options]
= list 리스트를 보여주어라!!! ! ! ! !
해당 폴더로 이동합니다.
cd [directory]
= change directory 디텍토리를 바꾸어라
해당 폴더로 이동합니다.
ls [directory] [options]
= list 리스트를 보여주어라!!! ! ! ! !
해당 폴더로 이동합니다.
man [command]
= manual maual = 설명서
명령어에 대한 설명을 보여주어라
mkdir [options] [directory]
= make directory 만들어라! 디렉토리를! ( 폴더 )
그냥.. 폴더를 만들어요..
mkdir jtjisgod
mkdir ./jtjisgod
mkdir /home/jtjisgod/jtjisgod
rm [options] [directory]
= remove 삭 제 ㅋ
파일이나 파일들, 폴더나 폴더들을 삭제한다.
rmdir [options] [directory]
= remove directory 디렉토리를 삭제하거라.....
그냥 폴더를 삭제해요.
안에 뭐 있으면 삭제 안해요.
근데 옵션에 따라 삭제 할 수 도 있을 것 같아요.
배운 명령어
cat [filename] Display file’s contents to the standard output device (usually your monitor).
cd /directorypath Change to directory.
chmod [options] mode filename Change a file’s permissions.
chown [options] filename Change who owns a file.
clear Clear a command line screen/window for a fresh start.
cp [options] source destination Copy files and directories.
date [options] Display or set the system date and time.
file [options] filename Determine what type of data is within a file.
find [pathname] [expression] Search for files matching a provided pattern.
grep [options] pattern [filesname] Search files or output for a particular pattern.
kill [options] pid Stop a process. If the process refuses to stop, use kill -9 pid.
ln [options] source [destination] Create a shortcut.
ls [options] List directory contents.
mv [options] source destination Rename or move file(s) or directories.
man [command] Display the help information for the specified command.
mkdir [options] directory Create a new directory.
rm [options] directory Remove (delete) file(s) and/or directories.
rmdir [options] directory Delete empty directories.
생각 해 볼 문제
cat, cd, chmod, chown,
clear, cp, date, file, find,
grep, kill, ln, ls, mv,
man, mkdir, rm, rmdir
생각 해 볼 문제
cat, cd, chmod, chown,
clear, cp, date, file, find,
grep, kill, ln, ls, mv,
man, mkdir, rm, rmdir
수 업 끞

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

[ 리눅스 마스터 2급 - 1일차 ] 기초 명령어가 뭐하는 놈인지 알아보자.

  • 2. 공부 방법 1. 일단 강의를 듣습니다. ( 필기 하던가 말던가 ) 2. 일주일에 한번 씩 시험을 봅니다. ( 그냥 설명하는 것에 대한 명령어 쓰기 ) 3. 어느 정도 주입이 끝났다고 생각되면, 자격증 시험지를 품 ( 2주에 한 번 하다가, 시험 3주 전부턴 일주일에 한번, 시험 1주전엔 하루에 한번) 4. Good Luck
  • 3. cat, cd, chmod, chown, clear, cp, date, df, du, file, find, grep, kill, less, ln, locate, lpr, ls, man, mkdir, mv, passwd, ps, pwd, rm, rmdir, ssh, su, tail, tar, top, touch, who 오늘 배울 명령어
  • 4. cat [filename] = catenate 사슬로 잇다, 연결하다; 암기하다 Display file’s contents to the standard output device (usually your monitor). → 파일의 내용을 표준 출력으로 보여줍니다. ( 보통 모니터로 보입니다. )
  • 5. cd [directory] = change directory 디텍토리를 바꾸어라 해당 폴더로 이동합니다.
  • 6. chmod [options] [mode] [filename] = change mode 파일의 권한 설정을 바꾸어라. [options] = -r 등등 … 옵션에 관련된 심화된 내용은 나중에 공부 [mode] = 000, 744, 777 등 권한을 숫자로 표현한 내용, 뒷 페이지에서 공부 [filename] = 파일 또는 디렉토리 이름을 넣음 [filename]에 대한 권한이 [mode]으로 변합니다.
  • 7. chmod [options] [mode] [filename] = change mode 파일의 권한 설정을 바꾸어라. 777 → rwx, rwx, rwx 744 → rwx, r - -, r - - 222 → www, - - -, - - - 그렇다면 753은?
  • 8. chown [options] [owner] [filename] = change owner 파일 또는 디렉터리의 소유자 변경 [options] 는 나중에 … chown jtjisgod ./text.txt ./text.txt 라는 파일의 소유주가 jtjisgod이라는 유저로 바뀐다.
  • 9. clear = clear 치워라 화면이 깨끗하게 지워집니다. 샤르르~~~
  • 10. cp [options] [src] [dest] = copy 파일을 복사해라. [options] 는 나중에 … [src] 는 복사 할 파일 [dest] 는 복사 할 위치
  • 11. mv [options] [src] [dest] = move 파일을 이동시켜라. [options] 는 나중에 … [src] 는 이동 할 파일 [dest] 는 이동 할 위치 → 파일을 단순이 이동 시키는 것 보다는 파일의 이름을 바꾸기 위함도 있음
  • 12. date [options] = date 날짜를 확인하거나 설정합니다. “date” = 날짜 확인 그 외 옵션을 통해 날짜를 설정 할 수 있음 ( 이 부분은 시험을 보면서 공부합시다. )
  • 13. file [options] [filename] = file 파일에 대한 정보를 표현한다 그냥 한번 보는게 편할 것 같다.
  • 14. find [pathname] [expression] = find 파일을 찾아라~~~~~~~~ [pathname] 폴더의 자식에서 [expression]에 맞게 찾아라 [expression]은 size나 name등 “표현”을 의미한다 Find ./ -name jtjisgod.txt → 현재 폴더 ( ./ ) 에서 “jtjisgod.txt”라는 이름을 찾아라. ( 폴더나 파일 이름 모두 )
  • 15. grep [options] pattern [filesname] = global regular expression print [option] 은 나중에 … 나는 특히 “ -r “ 명령어를 많이 씀. [pattern]은 어떤걸 검색하냐고 물어봄 [filename] 은 파일 명을 의미 하는 거야. 안써도 되고.. “grep -r jtj” 라고 하면 현재 폴더 아래에 있는 모든 파일들 내용에서 “jtj”를 찾아 “grep -r jtj ./file.txt” 라고 하면 “./file.txt”에서 “jtj”를 찾아 전체적인 텍스트를 검색해서 출력한다.
  • 16. grep [options] pattern [filesname] = global regular expression print 전체적인 텍스트를 검색해서 출력한다.
  • 17. grep [options] pattern [filesname] = global regular expression print 전체적인 텍스트를 검색해서 출력한다.
  • 18. kill [options] [pid] = kill [pid]를 죽여!!!!!! [pid] = process id = 실행되고 있는 프로세스 ( 프로그램 ) 의 고유한 아이디 kill 1023 → 1023 이라는 프로세스 아이디를 갖고 있는 프로그램을 죽여라!!
  • 19. killall [options] [process name] = killall [process name]을 죽여라 Process name = 실행되고 있는 프로세스의 이름 ( python3 라던가,, chrome 이라던가.. ) killall chrome → 모든 chrome 모두 죽이기
  • 20. ln [options] [source] [destination] = link n...(몰라) 바로 가기를 만들기 위해 사용 바로 가기를 위해 사용하는데 [options]는 주로 “-s” 를 사용함. 폴더와 파일 모두 사용가능 ln -s /var/www/html ~/바탕화면/html /var/www/html 이란 폴더의 바로가기를 바탕화면에 있는 html폴더로 해라. ( ~/바탕화면/html 에서 작업하는 것은 /var/www/html 에서 작업하는 것과 같음)
  • 21. ls [directory] [options] = list 리스트를 보여주어라!!! ! ! ! ! 해당 폴더로 이동합니다.
  • 22. cd [directory] = change directory 디텍토리를 바꾸어라 해당 폴더로 이동합니다.
  • 23. ls [directory] [options] = list 리스트를 보여주어라!!! ! ! ! ! 해당 폴더로 이동합니다.
  • 24. man [command] = manual maual = 설명서 명령어에 대한 설명을 보여주어라
  • 25. mkdir [options] [directory] = make directory 만들어라! 디렉토리를! ( 폴더 ) 그냥.. 폴더를 만들어요.. mkdir jtjisgod mkdir ./jtjisgod mkdir /home/jtjisgod/jtjisgod
  • 26. rm [options] [directory] = remove 삭 제 ㅋ 파일이나 파일들, 폴더나 폴더들을 삭제한다.
  • 27. rmdir [options] [directory] = remove directory 디렉토리를 삭제하거라..... 그냥 폴더를 삭제해요. 안에 뭐 있으면 삭제 안해요. 근데 옵션에 따라 삭제 할 수 도 있을 것 같아요.
  • 28. 배운 명령어 cat [filename] Display file’s contents to the standard output device (usually your monitor). cd /directorypath Change to directory. chmod [options] mode filename Change a file’s permissions. chown [options] filename Change who owns a file. clear Clear a command line screen/window for a fresh start. cp [options] source destination Copy files and directories. date [options] Display or set the system date and time. file [options] filename Determine what type of data is within a file. find [pathname] [expression] Search for files matching a provided pattern. grep [options] pattern [filesname] Search files or output for a particular pattern. kill [options] pid Stop a process. If the process refuses to stop, use kill -9 pid. ln [options] source [destination] Create a shortcut. ls [options] List directory contents. mv [options] source destination Rename or move file(s) or directories. man [command] Display the help information for the specified command. mkdir [options] directory Create a new directory. rm [options] directory Remove (delete) file(s) and/or directories. rmdir [options] directory Delete empty directories.
  • 29. 생각 해 볼 문제 cat, cd, chmod, chown, clear, cp, date, file, find, grep, kill, ln, ls, mv, man, mkdir, rm, rmdir
  • 30. 생각 해 볼 문제 cat, cd, chmod, chown, clear, cp, date, file, find, grep, kill, ln, ls, mv, man, mkdir, rm, rmdir