♦관리자 비밀번호 잊어버렸을 때
부팅화면 (버전 선택하는 창)에서 'e' → 맨 밑에서 2번 째 줄 변경 : ro→rw, rhgb~ →init=/bin/bash → ctrl+x (저장) → 'passwd' 입력→ exec /sbin/init(적용)
※비밀번호 변경 막기
vi /etc/grub.d/00_header
→맨 밑줄에 추가 :
cat << EOF
set superusers="grubadmin" : 아이디
password grubadmin 1234 : 비밀번호
EOF
→ :wq
→grub-mkconfig-0 /boot/grub2/grub.cfg (적용)
♦ If you forget the administrator password
Change the second line from the boot screen (version selection window) → ro → rw, rhgb~ → init = / bin / bash → ctrl + x (save) → input passwd → exec / sbin / Init (apply)
※ Block password change
vi /etc/grub.d/00_header
→ Add to bottom line:
cat << EOF
set superusers = "grubadmin" : id
password grubadmin 1234 : password
EOF
→: wq
→ grub-mkconfig-0 /boot/grub2/grub.cfg (apply)
♦ Кога ќе заборавиме на администраторска лозинка
Подигање на екранот (прозорец избор верзија) "е" → одат под втората линија се менува: ro → rw, rhgb ~ → init = / bin / bash → Ctrl + X (Зачувај) → "passwd" влез → exec / sbin / init (примени)
※ спречи лозинка промени
vi /etc/grub.d/00_header
cat << EOF
set superusers="grubadmin" : Проект
password grubadmin 1234 : Лозинка
EOF
→: wq
→ grub-mkconfig-0 /boot/grub2/grub.cfg (примени)
♦ 프로세스 출력 : ps
top : 실시간으로 프로세스 보기(3초마다 갱신)
-ef : 모든 프로세스 출력
UID : 사용자
PID : 프로세스 ID
PPID : 부모 PID
C : CPU
STime : 시작 시간
TTY : 터미널
time : 작업시간
cmd : 명령어
♦ Process Output: ps
top: View process in real time (update every 3 seconds)
-ef: all process output
UID: User
PID: Process ID
PPID: parent PID
C: CPU
STime: Start time
TTY: Terminal
Time: Working time
Cmd: command
♦ процесот излез: ps
top: Види процеси во реално време (ажурираат на секои 3 секунди)
-ef: било излез процес
UID: Корисник
PID: ID Процес
PPID: родител PID
C: процесорот
STIME: Почеток
TTY: Терминал
TIME: Работно време
cmd: команда
♦ 프로세스 구조 출력 : pstree
-p : PID 출력
-pn : PID 번호 순서대로 출력
♦ Process structure output: pstree
-p: PID output
-pn: Output in order of PID number
♦ процесот излез структура: pstree
-P: PID излезот
-pn: PID излезот во нумерички редослед
♦ 프로세스 죽이기 : kill [PID]
사용자 죽이기 : killall -U [사용자]
♦ Process kill: kill [PID]
Kill user: killall -U [user]
♦ убие процесот: kill [PID]
Те убие: killall -U [USER]
♦ 접속 사용자 출력 : who
whoami : 내가 접속한 계정
w : 자세한 정보 출력
♦ Connection user output: who
whoami: the account I access
w: Print detailed information
♦ -up корисникот излез: who
whoami: Јас поврзани сметки
w: опширниот излез
♦메세지 보내기 : write [상대 사용자] [터미널 번호]
서버에 메세지 보내기 : wall "OOOOOOOO"
종료 : ctrl+d
♦ Send Message: write [Relative User] [Terminal Number]
Send a message to the server: wall "OOOOOOOO"
Exit: ctrl + d
♦ Испрати порака: write [вашиот противник] Терминал број
Испрати порака до серверот: wall "OOOOOOOO"
Излез: Ctrl + d
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Tuesday, July 4, 2017
[linux] 파티션 나누기 (fdisk), 마운트 Partitioning (fdisk), mount
♦ 파티션 구조
주 파티션 : max=4개
extended 파티션 : max=1개
logical 파티션 : max=매우 많음
※파티션이 5개 이상이면 주 파티션은 3개를 차지하고, 그 외에는 extended 파티션이 공간을 만들어 준다. 그리고 나머지 파티션 2개는 logical 파티션이 차지한다.
ex) 파티션 6개 : 주 파티션 3개. extended 파티션이 4번째 파티션으로 공간을 만들어 준다. 나머지 파티션 3개는 logical 파티션이 5,6,7 번째로 차지한다.
♦ Partition structure
Primary partition: max = 4
Extended partition: max = 1
Logical partition: max = very large
※ If the number of partitions is 5 or more, the main partition occupies 3, and the extended partition makes space. The other two partitions are occupied by the logical partition.
Ex) 6 partitions: 3 primary partitions. The extended partition creates space on the fourth partition. The remaining 3 partitions occupy logical partitions 5, 6, and 7.
♦ hanganga tataitia
Tataitia e te Paraimere: max = 4 kuri
pātaki roa: max = 1 kuri
pātaki arorau: max = Tino iti
※ Ki te arai, ko te rima, neke atu rānei arai tuatahi ni'ai te toru, hanga ana e ia tenei wāhi arai whānui mo te ētahi atu. Na hanga te toe e rua pātaki ake he arai arorau.
ex) arai 6: 3 wiki tataitia. hanga tenei te arai roa rite te wāhi arai tuawha. Ko te toe pātaki e toru, e pātaki arorau noho te 5,6,7 th.
♦ HDD 타입
1. IDE (병렬)
hd+문자 : hda, hdb, hdc(cd-rom), hdd ...
※centos 6로 넘어오면서 없어졌다.
2. SCSI (직렬)
sd+문자 : sda, sdb, sdc, sdd, ...
♦ HDD type
1. IDE (parallel)
Hd + characters: hda, hdb, hdc (cd-rom), hdd ...
※ It disappeared in centos 6.
2. SCSI (serial)
Sd + characters: sda, sdb, sdc, sdd, ...
♦ momo HDD
1. IDE (Whakarara)
hd + kuputuhi: hda, hdb, Toihau (cd-rom), HDD ...
※ i haere mai ahau i runga i ki CentOS 6.
2. SCSI (Serial)
sd + kuputuhi: SDA, sdb, Judges, sdd, ...
♦ 파티션 타입
1. IDE
hd+문자+숫자 : hda1, hda2, ...
2.SCSI
sd+문자+숫자 : sda1, sda2, ...
♦ Partition type
1. IDE
Hd + letters + numbers: hda1, hda2, ...
2.SCSI
Sd + letters + numbers: sda1, sda2, ...
♦ momo o te arai
1. IDE
hd + kuputuhi tau +: hda1, hda2, ...
2.SCSI
sd + kuputuhi tau +: sda1, sda2, ...
♦ 파티션 작업 : fdisk [-옵션] [장치]
-l : 리스트 출력
d : 삭제
n : 생성
ex) n >> 파티션 종류 지정 >> 파티션 번호 지정 >> 시작지점 선택 >> 종료지점 선택(ex) +300M, +2G)
p : 확인
q : 저장하지 않고 종료
w : 저장하고 종료
※logical 만들고는 재부팅
※파티션 만든 후 포맷 : mkfs.xfs [파티션]
♦ Partitioning: fdisk [- option] [device]
-l: List output
d: Delete
n: Create
Ex) n >> Specify partition type >> Specify partition number >> Select start point >> Select end point (ex) + 300M, + 2G)
p: Confirm
q: Exit without saving
w: Save and exit
※ Create logical and reboot
※ After creating partition format: mkfs.xfs [partition]
♦ ngā mahi wawahi: fdisk [- kōwhiringa] [pūrere]
-l: Rārangi putanga
d: Mukua
n: whakaputa
ex) n Tīpakohia te momo tataitia āta >> >> >> taua tataitia tīmata ira Tīpakohia >> ira mutunga (ex) + 300m, + 2G)
p: haamauraa
q: te whakamutu te kore tiaki
w: Whakaorangia me Waiho
※ arorau ki te waihanga reboots
※ pātaki hanga i muri i te hōputu: mkfs.xfs [tataitia]
♦ HDD와 컴퓨터 연결 : mount
mount [장치] [디렉토리] : 연결
umount [장치 혹은 디렉토리] : 연결 해제
mount , df -h : 마운트 확인
♦ HDD to computer connection: mount
mount [device] [directory]: connection
umount [device or directory]: Disconnect
mount, df -h: Mount Verification
♦ HDD me hononga rorohiko: Maunga
mount [pūrere] [whaiaronga]: Hononga
umount [pūrere ranei whaiaronga]: Momotu
mount, df -h: Mount Taki
주 파티션 : max=4개
extended 파티션 : max=1개
logical 파티션 : max=매우 많음
※파티션이 5개 이상이면 주 파티션은 3개를 차지하고, 그 외에는 extended 파티션이 공간을 만들어 준다. 그리고 나머지 파티션 2개는 logical 파티션이 차지한다.
ex) 파티션 6개 : 주 파티션 3개. extended 파티션이 4번째 파티션으로 공간을 만들어 준다. 나머지 파티션 3개는 logical 파티션이 5,6,7 번째로 차지한다.
♦ Partition structure
Primary partition: max = 4
Extended partition: max = 1
Logical partition: max = very large
※ If the number of partitions is 5 or more, the main partition occupies 3, and the extended partition makes space. The other two partitions are occupied by the logical partition.
Ex) 6 partitions: 3 primary partitions. The extended partition creates space on the fourth partition. The remaining 3 partitions occupy logical partitions 5, 6, and 7.
♦ hanganga tataitia
Tataitia e te Paraimere: max = 4 kuri
pātaki roa: max = 1 kuri
pātaki arorau: max = Tino iti
※ Ki te arai, ko te rima, neke atu rānei arai tuatahi ni'ai te toru, hanga ana e ia tenei wāhi arai whānui mo te ētahi atu. Na hanga te toe e rua pātaki ake he arai arorau.
ex) arai 6: 3 wiki tataitia. hanga tenei te arai roa rite te wāhi arai tuawha. Ko te toe pātaki e toru, e pātaki arorau noho te 5,6,7 th.
♦ HDD 타입
1. IDE (병렬)
hd+문자 : hda, hdb, hdc(cd-rom), hdd ...
※centos 6로 넘어오면서 없어졌다.
2. SCSI (직렬)
sd+문자 : sda, sdb, sdc, sdd, ...
♦ HDD type
1. IDE (parallel)
Hd + characters: hda, hdb, hdc (cd-rom), hdd ...
※ It disappeared in centos 6.
2. SCSI (serial)
Sd + characters: sda, sdb, sdc, sdd, ...
♦ momo HDD
1. IDE (Whakarara)
hd + kuputuhi: hda, hdb, Toihau (cd-rom), HDD ...
※ i haere mai ahau i runga i ki CentOS 6.
2. SCSI (Serial)
sd + kuputuhi: SDA, sdb, Judges, sdd, ...
♦ 파티션 타입
1. IDE
hd+문자+숫자 : hda1, hda2, ...
2.SCSI
sd+문자+숫자 : sda1, sda2, ...
♦ Partition type
1. IDE
Hd + letters + numbers: hda1, hda2, ...
2.SCSI
Sd + letters + numbers: sda1, sda2, ...
♦ momo o te arai
1. IDE
hd + kuputuhi tau +: hda1, hda2, ...
2.SCSI
sd + kuputuhi tau +: sda1, sda2, ...
♦ 파티션 작업 : fdisk [-옵션] [장치]
-l : 리스트 출력
d : 삭제
n : 생성
ex) n >> 파티션 종류 지정 >> 파티션 번호 지정 >> 시작지점 선택 >> 종료지점 선택(ex) +300M, +2G)
p : 확인
q : 저장하지 않고 종료
w : 저장하고 종료
※logical 만들고는 재부팅
※파티션 만든 후 포맷 : mkfs.xfs [파티션]
♦ Partitioning: fdisk [- option] [device]
-l: List output
d: Delete
n: Create
Ex) n >> Specify partition type >> Specify partition number >> Select start point >> Select end point (ex) + 300M, + 2G)
p: Confirm
q: Exit without saving
w: Save and exit
※ Create logical and reboot
※ After creating partition format: mkfs.xfs [partition]
♦ ngā mahi wawahi: fdisk [- kōwhiringa] [pūrere]
-l: Rārangi putanga
d: Mukua
n: whakaputa
ex) n Tīpakohia te momo tataitia āta >> >> >> taua tataitia tīmata ira Tīpakohia >> ira mutunga (ex) + 300m, + 2G)
p: haamauraa
q: te whakamutu te kore tiaki
w: Whakaorangia me Waiho
※ arorau ki te waihanga reboots
※ pātaki hanga i muri i te hōputu: mkfs.xfs [tataitia]
♦ HDD와 컴퓨터 연결 : mount
mount [장치] [디렉토리] : 연결
umount [장치 혹은 디렉토리] : 연결 해제
mount , df -h : 마운트 확인
♦ HDD to computer connection: mount
mount [device] [directory]: connection
umount [device or directory]: Disconnect
mount, df -h: Mount Verification
♦ HDD me hononga rorohiko: Maunga
mount [pūrere] [whaiaronga]: Hononga
umount [pūrere ranei whaiaronga]: Momotu
mount, df -h: Mount Taki
[linux] 인터넷에서 패키지 설치하기 (yum) Installing packages from the Internet (yum)
♦인터넷에서 의존성 검색해서 패키지와 같이 설치 : yum
ex) yum (-y) install (--skip) [패키지명]
-y : 질문 하지 않고 진행
--skip : 오류 무시 진행
intall [패키지명] : 설치
provides [패키지명] : 의존성 검색
remove [패키지명] : 삭제 (의존성 문제 생길 수 있으니 rpm으로 삭제 추천)
update : 업데이트
ex) yum update
※유의사항
1. 인터넷 연결되어야 설치되기 때문에 인트라넷이면 따로 패키지를 받아와야 함
2. 비슷한 패키지명 없는 곳에서 실행 ( 그곳부터 검색 후 실행하기 때문이다.)
※도움말 : [명령어] --help 아니면 man [명령어]
♦ Detect dependencies from the internet and install them as packages: yum
Ex) yum (-y) install (--skip) [package name]
-y: progress without asking
--skip: ignore error progress
intall [package name]: install
provides [package name]: dependency search
remove [package name]: delete (rpm is recommended to remove dependency problem)
update: update
Ex) yum update
※Notice
1. It must be connected to the Internet, so if it is an intranet, it should receive package separately
2. Run in a place without a similar package name (because it runs after searching from there).
※ Help: [command] --help or man [command]
अशा पॅकेज, इंटरनेट वर शोध द्वारे प्रतिष्ठापीत ♦ अवलंबीते yum
ex) yum (-y) install (--skip) [संकुल नाव]
-y प्रश्न: केल्याशिवाय पुढे जाण्यासाठी
--skip: प्रगती दुर्लक्ष त्रुटी
[संकुल नाव] install: प्रतिष्ठापन
हे [संकुल नाव] provides: अवलंबून शोध
[संकुल नाव] remove: हटवा (शिफारस rpm हटवा, विश्वास समस्या होऊ शकते)
update: अद्यतने
माजी) yum update
※ सूचना
1. कारण प्रतिष्ठापन इंटरनेट कनेक्ट करणे आवश्यक आहे संकुल स्वतंत्रपणे इंट्रानेट आहे पुनर्प्राप्त
2. ठिकाणी चालवा संकुल लोक न (कारण शोध चालू केल्यानंतर, तेथून.)
मदत ※ [आदेश] --help किंवा man [आदेश]
인터넷을 이용해 패키지 검색후 설치하는 방법
How to find and install packages using the Internet
कसे इंटरनेट वापरत भरपाई नंतर संकुले प्रतिष्ठापित करणे
https://www.youtube.com/watch?v=kNAKbsDWMN8
ex) yum (-y) install (--skip) [패키지명]
-y : 질문 하지 않고 진행
--skip : 오류 무시 진행
intall [패키지명] : 설치
provides [패키지명] : 의존성 검색
remove [패키지명] : 삭제 (의존성 문제 생길 수 있으니 rpm으로 삭제 추천)
update : 업데이트
ex) yum update
※유의사항
1. 인터넷 연결되어야 설치되기 때문에 인트라넷이면 따로 패키지를 받아와야 함
2. 비슷한 패키지명 없는 곳에서 실행 ( 그곳부터 검색 후 실행하기 때문이다.)
※도움말 : [명령어] --help 아니면 man [명령어]
♦ Detect dependencies from the internet and install them as packages: yum
Ex) yum (-y) install (--skip) [package name]
-y: progress without asking
--skip: ignore error progress
intall [package name]: install
provides [package name]: dependency search
remove [package name]: delete (rpm is recommended to remove dependency problem)
update: update
Ex) yum update
※Notice
1. It must be connected to the Internet, so if it is an intranet, it should receive package separately
2. Run in a place without a similar package name (because it runs after searching from there).
※ Help: [command] --help or man [command]
अशा पॅकेज, इंटरनेट वर शोध द्वारे प्रतिष्ठापीत ♦ अवलंबीते yum
ex) yum (-y) install (--skip) [संकुल नाव]
-y प्रश्न: केल्याशिवाय पुढे जाण्यासाठी
--skip: प्रगती दुर्लक्ष त्रुटी
[संकुल नाव] install: प्रतिष्ठापन
हे [संकुल नाव] provides: अवलंबून शोध
[संकुल नाव] remove: हटवा (शिफारस rpm हटवा, विश्वास समस्या होऊ शकते)
update: अद्यतने
माजी) yum update
※ सूचना
1. कारण प्रतिष्ठापन इंटरनेट कनेक्ट करणे आवश्यक आहे संकुल स्वतंत्रपणे इंट्रानेट आहे पुनर्प्राप्त
2. ठिकाणी चालवा संकुल लोक न (कारण शोध चालू केल्यानंतर, तेथून.)
मदत ※ [आदेश] --help किंवा man [आदेश]
인터넷을 이용해 패키지 검색후 설치하는 방법
How to find and install packages using the Internet
कसे इंटरनेट वापरत भरपाई नंतर संकुले प्रतिष्ठापित करणे
https://www.youtube.com/watch?v=kNAKbsDWMN8
[linux]패키지 설치 하기(rpm) Installing the package (rpm)
♦ 패키지 설치 하기 : rpm
-qa | grep [패키지 명] : [패키지]를 가지고 있나 확인
-ivh (--nodeps(의존성 무시)) [패키지.rpm] : [패키지] 설치
-Uvh [패키지.rpm] : [패키지] 업그레이드
-e (--nodeps(의존성 무시))[패키지 명] : [패키지] 삭제
※패키지 명이 MariaDB-client-5.2.5-99.el5.x86_64.rpm 이라면 MariaDB-client까지가 이름 이고 그 다음은 버전 그리고 x86_64는 64bit라는 뜻
※메이저 : 프로그램 완전히 변경 ex)window7,8,9,10
마이너 : 기능에 추가 있을 때
패치 : 패치
릴리즈 : 배포를 몇 번 했나
※유의사항
1.모든 작업은 동일한 버전이어야 한다.
2. 의존성 오류를 무시하면 안된다.
3. 의존성을 제기한 패키지를 먼저 작업한다.
4. 가급적 의존성 무시를 사용하지 말아야 한다.
5. 'lib'으로 시작하고 중간에 '.so'가 있을 경우 무시 가능
6. 디렉토리로 시작하는 것들은 패키지가 아니므로 무시해도 된다.
7. 대표 패키지부터 작업한다. (이름이 가장 짧은 것)
8. 나머지는 화면에 보이는 순서대로 한다.
TIP)'tab'은 경로 자동완성을 해준다.
♦ Installing the package: rpm
-qa | Grep [package name]: Check if you have [package]
-ivh (--nodeps (ignore dependencies)) [Package.rpm]: Installs [package]
-Uvh [package.rpm]: Upgrading [package]
-e (--nodeps (ignore dependencies)) [Package name]: Delete [package]
※ If the package name is MariaDB-client-5.2.5-99.el5.x86_64.rpm, then MariaDB-client is the name, then the version, and x86_64 is 64bit
※ Major: Program completely changed ex) window7,8,9,10
Minor: When there is an addition to the function
Patch: Patch
Release: How many times have you deployed
※Notice
1. All work must be the same version.
2. Do not ignore dependency errors.
3. Work with the package that raised the dependency first.
4. Dependency neglect should not be used whenever possible.
5. Can be ignored if it starts with 'lib' and has '.so' in the middle
6. Beginning with a directory is not a package and can be ignored.
7. Work from the representative package. (The shortest name)
8. Do the rest in the order shown on the screen.
TIP) 'tab' gives path autocompletion.
♦ įdiegti paketą: rpm
-qa | grep [paketo pavadinimas]: Gerai Ar turite [package]
-ivh (--nodeps (atšaukties priklausomybių)) [paketas .rpm]: [paketas] įdiegti
Uvh [paketas .rpm]: [paketas] Atnaujinti
-e (--nodeps (nepaisyti priklausomybių)) [paketo pavadinimas]: [paketas] ištrinti
※ Jei paketo pavadinimas ir MariaDB-client-5.2.5-99.el5.x86_64.rpm į MariaDB-kliento versija ir kitą pavadinimas yra x86_64 reiškia 64bit
※ Specialybė: Programa visiškai pasikeitė ex) window7,8,9,10
Mažosios: Jei norite pridėti funkciją
Pataisa: pleistras
Leidiniai: Kiek kartų platinimą
※ Pranešimas
1. Visi darbai turi būti tos pačios versija.
2. neturėtų ignoruoti priklausomybės nesėkmes.
3. Darbo paketai pirmasis iškėlė priklausomybes.
4. Nenaudokite galimą priklausomybę ignoruojami.
5. Galima prasidedantis raide 'lib "ir ignoruojami jei yra" .Taigi "per vidurį
6. Dalykų, kurie pradėti su katalogą galima ignoruoti, nes tai nėra paketą.
7. Darbas iš atstovą paketus. (Vardas yra trumpiausias)
8. Likusi nes ji pasirodo tokia tvarka ekrane.
PATARIMAS) "lentelėje" leidžia automatinį kelią į užbaigimą.
패키지 설치하는 방법
How to Install Packages
Kaip įdiegti paketus
https://www.youtube.com/watch?v=goLc4-9qxQE
-qa | grep [패키지 명] : [패키지]를 가지고 있나 확인
-ivh (--nodeps(의존성 무시)) [패키지.rpm] : [패키지] 설치
-Uvh [패키지.rpm] : [패키지] 업그레이드
-e (--nodeps(의존성 무시))[패키지 명] : [패키지] 삭제
※패키지 명이 MariaDB-client-5.2.5-99.el5.x86_64.rpm 이라면 MariaDB-client까지가 이름 이고 그 다음은 버전 그리고 x86_64는 64bit라는 뜻
※메이저 : 프로그램 완전히 변경 ex)window7,8,9,10
마이너 : 기능에 추가 있을 때
패치 : 패치
릴리즈 : 배포를 몇 번 했나
※유의사항
1.모든 작업은 동일한 버전이어야 한다.
2. 의존성 오류를 무시하면 안된다.
3. 의존성을 제기한 패키지를 먼저 작업한다.
4. 가급적 의존성 무시를 사용하지 말아야 한다.
5. 'lib'으로 시작하고 중간에 '.so'가 있을 경우 무시 가능
6. 디렉토리로 시작하는 것들은 패키지가 아니므로 무시해도 된다.
7. 대표 패키지부터 작업한다. (이름이 가장 짧은 것)
8. 나머지는 화면에 보이는 순서대로 한다.
TIP)'tab'은 경로 자동완성을 해준다.
♦ Installing the package: rpm
-qa | Grep [package name]: Check if you have [package]
-ivh (--nodeps (ignore dependencies)) [Package.rpm]: Installs [package]
-Uvh [package.rpm]: Upgrading [package]
-e (--nodeps (ignore dependencies)) [Package name]: Delete [package]
※ If the package name is MariaDB-client-5.2.5-99.el5.x86_64.rpm, then MariaDB-client is the name, then the version, and x86_64 is 64bit
※ Major: Program completely changed ex) window7,8,9,10
Minor: When there is an addition to the function
Patch: Patch
Release: How many times have you deployed
※Notice
1. All work must be the same version.
2. Do not ignore dependency errors.
3. Work with the package that raised the dependency first.
4. Dependency neglect should not be used whenever possible.
5. Can be ignored if it starts with 'lib' and has '.so' in the middle
6. Beginning with a directory is not a package and can be ignored.
7. Work from the representative package. (The shortest name)
8. Do the rest in the order shown on the screen.
TIP) 'tab' gives path autocompletion.
♦ įdiegti paketą: rpm
-qa | grep [paketo pavadinimas]: Gerai Ar turite [package]
-ivh (--nodeps (atšaukties priklausomybių)) [paketas .rpm]: [paketas] įdiegti
Uvh [paketas .rpm]: [paketas] Atnaujinti
-e (--nodeps (nepaisyti priklausomybių)) [paketo pavadinimas]: [paketas] ištrinti
※ Jei paketo pavadinimas ir MariaDB-client-5.2.5-99.el5.x86_64.rpm į MariaDB-kliento versija ir kitą pavadinimas yra x86_64 reiškia 64bit
※ Specialybė: Programa visiškai pasikeitė ex) window7,8,9,10
Mažosios: Jei norite pridėti funkciją
Pataisa: pleistras
Leidiniai: Kiek kartų platinimą
※ Pranešimas
1. Visi darbai turi būti tos pačios versija.
2. neturėtų ignoruoti priklausomybės nesėkmes.
3. Darbo paketai pirmasis iškėlė priklausomybes.
4. Nenaudokite galimą priklausomybę ignoruojami.
5. Galima prasidedantis raide 'lib "ir ignoruojami jei yra" .Taigi "per vidurį
6. Dalykų, kurie pradėti su katalogą galima ignoruoti, nes tai nėra paketą.
7. Darbas iš atstovą paketus. (Vardas yra trumpiausias)
8. Likusi nes ji pasirodo tokia tvarka ekrane.
PATARIMAS) "lentelėje" leidžia automatinį kelią į užbaigimą.
패키지 설치하는 방법
How to Install Packages
Kaip įdiegti paketus
https://www.youtube.com/watch?v=goLc4-9qxQE
[linux] 특정 권한 주기, 보기(setfacl, getfacl), 압축(gzip,bzip2,xz), 보관(tar) Give and views specific authority(setfacl, getfacl), compression (gzip, bzip2, xz), archive (tar)
♦ 상세한 권한을 보기 : getfacl
♦ View detailed permissions: getfacl
♦ Méi detailléiert Rechter: getfacl
♦ 특정 권한을 주기 : setfacl
ex)사용자가 다른 사용자에게 파일 접근 권한을 주기
-m : 수정
ex) setfacl -m u:[사용자]:rwx [파일 및 디렉토리]
-x : 삭제 ( 한 개씩 삭제)
ex) setfacl -x u : [사용자] [파일 및 디렉토리]
-b : 초기화
ex) setfacl -b [파일 및 디렉토리]
♦ Give specific permissions: setfacl
Ex) Allow user to grant file access to other users
-m: Modify
Exf) setfacl -m u: [user]: rwx [files and directories]
-x: Delete (delete one by one)
Exf) setfacl -x u: [user] [files and directories]
-b: Initialize
Exf) setfacl -b [files and directories]
♦ ginn spezifesch Permissiounen: setfacl
ex) ginn déi zu anere Benotzer Zougang Permissiounen Benotzer Fichier,
-m: Modifikatioun
ex) setfacl M U: [Benotzer]: rwx [Dateien a Telefonsbicher
-x: geläscht (ee Läschen)
ex) setfacl -x U: [Benotzer] [Fichieren an Telefonsbicher;
-b: initialize
ex) setfacl -b [Dateien a Telefonsbicher
♦압축 : gzip, bzip2, xz [파일]
-d : 압축 풀기
1. 용량이 작다.
2. 원본유지가 안된다.
3. 단일 파일만 압축 가능하다.
♦ Compress: gzip, bzip2, xz [file]
-d: Uncompress
1. Small capacity.
2. The original can not be maintained.
3. Only a single file can be compressed.
♦ Kompriméierungsmethod: gzip, bzip2, xz [Fichier]
-d: alleng
1. Déi kleng Muecht.
2. Mengt behalen net d'Original.
3. Et ass nëmmen eng eenzeg Kompresser am Fichier.
♦보관 : tar [옵션] [보관파일명] [보관시킬 파일]
c: 보관
v: 과정 출력
f: 파일 형태로 만들기
x: 보관 해제
※주로 cvf, xvf를 쓴다.
cvf : 보관
xvf : 보관 해제
tvf : 보관 파일 자세하게 출력
1. 용량이 크다.
2. 원본이 유지된다.
3. 다중파일 보관이 가능하다.
♦ Archive: tar [option] [archive file name] [file to be archived]
c: Archive
v: Process output
f: Make a file
x: Unarchive
※ mainly use cvf, xvf.
cvf: Archive
xvf: Unarchive
tvf: Output archive file in detail
1. Large capacity.
2. The original is maintained.
3. Multiple files can be archived.
♦ Archiv: tar [Optiounen] [Archivdatei] [Fichier ze Archiv
c: Spëntchen
v: Prozess Wasserstoff
f: Créatioun engem Dateiformat
x: Verfollegt ugefaangen
※ schreift allem cvf, xvf.
cvf: Spëntchen
xvf: Verfollegt ugefaangen
tvf: Archiv verbose Wasserstoff
1. grouss Muecht.
2. Dësen Text ass haten.
3. Abberzuel Fichieren kann gespäichert ginn.
♦보관 + 압축 : tar cvf[z(gzip),j(bzip2),J(xz)] [파일이름.tar.[gz,bz2,xz] [소스]
해제 tar xvf[z,j,J] [파일 이름]
디렉토리를 'tar' 하면 보관 해제시 상위 디렉토리로 풀림
ex) /etc/yum 'tar'하면 보관 해제시 /etc로 보관이 풀림
TIP) 원래는 '경로[ex)/usr/bin]/명령어 XXX' 이다
하지만 명령어가 실행파일이기 때문에 편하게 '명령어 XXX'로 쓴다.
♦ Archive + Compress: tar cvf [z (gzip), j (bzip2), J (xz)] [filename.tar.gz, bz2, xz] [source]
Disable tar xvf [z, j, J] [file name]
'tar' the directory and unpack it to the parent directory when unarchiving
Ex) When / etc / yum 'tar' is unarchived, the archive is unpacked to / etc
TIP) is originally 'path [ex] / usr / bin] / command XXX'
However, since the command is an executable file, it is easily written as 'command XXX'.
♦ Stockage + Kompriméierungsmethod :. tar cvf [z (gzip), j (bzip2), J (xz)] [Dateinumm .tar [gz, bz2, xz] [Source]
Ugefaangen tar xvf [z, j, J] [Dateinumm]
Wann de "tar" zu engem Elterendeel Dossier ze Dossier loose op Fräiloossung Archiv
Wann ex) / etc / probéiere "tar" gehaalen loose an / etc op Fräiloossung Archiv
Geheimtipp) ass d'Original "Wee [ex) / usr / bin] / Kommando XXX"
Mä well de Kommando Programm ass, einfach "Kommando XXX" ze schreiwen.
특정 권한을 주기 그리고 압축 및 보관 방법
Give specific permissions. How to compress and archive
Gëff spezifesch Autorisatioun. Kompriméierungsmethod an Stockéieren
https://www.youtube.com/watch?v=dV7xmZPNs8M&t=34s
♦ View detailed permissions: getfacl
♦ Méi detailléiert Rechter: getfacl
♦ 특정 권한을 주기 : setfacl
ex)사용자가 다른 사용자에게 파일 접근 권한을 주기
-m : 수정
ex) setfacl -m u:[사용자]:rwx [파일 및 디렉토리]
-x : 삭제 ( 한 개씩 삭제)
ex) setfacl -x u : [사용자] [파일 및 디렉토리]
-b : 초기화
ex) setfacl -b [파일 및 디렉토리]
♦ Give specific permissions: setfacl
Ex) Allow user to grant file access to other users
-m: Modify
Exf) setfacl -m u: [user]: rwx [files and directories]
-x: Delete (delete one by one)
Exf) setfacl -x u: [user] [files and directories]
-b: Initialize
Exf) setfacl -b [files and directories]
♦ ginn spezifesch Permissiounen: setfacl
ex) ginn déi zu anere Benotzer Zougang Permissiounen Benotzer Fichier,
-m: Modifikatioun
ex) setfacl M U: [Benotzer]: rwx [Dateien a Telefonsbicher
-x: geläscht (ee Läschen)
ex) setfacl -x U: [Benotzer] [Fichieren an Telefonsbicher;
-b: initialize
ex) setfacl -b [Dateien a Telefonsbicher
♦압축 : gzip, bzip2, xz [파일]
-d : 압축 풀기
1. 용량이 작다.
2. 원본유지가 안된다.
3. 단일 파일만 압축 가능하다.
♦ Compress: gzip, bzip2, xz [file]
-d: Uncompress
1. Small capacity.
2. The original can not be maintained.
3. Only a single file can be compressed.
♦ Kompriméierungsmethod: gzip, bzip2, xz [Fichier]
-d: alleng
1. Déi kleng Muecht.
2. Mengt behalen net d'Original.
3. Et ass nëmmen eng eenzeg Kompresser am Fichier.
♦보관 : tar [옵션] [보관파일명] [보관시킬 파일]
c: 보관
v: 과정 출력
f: 파일 형태로 만들기
x: 보관 해제
※주로 cvf, xvf를 쓴다.
cvf : 보관
xvf : 보관 해제
tvf : 보관 파일 자세하게 출력
1. 용량이 크다.
2. 원본이 유지된다.
3. 다중파일 보관이 가능하다.
♦ Archive: tar [option] [archive file name] [file to be archived]
c: Archive
v: Process output
f: Make a file
x: Unarchive
※ mainly use cvf, xvf.
cvf: Archive
xvf: Unarchive
tvf: Output archive file in detail
1. Large capacity.
2. The original is maintained.
3. Multiple files can be archived.
♦ Archiv: tar [Optiounen] [Archivdatei] [Fichier ze Archiv
c: Spëntchen
v: Prozess Wasserstoff
f: Créatioun engem Dateiformat
x: Verfollegt ugefaangen
※ schreift allem cvf, xvf.
cvf: Spëntchen
xvf: Verfollegt ugefaangen
tvf: Archiv verbose Wasserstoff
1. grouss Muecht.
2. Dësen Text ass haten.
3. Abberzuel Fichieren kann gespäichert ginn.
♦보관 + 압축 : tar cvf[z(gzip),j(bzip2),J(xz)] [파일이름.tar.[gz,bz2,xz] [소스]
해제 tar xvf[z,j,J] [파일 이름]
디렉토리를 'tar' 하면 보관 해제시 상위 디렉토리로 풀림
ex) /etc/yum 'tar'하면 보관 해제시 /etc로 보관이 풀림
TIP) 원래는 '경로[ex)/usr/bin]/명령어 XXX' 이다
하지만 명령어가 실행파일이기 때문에 편하게 '명령어 XXX'로 쓴다.
♦ Archive + Compress: tar cvf [z (gzip), j (bzip2), J (xz)] [filename.tar.gz, bz2, xz] [source]
Disable tar xvf [z, j, J] [file name]
'tar' the directory and unpack it to the parent directory when unarchiving
Ex) When / etc / yum 'tar' is unarchived, the archive is unpacked to / etc
TIP) is originally 'path [ex] / usr / bin] / command XXX'
However, since the command is an executable file, it is easily written as 'command XXX'.
♦ Stockage + Kompriméierungsmethod :. tar cvf [z (gzip), j (bzip2), J (xz)] [Dateinumm .tar [gz, bz2, xz] [Source]
Ugefaangen tar xvf [z, j, J] [Dateinumm]
Wann de "tar" zu engem Elterendeel Dossier ze Dossier loose op Fräiloossung Archiv
Wann ex) / etc / probéiere "tar" gehaalen loose an / etc op Fräiloossung Archiv
Geheimtipp) ass d'Original "Wee [ex) / usr / bin] / Kommando XXX"
Mä well de Kommando Programm ass, einfach "Kommando XXX" ze schreiwen.
특정 권한을 주기 그리고 압축 및 보관 방법
Give specific permissions. How to compress and archive
Gëff spezifesch Autorisatioun. Kompriméierungsmethod an Stockéieren
https://www.youtube.com/watch?v=dV7xmZPNs8M&t=34s
[linux] 특수권한(set UID, set GID, sticky bit), umask ,Special permissions (set UID, set GID, sticky bit), umask
♦특수권한 주는 방법
set UID = 4 , set GID = 2, sticjy bit = 1 로 값이 정해져 있다.
numeric method 로 허가권 변경할 때 숫자 앞에 1,2,4 붙여준다.
ex)chmod 4644 [파일 및 디렉토리]
특수 권한을 주었을 때 그 파일 및 디렉토리 허가권을 보면(ll -d 사용)
set UID = user허가권의 'x'가 있으면 s로 'x'가 없으면 S로 바뀜
set GID = group허가권의 'x'가 있으면 s로 'x'가 없으면 S로 바뀜
sticky bit = other허가권의 'x'가 있으면 t로 'x'가 없으면 T로 바뀜
♦ How to Give Special Authorization
Set UID = 4, set GID = 2, and sticjy bit = 1.
When changing permissions with the numeric method, prefix the numbers with 1, 2, and 4.
Ex) chmod 4644 [files and directories]
When you grant that special permission, you see that file and directory permissions (using ll -d)
Set UID = user If there is an 'x' in the permission, s is replaced by S if there is no 'x'
Set GID = group If there is an 'x' in the permission, s is replaced by S if there is no 'x'
Sticky bit = other If there is an 'x' in the permission, the t is replaced by T if there is no 'x'
♦ Cum privilegii speciale
set UID = 4, este determinată de valoarea setată GID = 2, bit sticjy = 1.
Când modificați permisiunile în metoda numerică și a pus în fața numerelor 1.2.4.
ex) chmod 4644 [fișiere și directoare;
Când acordați privilegii speciale să se uite la permisiunile de fișiere și directoare (ll -d Utilizare)
Dacă ați setat uid = utilizator „x“ fără permisiunea „x“ din s înlocuiește cu S
Dacă ați setat GID = „x“ în permisiunile de grup în cazul în care „x“ din s înlocuiește cu S
Un pic lipicios = altele În cazul în care „x“ t în cazul în care nu există nici o permisiune de „x“ înlocuită cu T
♦ sticky bit
ex) chmod 1xxx [파일 및 디렉토리] (소유자만 변경 가능)
sticky bit 권한을 받으면 소유자만 파일 수정이 가능하게 된다.
다른 사람(others)은 수정하거나 지울 수 없다.
♦ sticky bit
Ex) chmod 1xxx [files and directories] (only owner can be changed)
Once the sticky bit is granted, only the owner can modify the file.
Others can not be edited or erased.
♦ bit lipicios
numai ex) 1xxx chmod [File și Directory (schimbat proprietarii)
Atunci când bitul de permisiune lipicios doar proprietarului, este posibil să se modifice acest fișier.
Altele (altele) nu pot fi modificate sau șterse.
♦ set UID
ex) /usr/bin/passwd에 setUID 권한을 빼면(755) 사용자 계정에서 passwd 변경 불가능
※4750으로 허가권을 바꾸면 명령어도 안쳐지게 된다.
♦ set UID
Ex) remove setUID permission from / usr / bin / passwd (755)
※ If you change the license to 4750, the command will not work.
♦ Set UID
Scăzând ex) / usr / bin / drepturi setuid passwd la 755 posibile modificări în contul de utilizator passwd
※ schimba permisiunile pentru 4750 devine, de asemenea, anchyeo comanda.
♦ set GID
파일 및 디렉토리를 만들면 소유권이 그 그룹으로 만들어지게 된다.
♦ set GID
When you create files and directories, ownership is made into that group.
♦ Set GID
Când creați fișiere și directoare devine dreptul de proprietate se face de către grup.
※setUID, setGID 가 디렉토리에 들어간다면 수정할 때 numeric method가 아니라 symbolic method를 이용해서만 바뀌게 된다.
※setUID포함된 파일 출력 : find / -user root -perm /4000
오류 제거 하고 출력 : find / -user root -perm /4000 2> /dev/null
※ If setUID and setGID are entered in the directory, they are changed only by symbolic method, not by numeric method.
※ setUID Included file output: find / -user root -perm / 4000
Remove the error and output: find / -user root -perm / 4000 2> / dev / null
※ setuid, precum și metoda numerică este setgid merge în directorul și să modifice este modificat doar prin utilizarea metodei simbolice.
※ setuid include fișierele de ieșire: find / -user root -perm / 4000
Scoateți eroarea și ieșirile: find / -user root -perm / 4000 2> / dev / null
♦ 파일 및 디렉토리 생성 시 기본적으로 적용될 사용 권한 : umask
※max허가권에서 허가권 빼면 umask
ex)
관리자로 디렉토리 생성 시 허가권 755 : 777-755=022
관리자로 파일 생성 시 허가권 644 : 666-644=022
사용자로 디렉토리 생성 시 허가권 775 : 777-775=002
사용자로 파일 생성 시 허가권 664 : 666-664=002
※파일 생성 시 777은 실행 파일이기 때문에 666이 max이다.
관리자 umask=022
사용자 umask=002
※max허가권에서 umask 빠진 값으로 허가권이 설정 된다.
♦ The default permissions for creating files and directories are: umask
※ If you subtract the license from max permission, umask
Ex)
Permission to create directories as administrator 755: 777-755 = 022
Permission to create file as administrator 644: 666-644 = 022
Permission to create directory as user 775: 777-775 = 002
Permission to create file as user 664: 666-664 = 002
※ When file is created, 777 is executable file, so 666 is max.
Administrator umask = 022
User umask = 002
Permission is set by the value of umask less than max permission.
♦ fișiere și de a crea directoare atunci când se utilizează permisiunile implicite aplicate: umask
※ permisiunea de la scăderea max umask permisiune
ex)
Permisiuni de administrator la directorul creat la 755: 777-755 = 022
Permisiuni de manager de la crearea unui fișier, 644: 666-644 = 022
Când creați un permisiuni de director 775: 777-775 = 002
Permisiunile de utilizator la crearea unui fișier, 664: 666-664 = 002
※ fișierele create atunci când 777 666 este maximă, deoarece fișierul executabil.
Manager de umask = 022
Utilizator umask = 002
※ Această permisiune este setată la umask valori lipsă în permisiunea max.
특수권한 주는 방법
How to Give Special Authorization
Cum de a obține privilegii speciale
https://www.youtube.com/watch?v=htQCSLJwFsU
set UID = 4 , set GID = 2, sticjy bit = 1 로 값이 정해져 있다.
numeric method 로 허가권 변경할 때 숫자 앞에 1,2,4 붙여준다.
ex)chmod 4644 [파일 및 디렉토리]
특수 권한을 주었을 때 그 파일 및 디렉토리 허가권을 보면(ll -d 사용)
set UID = user허가권의 'x'가 있으면 s로 'x'가 없으면 S로 바뀜
set GID = group허가권의 'x'가 있으면 s로 'x'가 없으면 S로 바뀜
sticky bit = other허가권의 'x'가 있으면 t로 'x'가 없으면 T로 바뀜
♦ How to Give Special Authorization
Set UID = 4, set GID = 2, and sticjy bit = 1.
When changing permissions with the numeric method, prefix the numbers with 1, 2, and 4.
Ex) chmod 4644 [files and directories]
When you grant that special permission, you see that file and directory permissions (using ll -d)
Set UID = user If there is an 'x' in the permission, s is replaced by S if there is no 'x'
Set GID = group If there is an 'x' in the permission, s is replaced by S if there is no 'x'
Sticky bit = other If there is an 'x' in the permission, the t is replaced by T if there is no 'x'
♦ Cum privilegii speciale
set UID = 4, este determinată de valoarea setată GID = 2, bit sticjy = 1.
Când modificați permisiunile în metoda numerică și a pus în fața numerelor 1.2.4.
ex) chmod 4644 [fișiere și directoare;
Când acordați privilegii speciale să se uite la permisiunile de fișiere și directoare (ll -d Utilizare)
Dacă ați setat uid = utilizator „x“ fără permisiunea „x“ din s înlocuiește cu S
Dacă ați setat GID = „x“ în permisiunile de grup în cazul în care „x“ din s înlocuiește cu S
Un pic lipicios = altele În cazul în care „x“ t în cazul în care nu există nici o permisiune de „x“ înlocuită cu T
♦ sticky bit
ex) chmod 1xxx [파일 및 디렉토리] (소유자만 변경 가능)
sticky bit 권한을 받으면 소유자만 파일 수정이 가능하게 된다.
다른 사람(others)은 수정하거나 지울 수 없다.
♦ sticky bit
Ex) chmod 1xxx [files and directories] (only owner can be changed)
Once the sticky bit is granted, only the owner can modify the file.
Others can not be edited or erased.
♦ bit lipicios
numai ex) 1xxx chmod [File și Directory (schimbat proprietarii)
Atunci când bitul de permisiune lipicios doar proprietarului, este posibil să se modifice acest fișier.
Altele (altele) nu pot fi modificate sau șterse.
♦ set UID
ex) /usr/bin/passwd에 setUID 권한을 빼면(755) 사용자 계정에서 passwd 변경 불가능
※4750으로 허가권을 바꾸면 명령어도 안쳐지게 된다.
♦ set UID
Ex) remove setUID permission from / usr / bin / passwd (755)
※ If you change the license to 4750, the command will not work.
♦ Set UID
Scăzând ex) / usr / bin / drepturi setuid passwd la 755 posibile modificări în contul de utilizator passwd
※ schimba permisiunile pentru 4750 devine, de asemenea, anchyeo comanda.
♦ set GID
파일 및 디렉토리를 만들면 소유권이 그 그룹으로 만들어지게 된다.
♦ set GID
When you create files and directories, ownership is made into that group.
♦ Set GID
Când creați fișiere și directoare devine dreptul de proprietate se face de către grup.
※setUID, setGID 가 디렉토리에 들어간다면 수정할 때 numeric method가 아니라 symbolic method를 이용해서만 바뀌게 된다.
※setUID포함된 파일 출력 : find / -user root -perm /4000
오류 제거 하고 출력 : find / -user root -perm /4000 2> /dev/null
※ If setUID and setGID are entered in the directory, they are changed only by symbolic method, not by numeric method.
※ setUID Included file output: find / -user root -perm / 4000
Remove the error and output: find / -user root -perm / 4000 2> / dev / null
※ setuid, precum și metoda numerică este setgid merge în directorul și să modifice este modificat doar prin utilizarea metodei simbolice.
※ setuid include fișierele de ieșire: find / -user root -perm / 4000
Scoateți eroarea și ieșirile: find / -user root -perm / 4000 2> / dev / null
♦ 파일 및 디렉토리 생성 시 기본적으로 적용될 사용 권한 : umask
※max허가권에서 허가권 빼면 umask
ex)
관리자로 디렉토리 생성 시 허가권 755 : 777-755=022
관리자로 파일 생성 시 허가권 644 : 666-644=022
사용자로 디렉토리 생성 시 허가권 775 : 777-775=002
사용자로 파일 생성 시 허가권 664 : 666-664=002
※파일 생성 시 777은 실행 파일이기 때문에 666이 max이다.
관리자 umask=022
사용자 umask=002
※max허가권에서 umask 빠진 값으로 허가권이 설정 된다.
♦ The default permissions for creating files and directories are: umask
※ If you subtract the license from max permission, umask
Ex)
Permission to create directories as administrator 755: 777-755 = 022
Permission to create file as administrator 644: 666-644 = 022
Permission to create directory as user 775: 777-775 = 002
Permission to create file as user 664: 666-664 = 002
※ When file is created, 777 is executable file, so 666 is max.
Administrator umask = 022
User umask = 002
Permission is set by the value of umask less than max permission.
♦ fișiere și de a crea directoare atunci când se utilizează permisiunile implicite aplicate: umask
※ permisiunea de la scăderea max umask permisiune
ex)
Permisiuni de administrator la directorul creat la 755: 777-755 = 022
Permisiuni de manager de la crearea unui fișier, 644: 666-644 = 022
Când creați un permisiuni de director 775: 777-775 = 002
Permisiunile de utilizator la crearea unui fișier, 664: 666-664 = 002
※ fișierele create atunci când 777 666 este maximă, deoarece fișierul executabil.
Manager de umask = 022
Utilizator umask = 002
※ Această permisiune este setată la umask valori lipsă în permisiunea max.
특수권한 주는 방법
How to Give Special Authorization
Cum de a obține privilegii speciale
https://www.youtube.com/watch?v=htQCSLJwFsU
Monday, July 3, 2017
[linux] 허가권, 소유권 바꾸기, 브라우저에 텍스트 띄우기 Change permissions, change ownership, and put text in browser
♦허가권
♦ Permission
♦ уступки
d rwx rwx rwx
① ② ③ ④
① 파일 종류
d : 디렉토리
- : 파일
l : 바로가기
b : 블럭 파일
② user [사용자]
r : reading
w : writing
x : excute
③ gruop [그룹]
r : reading
w : writing
x : excute
④ other [그 외 사용자]
r : reading
w : writing
x : excute
※파일에서 'x'없으면 문서파일 'x'있으면 실행파일
※디렉토리에서 'x'는 접근 가능성 판단 ( 'x'가 있어야 읽거나 쓸 수 있다)
※파일 허가권 -r--rw--w- : 다른 사용자는 쓸 수는 있지만 추가만 되고 내용은 볼 수 없다.
① File type
d: directory
- : file
l: shortcut
b: Block file
② user [user]
r: reading
w: writing
x: excute
③ gruop [group]
r: reading
w: writing
x: excute
④ other [other users]
r: reading
w: writing
x: excute
※ If there is no 'x' in the file, the executable file
* In the directory, 'x' is an accessibility judgment ('x' is required to read or write)
※ File permissions -r - rw - w-: Other users can use, but they can only add and can not view the contents.
① Тип файла
d: каталог
-: файл
l: Ярлыки
b: блок файла
② пользователя [пользователь]
г: чтение
ш: письменность
х: преобразования приложений
③ тентовая [Группа]
г: чтение
ш: письменность
х: преобразования приложений
④ другой [другой пользователь;
г: чтение
ш: письменность
х: преобразования приложений
※ Если файл не в «х» документа файл «х» исполняемый
※ В каталоге «х» (вы не можете читать или писать иметь «х») определяет доступность
※ права доступа к файлам -r - RW - W-: другие, но только в состоянии написать дополнительный контент не может рассматриваться.
♦허가권 변경 : chmod
♦ Change permission: chmod
♦ Изменение разрешения: chmod
1. numeric method [숫자 방법]
각 사용자rwx를 순서대로 r=4, w=2, x=1로 한다.
권한을 주고 싶은 것을 다 더한다. [ex) r, x = 4+1=5]
사용자, 그룹, 그 외 사용자 순으로 적는다.
ex) chmod 423 [파일이나 디렉토리]
2. symbolic method [문자 방법]
user=u, group=g, other=o
각 사용자에 권한을 빼거나(-) 더한다(+)
ex) chmod g+rw, u+w, o-w [파일이나 디렉토리]
1. numeric method [number method]
Let r = 4, w = 2, and x = 1 for each user rwx in order.
Add everything you want to give authority. [Ex] r, x = 4 + 1 = 5]
Users, groups, and other users.
Ex) chmod 423 [file or directory]
2. symbolic method [character method]
User = u, group = g, other = o
Remove or add permissions to each user (+)
Ex) chmod g + rw, u + w, o-w [file or directory]
1. Численный метод [Способ номер]
И каждый пользователь RWX до г = 4, W = 2, х = 1 в порядке.
Добавить все, что вы хотите дать разрешение. [Ех) г, х = 4 + 1 = 5]
Написать пользователю, группе и другим пользователям в порядке.
ех) chmod 423 [файл или каталог]
2. символический метод [Как текст]
Пользователь = и, группа = г, = о другом
Удалить разрешения для каждого пользователя (-) или добавить (+)
ех) chmod g + rw, u + ш, о-ш [файл или каталог]n
♦ 브라우저에 텍스트 출력하기
♦ Text output to the browser
♦ Для вывода текста в браузере
1. d드라이브(다른 드라이브도 됨)에 메모장으로 아무 영어 입력 후 index.html로 확장자 바꿔서 저장
2. 브라우저에 리눅스 ip 입력 후 엔터
ftp로 파일 리눅스로 업로드 후 /var/www/html 로 파일 이동
3. 브라우저에서 f5 누르기
※파일에 others 권한에 'r' 없으면 에러 뜸( 다른 사용자가 r(reading)을 할 수 없기 때문이다)
※디렉토리에 others 권한에 'x' 없으면 시작화면만 뜸(접근(x)을 할 수 없으니 읽을(r) 수도 없기 때문이다)
※ftp로그인은 html 디렉토리의 상위 디텍토리에 user권한에서 'x'가 있어야 됨
※ftp 로그인 후 안의 파일 확인하는 것은 html 파일의 상위 디렉토리에 user권한에서 'r'이 있어야 됨
※html 디렉토리로 이동하려면 사용자가 있는 소유권에서 'x'가 있어야 됨
※리눅스로 파일을 업로드 하려면 사용자가 있는 소유권에서 'w'가 있어야 됨
※브라우저에 텍스트 출력 하려면 other 소유권에 'x'가 있어야 됨
1. In d drive (which is another drive), enter any English into Notepad and save it as index.html
2. Enter Linux ip on your browser and press enter
Ftp file upload to linux then move the file to / var / www / html
3. Press f5 in your browser
※ If the file does not have 'r' in the others privilege, it will cause an error (because another user can not read r)
※ If there is no 'x' in the others privilege in the directory, only the start screen is displayed (since it can not access (r) because it can not access (x)
※ ftp login must have 'x' in user authority in parent directory of html directory
※ After ftp login, the user should check 'r' in the parent directory of the html file to check the file inside.
※ To move to the html directory, the user must have 'x' in ownership.
※ To upload a file to Linux, the user must have 'w' in ownership.
※ Text output to browser requires 'x' in other ownership
1. d реверсирование привода (другой привод также) в расширении index.html После того, как блокнот, чтобы сохранить любой английский ввод
2. Enterprise Linux IP вошел в браузере
После загрузки файлов на FTP в Linux / var / www / html файлов для перемещения
3. f5 на браузере Пресс
Если «г» в других ※ разрешения в файл прижигание ошибки (потому что никакие другие не могут быть г (чтение))
※ Если «х» на других прав на каталоги только стартовый экран (потому что также доступны ((г) можно прочитать eopeuni х)) прижигание
※ поиск FTP Логин должен иметь «х» в пользовательских разрешений в родительском каталоге HTML каталога Detective
※ Это нормально, в файле после входа в систему FTP должен иметь «г» в пользовательских разрешений в родительском каталоге HTML-файлов, поиск
※ Для того, чтобы перейти в каталог HTML должен иметь «х» в названии, что поиск пользователя
Для того, чтобы загрузить файл в Linux ※ есть «ш», в котором название пользовательского поиска
※ Для вывода текста в браузере должен иметь «х» в другой категории собственности
♦ 소유권 변경 : chown
♦ Change ownership: chown
♦ смена собственника: chown
-R : 지정한 하위 파일 모두 지정한 사용자, 그룹으로 변경
ex) chown -R linux:linux /directory = directory 하위 파일 모두 소유권이 linux:linux
chown [사용자] : [그룹] [파일이나 디렉토리] = UID, GID 변경
chown [사용자] [파일이나 디렉토리] = UID 변경
chown : [그룹] [파일이나 디렉토리] =GID 변경
chown [사용자] : [파일이나 디렉토리] = UID, GID 똑같은 사용자로 변경
※ ':' 대신 '.' 써도 됨
※ 존재하는 사용자, 그룹으로만 UID나 GID 변경 됨
-R: Change all specified subfiles to specified user or group
Ex) chown -R linux: linux / directory = directory All sub-files have ownership of linux: linux
chown [user]: [group] [file or directory] = change UID, GID
chown [user] [file or directory] = change UID
chown: [group] [file or directory] = change GID
chown [user]: [file or directory] = change UID, GID to same user
※ ':' instead '.' Used
※ UID or GID changed only for existing user or group
-R: изменения все указанного суб-файл, указанные пользователь, группа,
ех) Чаун -R Linux: Linux / каталог = каталог, все к югу от владельца файла Linux: Linux
chown [пользователь]: [группа] [файл или каталог] = UID, GID изменить
chown [пользователь] [файл или каталог] = изменение UID
chown: [группа] [файл или каталог] = GID изменение
chown [Пользователь]: Файл или каталог] = UID, GID изменено тем же пользователем
※ ':' '' Вместо этого. Я использую поиск
※ существующих пользователей, изменения группы, только UID или GID для
허가권 및 소유권 변경, 브라우저에 텍스트 띄우기 동영상
Change of permissions and ownership, text upload to browser
Права доступа и изменения собственности, текст офсет видео в вашем браузере
https://www.youtube.com/watch?v=fag2gngOgvg - Change of permissions, text upload to browser
https://www.youtube.com/watch?v=LxLUyYYRXNc - Change ownership
https://www.youtube.com/watch?v=36TGo2eFxsc -Display browser text using chmod and chown
♦ Permission
♦ уступки
d rwx rwx rwx
① ② ③ ④
① 파일 종류
d : 디렉토리
- : 파일
l : 바로가기
b : 블럭 파일
② user [사용자]
r : reading
w : writing
x : excute
③ gruop [그룹]
r : reading
w : writing
x : excute
④ other [그 외 사용자]
r : reading
w : writing
x : excute
※파일에서 'x'없으면 문서파일 'x'있으면 실행파일
※디렉토리에서 'x'는 접근 가능성 판단 ( 'x'가 있어야 읽거나 쓸 수 있다)
※파일 허가권 -r--rw--w- : 다른 사용자는 쓸 수는 있지만 추가만 되고 내용은 볼 수 없다.
① File type
d: directory
- : file
l: shortcut
b: Block file
② user [user]
r: reading
w: writing
x: excute
③ gruop [group]
r: reading
w: writing
x: excute
④ other [other users]
r: reading
w: writing
x: excute
※ If there is no 'x' in the file, the executable file
* In the directory, 'x' is an accessibility judgment ('x' is required to read or write)
※ File permissions -r - rw - w-: Other users can use, but they can only add and can not view the contents.
① Тип файла
d: каталог
-: файл
l: Ярлыки
b: блок файла
② пользователя [пользователь]
г: чтение
ш: письменность
х: преобразования приложений
③ тентовая [Группа]
г: чтение
ш: письменность
х: преобразования приложений
④ другой [другой пользователь;
г: чтение
ш: письменность
х: преобразования приложений
※ Если файл не в «х» документа файл «х» исполняемый
※ В каталоге «х» (вы не можете читать или писать иметь «х») определяет доступность
※ права доступа к файлам -r - RW - W-: другие, но только в состоянии написать дополнительный контент не может рассматриваться.
♦허가권 변경 : chmod
♦ Change permission: chmod
♦ Изменение разрешения: chmod
1. numeric method [숫자 방법]
각 사용자rwx를 순서대로 r=4, w=2, x=1로 한다.
권한을 주고 싶은 것을 다 더한다. [ex) r, x = 4+1=5]
사용자, 그룹, 그 외 사용자 순으로 적는다.
ex) chmod 423 [파일이나 디렉토리]
2. symbolic method [문자 방법]
user=u, group=g, other=o
각 사용자에 권한을 빼거나(-) 더한다(+)
ex) chmod g+rw, u+w, o-w [파일이나 디렉토리]
1. numeric method [number method]
Let r = 4, w = 2, and x = 1 for each user rwx in order.
Add everything you want to give authority. [Ex] r, x = 4 + 1 = 5]
Users, groups, and other users.
Ex) chmod 423 [file or directory]
2. symbolic method [character method]
User = u, group = g, other = o
Remove or add permissions to each user (+)
Ex) chmod g + rw, u + w, o-w [file or directory]
1. Численный метод [Способ номер]
И каждый пользователь RWX до г = 4, W = 2, х = 1 в порядке.
Добавить все, что вы хотите дать разрешение. [Ех) г, х = 4 + 1 = 5]
Написать пользователю, группе и другим пользователям в порядке.
ех) chmod 423 [файл или каталог]
2. символический метод [Как текст]
Пользователь = и, группа = г, = о другом
Удалить разрешения для каждого пользователя (-) или добавить (+)
ех) chmod g + rw, u + ш, о-ш [файл или каталог]n
♦ 브라우저에 텍스트 출력하기
♦ Text output to the browser
♦ Для вывода текста в браузере
1. d드라이브(다른 드라이브도 됨)에 메모장으로 아무 영어 입력 후 index.html로 확장자 바꿔서 저장
2. 브라우저에 리눅스 ip 입력 후 엔터
ftp로 파일 리눅스로 업로드 후 /var/www/html 로 파일 이동
3. 브라우저에서 f5 누르기
※파일에 others 권한에 'r' 없으면 에러 뜸( 다른 사용자가 r(reading)을 할 수 없기 때문이다)
※디렉토리에 others 권한에 'x' 없으면 시작화면만 뜸(접근(x)을 할 수 없으니 읽을(r) 수도 없기 때문이다)
※ftp로그인은 html 디렉토리의 상위 디텍토리에 user권한에서 'x'가 있어야 됨
※ftp 로그인 후 안의 파일 확인하는 것은 html 파일의 상위 디렉토리에 user권한에서 'r'이 있어야 됨
※html 디렉토리로 이동하려면 사용자가 있는 소유권에서 'x'가 있어야 됨
※리눅스로 파일을 업로드 하려면 사용자가 있는 소유권에서 'w'가 있어야 됨
※브라우저에 텍스트 출력 하려면 other 소유권에 'x'가 있어야 됨
1. In d drive (which is another drive), enter any English into Notepad and save it as index.html
2. Enter Linux ip on your browser and press enter
Ftp file upload to linux then move the file to / var / www / html
3. Press f5 in your browser
※ If the file does not have 'r' in the others privilege, it will cause an error (because another user can not read r)
※ If there is no 'x' in the others privilege in the directory, only the start screen is displayed (since it can not access (r) because it can not access (x)
※ ftp login must have 'x' in user authority in parent directory of html directory
※ After ftp login, the user should check 'r' in the parent directory of the html file to check the file inside.
※ To move to the html directory, the user must have 'x' in ownership.
※ To upload a file to Linux, the user must have 'w' in ownership.
※ Text output to browser requires 'x' in other ownership
1. d реверсирование привода (другой привод также) в расширении index.html После того, как блокнот, чтобы сохранить любой английский ввод
2. Enterprise Linux IP вошел в браузере
После загрузки файлов на FTP в Linux / var / www / html файлов для перемещения
3. f5 на браузере Пресс
Если «г» в других ※ разрешения в файл прижигание ошибки (потому что никакие другие не могут быть г (чтение))
※ Если «х» на других прав на каталоги только стартовый экран (потому что также доступны ((г) можно прочитать eopeuni х)) прижигание
※ поиск FTP Логин должен иметь «х» в пользовательских разрешений в родительском каталоге HTML каталога Detective
※ Это нормально, в файле после входа в систему FTP должен иметь «г» в пользовательских разрешений в родительском каталоге HTML-файлов, поиск
※ Для того, чтобы перейти в каталог HTML должен иметь «х» в названии, что поиск пользователя
Для того, чтобы загрузить файл в Linux ※ есть «ш», в котором название пользовательского поиска
※ Для вывода текста в браузере должен иметь «х» в другой категории собственности
♦ 소유권 변경 : chown
♦ Change ownership: chown
♦ смена собственника: chown
-R : 지정한 하위 파일 모두 지정한 사용자, 그룹으로 변경
ex) chown -R linux:linux /directory = directory 하위 파일 모두 소유권이 linux:linux
chown [사용자] : [그룹] [파일이나 디렉토리] = UID, GID 변경
chown [사용자] [파일이나 디렉토리] = UID 변경
chown : [그룹] [파일이나 디렉토리] =GID 변경
chown [사용자] : [파일이나 디렉토리] = UID, GID 똑같은 사용자로 변경
※ ':' 대신 '.' 써도 됨
※ 존재하는 사용자, 그룹으로만 UID나 GID 변경 됨
-R: Change all specified subfiles to specified user or group
Ex) chown -R linux: linux / directory = directory All sub-files have ownership of linux: linux
chown [user]: [group] [file or directory] = change UID, GID
chown [user] [file or directory] = change UID
chown: [group] [file or directory] = change GID
chown [user]: [file or directory] = change UID, GID to same user
※ ':' instead '.' Used
※ UID or GID changed only for existing user or group
-R: изменения все указанного суб-файл, указанные пользователь, группа,
ех) Чаун -R Linux: Linux / каталог = каталог, все к югу от владельца файла Linux: Linux
chown [пользователь]: [группа] [файл или каталог] = UID, GID изменить
chown [пользователь] [файл или каталог] = изменение UID
chown: [группа] [файл или каталог] = GID изменение
chown [Пользователь]: Файл или каталог] = UID, GID изменено тем же пользователем
※ ':' '' Вместо этого. Я использую поиск
※ существующих пользователей, изменения группы, только UID или GID для
허가권 및 소유권 변경, 브라우저에 텍스트 띄우기 동영상
Change of permissions and ownership, text upload to browser
Права доступа и изменения собственности, текст офсет видео в вашем браузере
https://www.youtube.com/watch?v=fag2gngOgvg - Change of permissions, text upload to browser
https://www.youtube.com/watch?v=LxLUyYYRXNc - Change ownership
https://www.youtube.com/watch?v=36TGo2eFxsc -Display browser text using chmod and chown
Friday, June 30, 2017
[linux] 'useradd' 정보 출력, 사용자 수정, 그룹 수정 'Useradd' Output information, modify user, modify group
♦'useradd' 에 대한 자체 정보 변경 : useradd -D [-옵션]
-g : group 변경
-b : 홈 디렉토리 변경
-f : 기간 만료 후 상태 변경(-1:기능정지, 0:사용정지 n:n일동안 사용)
-e : 만료일 (ex) -e YYYYMMDD)
-s : shell 변경
※skel은 'vi /etc/default/useradd' 로 문서 안에 들어가 편집을 해야됨
♦ Change own information for 'useradd': useradd -D [--option]
-g: change group
-b: Change home directory
-f: Change the status after the expiration of the period (-1: Function stop, 0: Stop use n: Use for n days)
-e: Expiration date (ex) -e YYYYMMDD)
-s: change shell
※ skel should be edited in 'vi / etc / default / useradd' document
Mutata in informationem de ♦ 'useradd': useradd -D [- options]
-g, coetus mutationes
-b, mutare domo Directory
-f: tempus mutatio status post terminum (I: subsisto munus, 0, n suspensus: quia usus est dies n)
-e: Expiration Date (ex) -e YYYYMMDD)
-s: mutantur testa
Et intravit sicut scriptum est in Skel ※ edit 'v / etc / default / useradd, quaerere
♦ 사용자 수정 : usermod [-옵션]
-l : 사용자 변경 ( 사용자를 변경하면 그 하위 파일 까지 변경해야됨)
-p : 비밀번호 변경( 이 방식으로 변경하면 평문으로 비밀번호가 설정됨, 'passwd' 추천)
-u : UID 변경
-g : group 변경
-G : group 추가
-c : comment 변경
-d : 홈 경로 변경 ( 디렉토리 이름이 다르면 최상위로 가기 때문에 디렉토리 이름도 맞춰줘야 함)
-s : shell 변경
♦ Modify User: usermod [- option]
-l: Change the user (if you change the user, you need to change the child file)
-p: Change your password (if you change this way, your password will be set to plain, 'passwd' recommended)
-u: Change UID
-g: change group
-G: add group
-c: change comment
-d: Change the home path (if the directory name is different, the directory name should be changed because it goes to the top)
-s: change shell
Temperare ♦ User: usermod [- options]
-l: Mos (si mutavit mutantur in user ut quaero lima usque ad sub-)
-p: password (si mutata password est quod hoc modo set sicut patet illud, 'passwd, commendaticiis)
-u: mutatio UID
-g, coetus mutationes
-G: coetus additae
-c: comment Mutare
-d: Domus iter mutationes (ex a diversus presul ut etiam nomen nomina Directory Ad summo, ut par est)
-s : mutantur testa
♦ 사용자 삭제 : userdel [사용자]
-r : 모든 정보 데이터 삭제
※userdel [사용자] : $home, mail은 삭제 안하고 '/etc'만 삭제
♦ Delete User: userdel [user]
-r: Delete all information data
※ userdel [user]: do not delete $ home, mail and delete only '/ etc'
♦ 그룹 생성 : groupadd [그룹]
-g : 그룹번호 지정
※그룹 번호 지정 후 다음 그룹을 생성하면 가장 큰 그룹번호 다음번호로 생성
ex) 1003, 1300, 1020 순으로 그룹을 생성하면 다음 그룹번호는 1301
♦ Create group: groupadd [group]
-g: Specify group number
※ If you create the next group after specifying the group number,
Ex) 1003, 1300, and 1020, the next group number is 1301
Create ♦ Group: groupadd [Group]
-g: Specifies coetus in numerus
※ coetus cum proximo post partum loco designato numerus coetus, coetus numerum, et numerum generat maxima
Cum tu creare est ex coetus) MIII, MCCC, in quo MXX iuxta numerum coetus MCCCI
♦ 그룹 삭제 : groupdel [그룹]
♦ Delete group: groupdel [group]
Delere ♦ Group: groupdel [Group]
♦ 사용자의 소유권(사용자, 그룹) 정보 출력 : id [사용자]
♦ User ownership (user, group) information output: id [user]
♦ user dominio (users, coetus) output notitia: id [user]
사용자와 그룹 수정 방법
How to modify users and groups
Ut users ut modify atque coetibus
https://www.youtube.com/watch?v=ZNr7YFmUEmk < useradd -D
https://www.youtube.com/watch?v=Zg7tgmc8IuU < usermod, groupadd
-g : group 변경
-b : 홈 디렉토리 변경
-f : 기간 만료 후 상태 변경(-1:기능정지, 0:사용정지 n:n일동안 사용)
-e : 만료일 (ex) -e YYYYMMDD)
-s : shell 변경
※skel은 'vi /etc/default/useradd' 로 문서 안에 들어가 편집을 해야됨
♦ Change own information for 'useradd': useradd -D [--option]
-g: change group
-b: Change home directory
-f: Change the status after the expiration of the period (-1: Function stop, 0: Stop use n: Use for n days)
-e: Expiration date (ex) -e YYYYMMDD)
-s: change shell
※ skel should be edited in 'vi / etc / default / useradd' document
Mutata in informationem de ♦ 'useradd': useradd -D [- options]
-g, coetus mutationes
-b, mutare domo Directory
-f: tempus mutatio status post terminum (I: subsisto munus, 0, n suspensus: quia usus est dies n)
-e: Expiration Date (ex) -e YYYYMMDD)
-s: mutantur testa
Et intravit sicut scriptum est in Skel ※ edit 'v / etc / default / useradd, quaerere
♦ 사용자 수정 : usermod [-옵션]
-l : 사용자 변경 ( 사용자를 변경하면 그 하위 파일 까지 변경해야됨)
-p : 비밀번호 변경( 이 방식으로 변경하면 평문으로 비밀번호가 설정됨, 'passwd' 추천)
-u : UID 변경
-g : group 변경
-G : group 추가
-c : comment 변경
-d : 홈 경로 변경 ( 디렉토리 이름이 다르면 최상위로 가기 때문에 디렉토리 이름도 맞춰줘야 함)
-s : shell 변경
♦ Modify User: usermod [- option]
-l: Change the user (if you change the user, you need to change the child file)
-p: Change your password (if you change this way, your password will be set to plain, 'passwd' recommended)
-u: Change UID
-g: change group
-G: add group
-c: change comment
-d: Change the home path (if the directory name is different, the directory name should be changed because it goes to the top)
-s: change shell
Temperare ♦ User: usermod [- options]
-l: Mos (si mutavit mutantur in user ut quaero lima usque ad sub-)
-p: password (si mutata password est quod hoc modo set sicut patet illud, 'passwd, commendaticiis)
-u: mutatio UID
-g, coetus mutationes
-G: coetus additae
-c: comment Mutare
-d: Domus iter mutationes (ex a diversus presul ut etiam nomen nomina Directory Ad summo, ut par est)
-s : mutantur testa
♦ 사용자 삭제 : userdel [사용자]
-r : 모든 정보 데이터 삭제
※userdel [사용자] : $home, mail은 삭제 안하고 '/etc'만 삭제
♦ Delete User: userdel [user]
-r: Delete all information data
※ userdel [user]: do not delete $ home, mail and delete only '/ etc'
Delere ♦ user: userdel [user]
-r: omnia delete notitia ex notitia
※ userdel [users]: $ domum suam: et deleta mail delere solum facere '/ etc'
-r: omnia delete notitia ex notitia
※ userdel [users]: $ domum suam: et deleta mail delere solum facere '/ etc'
-g : 그룹번호 지정
※그룹 번호 지정 후 다음 그룹을 생성하면 가장 큰 그룹번호 다음번호로 생성
ex) 1003, 1300, 1020 순으로 그룹을 생성하면 다음 그룹번호는 1301
♦ Create group: groupadd [group]
-g: Specify group number
※ If you create the next group after specifying the group number,
Ex) 1003, 1300, and 1020, the next group number is 1301
Create ♦ Group: groupadd [Group]
-g: Specifies coetus in numerus
※ coetus cum proximo post partum loco designato numerus coetus, coetus numerum, et numerum generat maxima
Cum tu creare est ex coetus) MIII, MCCC, in quo MXX iuxta numerum coetus MCCCI
♦ 그룹 삭제 : groupdel [그룹]
♦ Delete group: groupdel [group]
Delere ♦ Group: groupdel [Group]
♦ 사용자의 소유권(사용자, 그룹) 정보 출력 : id [사용자]
♦ User ownership (user, group) information output: id [user]
♦ user dominio (users, coetus) output notitia: id [user]
사용자와 그룹 수정 방법
How to modify users and groups
Ut users ut modify atque coetibus
https://www.youtube.com/watch?v=ZNr7YFmUEmk < useradd -D
https://www.youtube.com/watch?v=Zg7tgmc8IuU < usermod, groupadd
[linux] 사용자 정보 파일, 사용자 추가(useradd), User information file, add user (useradd)
♦사용자 추가하면 생기는 정보 파일 및 디렉토리
사용자 : 비밀번호 : UID(사용자) : GID(그룹) : comment : home 경로 : shell(명령어 해석기)
※cat /etc/shells : shell의 종류들
/bin/sh : 최초로 개발된 쉘 , 복구 기본 쉘
/bin/bash : 리눅스에서 사용 많이 함. 오픈소스 쉘
/sbin/nologin : 로그인 안되는것, 시스템 쉘
/bin/csh : c쉘, c언어 전용
/bin/tcsh : 확장 c 쉘, java 확장 기능 쉘
2. /etc/shadow
사용자 : $암호화종류$$비밀번호 암호화 : 비밀번호 변경일자(1970.1.1 부터 경과 일 수) : 변경 가능 일 : 사용 가능 일 : 비밀번호 만료 경고 일 : 만료후 계정 상태 : 만료일지정 :
3. /etc/group
그룹명: 비밀번호 : GID : 사용자 멤버
4. /etc/gshadow
그룹명 : 비밀번호::멤버:
※vi /etc/login.defs : 사용자 정보파일 수정
GID,UID = 1000~6000
sys GID, sys UID = 201~999
※/etc/skel 안에 파일을 넣으면, 사용자 생성 시 파일 넣은 상태로 생성
skel 디렉토리 복사 시 숨김 파일도 복사해서 옮겨야 됨
♦ Information files and directories created when users are added
1. /etc/passwd
User: password: UID (user): GID (group): comment: home path: shell (command interpreter)
※ cat / etc / shells: Types of shell
/ Bin / sh: originally developed shell, recovery default shell
/ Bin / bash: Used mostly by Linux. Open source shell
/ Sbin / nologin: not logged in, system shell
/ Bin / csh: c shell, c language only
/ Bin / tcsh: extended c shell, java extension shell
2. / etc / shadow
User: $ Encryption Type $$ Password Encryption: Date of password change (days since 1970.1.1): Changeable Date: Availability Date: Password Expiration Warning Date: Account status after expiration:
3. In the / etc / group
Group Name: Password: GID: User Member
4. / etc / gshadow
Group Name: Password :: Member:
※ vi /etc/login.defs: Modify user information file
GID, UID = 1000 ~ 6000
Sys GID, sys UID = 201 ~ 999
* If you put a file in / etc / skel,
When skel directory is copied, hidden files should also be copied and moved.
♦ Pievienojot lietotāju radīts informācijas failus un direktorijas
1./etc/passwd
Lietotājs: Parole: UID (User): GID (grupa): Komentārs: māja ceļš: shell (komandu tulks)
※ cat / etc / shells: No čaulas veids
/ Bin / sh: pirmais izstrādāt apvalks, noklusējuma apvalks atgūšana
/ Bin / bash: arī parasti izmanto Linux. Open Source Shell
/ Sbin / nologin: jums nevajadzētu ieiet, sistēma apvalks
Tikai c apvalks, c valoda: / Bin / CSH
/ Bin / elm: paplašināt c čaulu, java čaulas paplašinājumu
2. / etc / shadow
Lietotājs: $ $$ šifrēšanas tips šifrēšanas parole (var tikt pieņemts, jo 1970/01/01) Password Change Datums: Sun mainīgs: Pieejams: Parole derīguma brīdinājuma dienas: Konta statuss termiņš: Derīguma precizēts:
3. / etc / group
Grupas nosaukums: parole: GID: Lietotāja locekļi
4. / etc / gshadow
Grupas Lietotājvārds: Parole: Locekļi:
※ vi /etc/login.defs: Mainīt lietotāja informācijas failu
GID, UID = 1000 ~ 6000
GID sis, sis UID = 201 ~ 999
※ / etc / skel nodot failu, izveidot failu, ja jums izveidot lietotājs stāvoklī
Rādīt slēptos failus, kopējot skel direktoriju arī tiek pārvietots ar kopiju
♦사용자 추가 : useradd [옵션] [사용자]
-u [ ]: UID
-g [ ]: GID
-c [ ]: commnet
-d [ ]: 홈 경로
-s [ ]: shell
-mk [ ]: 사용자 지정 skel
♦ Add User: useradd [options] [user]
-u []: UID
-g []: GID
-c []: commnet
-d []: Home path
-s []: shell
-mk []: Custom skel
♦ Pievienot lietotāju: useradd [iespējas] [user]
-u []: UID
-g []: GID
-c []: commnet
-d []: Mājas ceļš
-s []: apvalks
-mk []: Custom skel
♦비밀번호 바꾸기 : passwd (사용자)
♦ Change password: passwd (user)
♦ Mainīt paroli: passwd (lietotājs)
'useradd' 사용방법
How to use 'useradd'
Kā lietot 'useradd'
https://www.youtube.com/watch?v=GPiauVARdto&t=43s
- /etc/passwd : 사용자 정보 파일
- /etc/shadow : 사용자 비밀번호
- /etc/group : 그룹
- /etc/gshadow : 그룹 비밀번호
- /home/~ : 사용자 파일
- /var/spool/mail : 메일
사용자 : 비밀번호 : UID(사용자) : GID(그룹) : comment : home 경로 : shell(명령어 해석기)
※cat /etc/shells : shell의 종류들
/bin/sh : 최초로 개발된 쉘 , 복구 기본 쉘
/bin/bash : 리눅스에서 사용 많이 함. 오픈소스 쉘
/sbin/nologin : 로그인 안되는것, 시스템 쉘
/bin/csh : c쉘, c언어 전용
/bin/tcsh : 확장 c 쉘, java 확장 기능 쉘
2. /etc/shadow
사용자 : $암호화종류$$비밀번호 암호화 : 비밀번호 변경일자(1970.1.1 부터 경과 일 수) : 변경 가능 일 : 사용 가능 일 : 비밀번호 만료 경고 일 : 만료후 계정 상태 : 만료일지정 :
3. /etc/group
그룹명: 비밀번호 : GID : 사용자 멤버
4. /etc/gshadow
그룹명 : 비밀번호::멤버:
※vi /etc/login.defs : 사용자 정보파일 수정
GID,UID = 1000~6000
sys GID, sys UID = 201~999
※/etc/skel 안에 파일을 넣으면, 사용자 생성 시 파일 넣은 상태로 생성
skel 디렉토리 복사 시 숨김 파일도 복사해서 옮겨야 됨
♦ Information files and directories created when users are added
- / etc / passwd: user information file
- / etc / shadow: user password
- / etc / group: group
- / etc / gshadow: group password
- / home / ~: user file
- / var / spool / mail: mail
1. /etc/passwd
User: password: UID (user): GID (group): comment: home path: shell (command interpreter)
※ cat / etc / shells: Types of shell
/ Bin / sh: originally developed shell, recovery default shell
/ Bin / bash: Used mostly by Linux. Open source shell
/ Sbin / nologin: not logged in, system shell
/ Bin / csh: c shell, c language only
/ Bin / tcsh: extended c shell, java extension shell
2. / etc / shadow
User: $ Encryption Type $$ Password Encryption: Date of password change (days since 1970.1.1): Changeable Date: Availability Date: Password Expiration Warning Date: Account status after expiration:
3. In the / etc / group
Group Name: Password: GID: User Member
4. / etc / gshadow
Group Name: Password :: Member:
※ vi /etc/login.defs: Modify user information file
GID, UID = 1000 ~ 6000
Sys GID, sys UID = 201 ~ 999
* If you put a file in / etc / skel,
When skel directory is copied, hidden files should also be copied and moved.
♦ Pievienojot lietotāju radīts informācijas failus un direktorijas
- / etc / passwd: Lietotāja informācija faili
- / etc / shadow: lietotāja parole
- / etc / group: Group
- / etc / gshadow: Group Paroles
- / home / ~: lietotāja faili
- / var / spool / mail: e-pasts
1./etc/passwd
Lietotājs: Parole: UID (User): GID (grupa): Komentārs: māja ceļš: shell (komandu tulks)
※ cat / etc / shells: No čaulas veids
/ Bin / sh: pirmais izstrādāt apvalks, noklusējuma apvalks atgūšana
/ Bin / bash: arī parasti izmanto Linux. Open Source Shell
/ Sbin / nologin: jums nevajadzētu ieiet, sistēma apvalks
Tikai c apvalks, c valoda: / Bin / CSH
/ Bin / elm: paplašināt c čaulu, java čaulas paplašinājumu
2. / etc / shadow
Lietotājs: $ $$ šifrēšanas tips šifrēšanas parole (var tikt pieņemts, jo 1970/01/01) Password Change Datums: Sun mainīgs: Pieejams: Parole derīguma brīdinājuma dienas: Konta statuss termiņš: Derīguma precizēts:
3. / etc / group
Grupas nosaukums: parole: GID: Lietotāja locekļi
4. / etc / gshadow
Grupas Lietotājvārds: Parole: Locekļi:
※ vi /etc/login.defs: Mainīt lietotāja informācijas failu
GID, UID = 1000 ~ 6000
GID sis, sis UID = 201 ~ 999
※ / etc / skel nodot failu, izveidot failu, ja jums izveidot lietotājs stāvoklī
Rādīt slēptos failus, kopējot skel direktoriju arī tiek pārvietots ar kopiju
♦사용자 추가 : useradd [옵션] [사용자]
-u [ ]: UID
-g [ ]: GID
-c [ ]: commnet
-d [ ]: 홈 경로
-s [ ]: shell
-mk [ ]: 사용자 지정 skel
♦ Add User: useradd [options] [user]
-u []: UID
-g []: GID
-c []: commnet
-d []: Home path
-s []: shell
-mk []: Custom skel
♦ Pievienot lietotāju: useradd [iespējas] [user]
-u []: UID
-g []: GID
-c []: commnet
-d []: Mājas ceļš
-s []: apvalks
-mk []: Custom skel
♦비밀번호 바꾸기 : passwd (사용자)
♦ Change password: passwd (user)
♦ Mainīt paroli: passwd (lietotājs)
'useradd' 사용방법
How to use 'useradd'
Kā lietot 'useradd'
https://www.youtube.com/watch?v=GPiauVARdto&t=43s
[linux] 문서 편집(vi) (2), Edit document (vi) (2)
♦vi명령어
/ [단어], ? [단어] : [단어] 찾기 n: 다음, 이전 N : 이전, 단어
:n : n행으로 이동
:set nu : 행 번호 추가
:set nonu : 행 번호 삭제
: [범위(ex)11,14)] s/ [old] / [new] : 치환
:% s / [old] / [new] : 문서 전체 치환
: s / [old] / [new] / g : 행에 있는 문자 모두 치환
: ! [명령어] : vi 잠시 중단하고 명령어 실행
: . ! [명령어] : 현재 위치에 명령어 출력
ctrl + w+n : 문서 화면 수평 나누기
ctrl + w+w : 창간의 이동
ctrl + w+o : 커서 위치 창 제외 모든 창 닫기
:f : 파일 정보
:e [파일] : 불러오기
:enew : 새 문서 열기
:w [경로] : 저장
:wq : 저장 후 종료
:w >> ./a : 'a'에 현재 내용 추가
:n r [파일] : n행 밑에 파일 내용 삽입
:n r! [명령어] : n행 밑에 명령 내용 삽입
♦ vi Command
/ [word], ? [Word]: [word] find n: next, previous N: previous, word
: n : Go to line n
: Set nu : add line number
: Set nonu: delete line number
: [Range (ex) 11,14)] s / [old] / [new]: Substitution
:% s / [old] / [new] : Replace entire document
: s / [old] / [new] / g: replace all characters in a line
:! [Command]: vi Abort and execute command
:. ! [Command]: Output the command at the current position
Ctrl + w + n: horizontal division of the document screen
Ctrl + w + w: move between windows
Ctrl + w + o: Close all windows except cursor location window
: f: file information
: e [File]: Import
: enew: Open a new document
: w [path]: Save
: wq: Save and exit
: w >> ./a: Add current content to 'a'
: n r [file]: Insert file content under line n
: n r! [Command]: Insert command content under line n
♦ Vi Kommando
/ [ord],? [Ord]: [ord] find n: næste, forrige N: forrige, ord
: n: n Flyt til række
: set nu: Tilføj linjenumre
: set nonu: Slet linjenummer
: Range (ex) 11,14)] s / [gammel] / [ny]: substitueret
:% s / [gammel] / [ny]: hele dokumentet udskiftet
: s / [old] / [new] / g: erstat alle tegn i en linje
:! [Kommando]: VI pause og køre kommandoen
:. ! [Kommando]: output kommandoer til en aktuel placering
Ctrl + w + n: Dokumenterne screene vandret opdeling
Ctrl + w + w: Flyt mellem vinduer
Ctrl + w + o: Luk alle vinduer undtagen for markørens position
: f: filoplysninger
: e [File: Import
: enew: Åbn et nyt dokument
: w [sti]: Opbevaring
: wq: Gem og Afslut
: w >> ./a: tilføje det aktuelle indhold i 'a'
: n r [file]: n Indsæt fil indhold under træk
: n r! [Kommando]: Command information indsat under række n
추가 vi사용법
Additional vi usage
Vi Yderligere forbrug
Thursday, June 29, 2017
[linux] 서버 종료(shutdown), 문서 편집(vi)(1) Server shutdown(shutdown), Edit document(vi) (1)
♦ 시스템 종료 : shutdown -h now 혹은 init 0 혹은 halt 혹은 poweroff
-h +10 : 10분 뒤에 종료
-c : 종료 취소
-h "xxxxx" : "xxxx" 공지 후 종료
-r now 혹은 init 6 혹은 reboot : 시스템 재시작
♦ Shutdown: shutdown -h now or init 0 or halt or poweroff
-h +10: ends in 10 minutes
-c: Cancel exit
-h "xxxxx": Announcement after "xxxx" notice
-r now or init 6 or reboot: Restart the system
♦ Nedlukning: shutdown -h nu eller init 0 eller standse eller nedlukning
-h 10: holde op efter 10 minutter
-c: Afslut Annuller
-h "xxxxx": "xxxx" efter opsigelsen
-r now eller init 6 eller reboot: Genstart systemet
♦ 문서 편집 : vi [파일명]
edit →→→(ESC) comman mode ←←←(ESC) command line mode
←←←(i,I,a,A,o,O) →→→(:/ ,:?)
w : 1. 단어의 처음으로 이동
W 2. 왼쪽에서 오른쪽으로 이동
3. 공백 인식
4. 특수 기호 인식
b : 1. 단어의 처음으로 이동
B 2. 오른쪽에서 왼쪽으로 이동
3. 공백 인식
4. 특수 기호 인식
e : 1. 단어의 끝으로 이동
E 2. 왼쪽에서 오른쪽으로 이동
3. 공백 인식
4. 특수 기호 인식
0,^ : 문장의 처음으로 이동
$ : 문장의 끝으로 이동
gg, [[ : 문서의 처음으로 이동
G, ]] : 문서의 마지막으로 이동
H , M , L : 순서대로 문서의 처음, 중간, 마지막으로 이동
m+ a~z : 책갈피 적용
` + 지정한 키 : 책갈피로 이동
`` : 원위치
♦ Edit document: vi [filename]
Edit →→→ (ESC) comman mode ←←← (ESC) command line mode
←←← (i, I, a, A, o, O) →→→ (: /,:?)
w: 1. Move to beginning of word
W 2. Left to right
3. Space recognition
4. Special Symbol Recognition
b: 1. Move to beginning of word
B 2. Move from right to left
3. Space recognition
4. Special Symbol Recognition
e: 1. Move to the end of the word
E 2. Move left to right
3. Space recognition
4. Special Symbol Recognition
0, ^: Move to beginning of sentence
$ : Move to end of sentence
gg, [[ : Move to beginning of document
G, ]] : Go to the end of the document
H, M, L: Move to beginning, middle, and end of document in order
m + a ~ z: Apply bookmark
`+ Specified key: go to bookmark
``: Home
s: Delete current cursor
S: Delete current line
u: undo
Ctrl + r: Cancel undo
r: When changing a character
R: Overwrite (initial value at backspace)
x: delete (backspace if there is no erasure)
X: backspace
dd: Delete the line itself
n + dd: Delete n lines
D, d + $: Delete cursor right statement
yy: Copying the current line
n + yy: Copying n lines from the current line
p: Paste under cursor
P: Paste on cursor
d + e, d + E: Clear word
y + e: Copy word
♦ dokumentredigering: vi [filnavn]
redigere →→→ (ESC) comman tilstand ←←←(ESC) kommandolinjetilstand
←←← (i, I, a, A, o, O) →→→ (: /,:?)
w: 1. Gå til begyndelsen af ordet
W 2. Flytning fra venstre mod højre
3. Plads Anerkendelse
4. anerkender særlige symboler
b: 1. Gå til begyndelsen af ordet
B 2. Flytning fra højre mod venstre
3. Plads Anerkendelse
4. anerkender særlige symboler
e: 1. Gå til slutningen af et ord
E 2. Flytning fra venstre mod højre
3. Plads Anerkendelse
4. anerkender særlige symboler
0, ^: Gå til starten af sætningen
$: Flyt til slutningen af sætningen
gg, [[ : Gå til begyndelsen af dokumentet
G,]] : hoppe til slutningen af dokumentet
H, M, L: I begyndelsen, i midten af dokumentet i den rækkefølge, og endelig flytte
m + a ~ z: bogmærke ansøgning
`+ Angivet nøgle: Gå til bogmærke
``: In situ
s: slette det aktuelle markør
S: Slet den aktuelle linje
u: Undo
ctrl + r : Annuller Fortryd
r: Når du ændrer markøren et tegn
R: Overskriv (startværdi når tilbage)
x: Slet (slette bogstaver, hvis backspace)
X: backspace
dd: Slet rækker selv
n + dd: n Fjern række
D, d + $: Slet sætning markøren til højre
yy: kopiere den aktuelle linje
n + yy : kopiere fra den aktuelle række n rækker
p: Sæt ind for at indsætte markøren under
P: Indsæt markøren over
d + e, d + E: Slet ordet
y + e: Kopier ord
vi실행 보고 싶다면
If you want to see vi running
VI Hvis du ønsker at se kørende
https://www.youtube.com/watch?v=IsMqClwVO0E
-h +10 : 10분 뒤에 종료
-c : 종료 취소
-h "xxxxx" : "xxxx" 공지 후 종료
-r now 혹은 init 6 혹은 reboot : 시스템 재시작
♦ Shutdown: shutdown -h now or init 0 or halt or poweroff
-h +10: ends in 10 minutes
-c: Cancel exit
-h "xxxxx": Announcement after "xxxx" notice
-r now or init 6 or reboot: Restart the system
♦ Nedlukning: shutdown -h nu eller init 0 eller standse eller nedlukning
-h 10: holde op efter 10 minutter
-c: Afslut Annuller
-h "xxxxx": "xxxx" efter opsigelsen
-r now eller init 6 eller reboot: Genstart systemet
♦ 문서 편집 : vi [파일명]
edit →→→(ESC) comman mode ←←←(ESC) command line mode
←←←(i,I,a,A,o,O) →→→(:/ ,:?)
w : 1. 단어의 처음으로 이동
W 2. 왼쪽에서 오른쪽으로 이동
3. 공백 인식
4. 특수 기호 인식
b : 1. 단어의 처음으로 이동
B 2. 오른쪽에서 왼쪽으로 이동
3. 공백 인식
4. 특수 기호 인식
e : 1. 단어의 끝으로 이동
E 2. 왼쪽에서 오른쪽으로 이동
3. 공백 인식
4. 특수 기호 인식
0,^ : 문장의 처음으로 이동
$ : 문장의 끝으로 이동
gg, [[ : 문서의 처음으로 이동
G, ]] : 문서의 마지막으로 이동
H , M , L : 순서대로 문서의 처음, 중간, 마지막으로 이동
m+ a~z : 책갈피 적용
` + 지정한 키 : 책갈피로 이동
`` : 원위치
s : 현재 커서 삭제
S : 현재 줄 삭제
u : 실행 취소
ctrl + r : 실행 취소를 취소
r : 커서 한 글자 바꿀 때
R : 덮어 쓰기 (backspace 시 초기값)
x : delete (지울 글자 없으면 backspace)
X : backspace
dd : 행 자체 삭제
n+dd : n행삭제
D , d+$ : 커서 오른쪽 문장 삭제
yy : 현재 행 복사
n+yy : 현재 행부터 n행 복사하기
p : 커서 아래에 붙여 넣기
P : 커서 위에 붙여 넣기
d+e, d+E : 단어 지우기
y+e : 단어 복사
Edit →→→ (ESC) comman mode ←←← (ESC) command line mode
←←← (i, I, a, A, o, O) →→→ (: /,:?)
w: 1. Move to beginning of word
W 2. Left to right
3. Space recognition
4. Special Symbol Recognition
b: 1. Move to beginning of word
B 2. Move from right to left
3. Space recognition
4. Special Symbol Recognition
e: 1. Move to the end of the word
E 2. Move left to right
3. Space recognition
4. Special Symbol Recognition
0, ^: Move to beginning of sentence
$ : Move to end of sentence
gg, [[ : Move to beginning of document
G, ]] : Go to the end of the document
H, M, L: Move to beginning, middle, and end of document in order
m + a ~ z: Apply bookmark
`+ Specified key: go to bookmark
``: Home
s: Delete current cursor
S: Delete current line
u: undo
Ctrl + r: Cancel undo
r: When changing a character
R: Overwrite (initial value at backspace)
x: delete (backspace if there is no erasure)
X: backspace
dd: Delete the line itself
n + dd: Delete n lines
D, d + $: Delete cursor right statement
yy: Copying the current line
n + yy: Copying n lines from the current line
p: Paste under cursor
P: Paste on cursor
d + e, d + E: Clear word
y + e: Copy word
♦ dokumentredigering: vi [filnavn]
redigere →→→ (ESC) comman tilstand ←←←(ESC) kommandolinjetilstand
←←← (i, I, a, A, o, O) →→→ (: /,:?)
w: 1. Gå til begyndelsen af ordet
W 2. Flytning fra venstre mod højre
3. Plads Anerkendelse
4. anerkender særlige symboler
b: 1. Gå til begyndelsen af ordet
B 2. Flytning fra højre mod venstre
3. Plads Anerkendelse
4. anerkender særlige symboler
e: 1. Gå til slutningen af et ord
E 2. Flytning fra venstre mod højre
3. Plads Anerkendelse
4. anerkender særlige symboler
0, ^: Gå til starten af sætningen
$: Flyt til slutningen af sætningen
gg, [[ : Gå til begyndelsen af dokumentet
G,]] : hoppe til slutningen af dokumentet
H, M, L: I begyndelsen, i midten af dokumentet i den rækkefølge, og endelig flytte
m + a ~ z: bogmærke ansøgning
`+ Angivet nøgle: Gå til bogmærke
``: In situ
s: slette det aktuelle markør
S: Slet den aktuelle linje
u: Undo
ctrl + r : Annuller Fortryd
r: Når du ændrer markøren et tegn
R: Overskriv (startværdi når tilbage)
x: Slet (slette bogstaver, hvis backspace)
X: backspace
dd: Slet rækker selv
n + dd: n Fjern række
D, d + $: Slet sætning markøren til højre
yy: kopiere den aktuelle linje
n + yy : kopiere fra den aktuelle række n rækker
p: Sæt ind for at indsætte markøren under
P: Indsæt markøren over
d + e, d + E: Slet ordet
y + e: Kopier ord
vi실행 보고 싶다면
If you want to see vi running
VI Hvis du ønsker at se kørende
https://www.youtube.com/watch?v=IsMqClwVO0E
[linux] cat, ftp접속, date, cal, find cat, ftp connection, date, cal, find
♦파일 내용 출력 : cat (<) [경로]
♦ File content output: cat (<) [path]
♦ filinformasjon utgang: cat (<) [sti]
♦파일 내용 입력 : cat [파일1] > [파일2]
※파일1 내용을 파일2에 입력
♦ Enter file contents: cat [File 1]> [File 2]
※ Enter the contents of file 1 into file 2
♦ filoppføringer: katt Fil 1> Fil 2
※ inn filinnholdet i en fil 1 2
♦파일 생성 : cat > [경로]
※빈 화면이 뜨는데 내용 입력 후 ctrl + d를 눌러서 빠져 나와야 한다.
ctrl c : 강제 종료
ctrl z : 강제 정지
※ 'touch' 와 차이점 : 'touch'는 빈 파일만 생성 하는데 'cat >' 은 내용까지 입력한다.
♦ File creation: cat> [path]
※ When blank screen pops up, you must press ctrl + d to exit.
Ctrl c: Force shutdown
Ctrl z: Forcible stop
※ Difference from 'touch': 'touch' only creates an empty file but 'cat>' also inputs the contents.
♦ filoppretting: cat> [bane]
※ blank skjerm dukker opp etter innføringene for å komme ut ved å trykke på ctrl + d.
ctrl c: Tvungen avslutning
ctrl z: tvungen stopp
※ 'touch' forskjellen: 'touch' er å skape en tom fil bare 'cat>' er innspill til innholdet.
♦파일 끝에 내용 추가: cat >> [경로]
♦ Add content to the end of the file: cat >> [path]
♦ ytterligere informasjon på slutten av filen: cat >> [bane]
♦파일 병합 (순서대로 왼쪽부터) : cat [소스] [소스] > [새파일]
♦ Merge files (from left to right): cat [source] [source]> [new file]
♦ Slå sammen filer (fra venstre mot høyre): cat [kilde] [kilde]> [Ny]
♦FTP 접속 방법
1. 윈도우 D드라이브에 text 파일 만들고 내용 입력한다.
2. 확장자 바꿔서 index.html 파일로 만들기
3. 파일 있는곳으로 이동 : 실행(윈도우키 + r) > cmd > 드라이브 변경 ( d:) > 파일 확인 (dir)
4. 사용자로 로그인
put [ex)index.html] : 리눅스로 업로드
get [파일] : 윈도우로 다운로드
del [파일] : 지우기
※ 제어판 > 방화벽 허용되는 프로그램 > 다운로드 프로그램 허용 > 찾아보기 > ftp.exe 찾기 > 추가 > 홈 개인 확인
♦ FTP access method
1. Create a text file on your Windows D drive and enter the contents.
2. Changing the extension to an index.html file
3. Move to file location: Run (Windows key + r)> cmd> Change drive (d :)> Confirm file (dir)
4. Login as user
put [ex)index.html] index.html]: Upload to Linux
get [file]: Download to Windows
del [file]: clear
※ Control Panel> Firewall Allowed Programs> Allow Download Program> Browse> Find ftp.exe> Add> Confirm Home Personal
♦ FTP tilkoblingsmetode
1. Opprett en tekstfil inntastingsvinduet D-stasjonen.
2. Lag en index.html fil, endre filtypen
3. Gå til filen der: Run (Windows-tasten + r)> cmd> OK kjøring endring (d:)> File (dir)
4. Logg deg på som en bruker
put [ex) index.html]: opp til Linux
get [file]: Last ned Windows
del [Fil]: Clear
※ Kontrollpanel> Brannmur tillatt Programmer> tillate nedlasting program> Bla gjennom for å være> ftp.exe favoritter> Legg til> OK Private Home
♦시간 출력 : date
date [MMDDhhmmyyyy] : 시간 변경
rdate -s time.bora.net : 인터넷 시간으로 변경
♦ Time output: date
Date [MMDDhhmmyyyy]: Change time
rdate -s time.bora.net: change to internet time
♦ Tid Output: date
date [MMDDhhmmyyyy]: Tid Endre
rdate -s time.bora.net: Endre Internet Time
♦달력 : cal
♦ Calendar: cal
♦ Kalender: cal
♦파일 및 디렉토리 찾기 : find [찾을 위치] [-옵션] [이름] + [-type] [d(디렉토리) or f(파일)]
-name : 이름
-newer [이름]: [이름] 다음 새로운 파일 만들었으면 표시
-exec [명령어] {} \; : find에서 추가 옵션
※ 이름* : 이름으로 시작하는 모든 파일
*이름* : 이름이 가운데 들어가는 모든 파일
ex) find / -name "test*" -exec rm {} \; : '/'에서 'test'들어간 파일을 찾아서 삭제
♦ Find files and directories: find [find location] [-options] [name] + [-type] [d (directory) or f (file)]
-name: Name
-newer [name]: [name] If you have created a new file then
-exec [command] {} \; : Additional options in find
※ Name *: All files that start with a name
* Name *: All files with names in the middle
Ex) find / -name "test *" -exec rm {} \; : Find and delete the file containing 'test' in '/'
♦ Finne filer og kataloger: find [Se i] [-options] [navn] + [-type] [d (katalog) eller f (fil)]
-name: Navn
-newer [navn]: Viser om [navn], og deretter opprettet en ny fil
-exec [kommandoer] {} exec \; : Flere alternativer i funn
※ Navn *: alle filer som begynner med navnet
* navn * :Alle filnavn i midten
ex) find / -name "test *" exec rm {} \; : Finn den 'test' i filen i "/" Slett
FTP접속을 보고 싶다면
If you want to see the FTP connection
Hvis du ønsker å se FTP-tilgang
https://www.youtube.com/watch?v=wYuDhaIPLPE
FTP접속을 보고 싶다면
If you want to see the FTP connection
Hvis du ønsker å se FTP-tilgang
https://www.youtube.com/watch?v=wYuDhaIPLPE
[linux] rm, touch, alias, 파일 내용 보기 rm, touch, alias, view file contents
♦ 파일 및 디렉토리 삭제 : rm ※삭제 시 질문함(-i 옵션 생략)
-f : 삭제 시 질문 하지 않음. 오류 무시
-r : 하위 디렉토리부터 상위 디렉토리로 지우면서 나옴
ex) rm -r /a : /a 안에 파일이 있으면 그 파일부터 삭제하고 /a 삭제
♦ Delete files and directories: rm ※ Ask when deleting (-i option omitted)
-f: Do not ask for deletion. Ignore errors
-r: Remove subdirectories from parent directory
Ex) rm -r / a: If there is a file in / a, delete it and delete / a
♦ फाइल र निर्देशिका मेटाउन: मेटाउने जब (को --म विकल्प हटाउदैँ) rm ※ केरकार गर्नुपर्छ
-f: हटाइएको गर्दा नसोध्नुहोस्। त्रुटिहरू बेवास्ता
-r: सबडाइरेक्टरीहरू वाफ बाट स्पष्ट गर्दा अभिभावक निर्देशिका
पूर्व) RM -r / एक: / एक को फाइल हटाइयो फाइल / एक मेटिएको भने
♦ 빈 파일 생성, 생성 시간 변경 : touch [경로]
-t 년월일시분(yyyymmddhhmm) [디렉토리] : 시간바꾸기
-d 년월일(yyyymmdd) [디렉토리] : 시,분 바꾸기
♦ Create an empty file, change the creation time: touch [path]
-t date of the month (yyyymmddhhmm) [directory]: change the time
-d date (yyyymmdd) [directory]: change hour, minute
♦ खाली फाइल पुस्ता समय परिवर्तन सिर्जना गर्नुहोस्: touch [बाटो]
जब मिति -t मिनेट (yyyymmddhhmm) [निर्देशिका]: समय परिवर्तन
-d तिथि (yyyymmdd) [निर्देशिका]: घण्टा परिवर्तन, मिनेट
♦ 명령어 단축기 만들기 : alias
ex) alias 1='clear' : 1 입력하면 'clear' 명령어 실행
♦ Create a command hotkey: alias
ex) alias 1 = 'clear': 1
♦ एक हटकुञ्जीसेटिङकन्फिगरगर्नुहोस् आदेश सिर्जना गर्नुहोस्: alias
पूर्व) alias 1 = 'clear': 1 'clear' आदेश कार्यान्वयन प्रवेश
♦ 명령어 단축기 삭제 : unalias
ex) unalias 1
♦ Delete command hotkey: unalias
Ex) unalias 1
♦ आदेश सर्टकटहरू मेटाउनुहोस्: unalias
पूर्व) unalias 1
♦ 파일 내용 보기 : cat
♦ View file contents: cat
♦ फाइल सामग्रीहरू हेर्न: cat
♦ 내용 앞에서부터 출력 : head [-행 수]
♦ Contents Output from the beginning: head [- number of lines]
♦ सामग्री देखि उत्पादन अघि: head [- पङ्क्तिहरू;
♦ 내용 뒤에서부터 출력 : tail [-행 수]
♦ Output after content: tail [- number of lines]
♦ फिर्ता उत्पादन जानकारी: tail [- पङ्क्तिहरू;
♦ 화면 짤라서 보여주기 (디렉토리 불가능) : more
ex) more [파일 경로]
※ 스페이스 치면 한 페이지 씩 내려가고 엔터 치면 한 줄 씩 내려감
※ 디렉토리 보기 : ls -l [경로] | more ( | = 쉬프트 + \)
♦ Show screen (no directory): more
Ex) more [file path]
※ If you hit a space, go down one page and enter.
※ View directory: ls -l [path] | More ( | = shift + \)
♦ स्क्रीन शो काटन थियो (निर्देशिका सम्भव छैन): more
पूर्व) more [फाइल मार्ग]
※ एक द्वारा एक पृष्ठ हिट प्रविष्ट गर्नुहोस् हिट ठाउँ तल एक पट्टी तल जाने
हेर्नुहोस् ※ निर्देशिका: ls -l [बाटो] | more ( | = shift + \)
♦ 화면 짤라서 보여주기 (디렉토리 가능) : less
※ j : 화면 내리기 k : 화면 올리기 q : 나가기
♦ Show screen (directory available): less
※ j: Screen down, k: Screen up, q: Exit
♦ स्क्रीन शो काटन थियो निर्देशिका (उपलब्ध): less
※ जे: तल स्क्रीन, K: अपलोड स्क्रीन, Q: निकास
♦ 내용 앞에 행 번호 추가 : nl
ex)ls -l [경로] | nl | less | more : 명령이 오른쪽부터 실행 되므로 more, nl, ls 명령어만 실행되고 less는 실행되지 않는다.( more과 less는 겹치기 때문에)
♦ Add line number before content: nl
Ex) ls -l [path] | nl | less | more: Because the command is executed from the right, only the more, nl, and ls commands are executed, and less is not executed (because more and less overlap).
♦ सामग्रीहरू अगाडि लाइन नम्बर थप्नुहोस्: nl
पूर्व) -l [बाटो] ls | nl | less | more: आदेश सही पक्ष more, nl, केवल चलान रास आदेश कार्यान्वयन छैन देखि कार्यान्वयन छ less (किनभने मिल्दाजुल्दा को संग more less) छ।
파일 내용 보고 싶다면 클릭
If you want to see the contents of the file, click
तपाईं फाइल सामग्रीहरू हेर्न चाहनुहुन्छ भने, क्लिक गर्नुहोस्
https://www.youtube.com/watch?v=-qlH74pWAVY
-f : 삭제 시 질문 하지 않음. 오류 무시
-r : 하위 디렉토리부터 상위 디렉토리로 지우면서 나옴
ex) rm -r /a : /a 안에 파일이 있으면 그 파일부터 삭제하고 /a 삭제
♦ Delete files and directories: rm ※ Ask when deleting (-i option omitted)
-f: Do not ask for deletion. Ignore errors
-r: Remove subdirectories from parent directory
Ex) rm -r / a: If there is a file in / a, delete it and delete / a
♦ फाइल र निर्देशिका मेटाउन: मेटाउने जब (को --म विकल्प हटाउदैँ) rm ※ केरकार गर्नुपर्छ
-f: हटाइएको गर्दा नसोध्नुहोस्। त्रुटिहरू बेवास्ता
-r: सबडाइरेक्टरीहरू वाफ बाट स्पष्ट गर्दा अभिभावक निर्देशिका
पूर्व) RM -r / एक: / एक को फाइल हटाइयो फाइल / एक मेटिएको भने
♦ 빈 파일 생성, 생성 시간 변경 : touch [경로]
-t 년월일시분(yyyymmddhhmm) [디렉토리] : 시간바꾸기
-d 년월일(yyyymmdd) [디렉토리] : 시,분 바꾸기
♦ Create an empty file, change the creation time: touch [path]
-t date of the month (yyyymmddhhmm) [directory]: change the time
-d date (yyyymmdd) [directory]: change hour, minute
♦ खाली फाइल पुस्ता समय परिवर्तन सिर्जना गर्नुहोस्: touch [बाटो]
जब मिति -t मिनेट (yyyymmddhhmm) [निर्देशिका]: समय परिवर्तन
-d तिथि (yyyymmdd) [निर्देशिका]: घण्टा परिवर्तन, मिनेट
♦ 명령어 단축기 만들기 : alias
ex) alias 1='clear' : 1 입력하면 'clear' 명령어 실행
♦ Create a command hotkey: alias
ex) alias 1 = 'clear': 1
♦ एक हटकुञ्जीसेटिङकन्फिगरगर्नुहोस् आदेश सिर्जना गर्नुहोस्: alias
पूर्व) alias 1 = 'clear': 1 'clear' आदेश कार्यान्वयन प्रवेश
♦ 명령어 단축기 삭제 : unalias
ex) unalias 1
♦ Delete command hotkey: unalias
Ex) unalias 1
♦ आदेश सर्टकटहरू मेटाउनुहोस्: unalias
पूर्व) unalias 1
♦ 파일 내용 보기 : cat
♦ View file contents: cat
♦ फाइल सामग्रीहरू हेर्न: cat
♦ 내용 앞에서부터 출력 : head [-행 수]
♦ Contents Output from the beginning: head [- number of lines]
♦ सामग्री देखि उत्पादन अघि: head [- पङ्क्तिहरू;
♦ 내용 뒤에서부터 출력 : tail [-행 수]
♦ Output after content: tail [- number of lines]
♦ फिर्ता उत्पादन जानकारी: tail [- पङ्क्तिहरू;
♦ 화면 짤라서 보여주기 (디렉토리 불가능) : more
ex) more [파일 경로]
※ 스페이스 치면 한 페이지 씩 내려가고 엔터 치면 한 줄 씩 내려감
※ 디렉토리 보기 : ls -l [경로] | more ( | = 쉬프트 + \)
♦ Show screen (no directory): more
Ex) more [file path]
※ If you hit a space, go down one page and enter.
※ View directory: ls -l [path] | More ( | = shift + \)
♦ स्क्रीन शो काटन थियो (निर्देशिका सम्भव छैन): more
पूर्व) more [फाइल मार्ग]
※ एक द्वारा एक पृष्ठ हिट प्रविष्ट गर्नुहोस् हिट ठाउँ तल एक पट्टी तल जाने
हेर्नुहोस् ※ निर्देशिका: ls -l [बाटो] | more ( | = shift + \)
♦ 화면 짤라서 보여주기 (디렉토리 가능) : less
※ j : 화면 내리기 k : 화면 올리기 q : 나가기
♦ Show screen (directory available): less
※ j: Screen down, k: Screen up, q: Exit
♦ स्क्रीन शो काटन थियो निर्देशिका (उपलब्ध): less
※ जे: तल स्क्रीन, K: अपलोड स्क्रीन, Q: निकास
♦ 내용 앞에 행 번호 추가 : nl
ex)ls -l [경로] | nl | less | more : 명령이 오른쪽부터 실행 되므로 more, nl, ls 명령어만 실행되고 less는 실행되지 않는다.( more과 less는 겹치기 때문에)
♦ Add line number before content: nl
Ex) ls -l [path] | nl | less | more: Because the command is executed from the right, only the more, nl, and ls commands are executed, and less is not executed (because more and less overlap).
♦ सामग्रीहरू अगाडि लाइन नम्बर थप्नुहोस्: nl
पूर्व) -l [बाटो] ls | nl | less | more: आदेश सही पक्ष more, nl, केवल चलान रास आदेश कार्यान्वयन छैन देखि कार्यान्वयन छ less (किनभने मिल्दाजुल्दा को संग more less) छ।
파일 내용 보고 싶다면 클릭
If you want to see the contents of the file, click
तपाईं फाइल सामग्रीहरू हेर्न चाहनुहुन्छ भने, क्लिक गर्नुहोस्
https://www.youtube.com/watch?v=-qlH74pWAVY
Wednesday, June 28, 2017
[linux] ls, cp,mv,mkdir,rmdir 명령어 ls, cp, mv, mkdir, rmdir command
♦ 위치 안에 있는 파일 및 디렉토리 보여주기 : ls [-옵션] [위치]
♦ Show files and directories in a location: ls [--options] [location]
♦ show files en mappen op de locatie: ls [- opties] [locatie]
옵션
-lF : 형식을 알리는 문자출력.
※ 각 파일 이름 뒤에 추가. 기호 없으면 파일, '/'있으면 디렉토리
※ @,→ : 바로 가기. 사본→원본
(파일 종류는 'l'로 표시. 허가권 모두 활성화)
(허가권 : 읽거나 쓰고 접근하는 권한)
※ 파일명 뒤에 * 붙으면 실행 파일
-d : 디렉토리 자체의 내용 보기
-h : 파일 및 디렉토리 크기를 (K,M,G)로 출력. 기본단위는 byte
option
-lF: Character output for formatting.
※ Append after each file name. If there is no symbol file, the directory '/'
※ @, →: Shortcut. Copy → Source
(file type is marked with 'l', all permissions are enabled)
(Permission: permission to read, write and access)
※ Executable file with * after file name
-d : View the contents of the directory itself
-h : Output file and directory size in (K, M, G). The default unit is byte
opties
-lF : tekenuitvoer met vermelding van het formaat.
※ In een bijlage bij elke bestandsnaam. Als u zich niet aanmeldt als het bestand "/" directory
※ @, →: snelkoppelingen. Een kopie van het origineel →
(Type bestand wordt weergegeven als 'l'. Rechten worden ingeschakeld)
(Toestemming: toestemming om te lezen of schrijven toegang)
※ Bestandsnaam gevolgd door "*" gelijmde uitvoerbaar bestand
-d : De inhoud van de map zelf
-h : output file en directory maten in (K, M, G). De basiseenheid is een byte
♦ 파일 및 디렉토리 복사(그 줄부터) : cp [-옵션] [소스] [타겟]
♦ Copy files and directories (from that line): cp [--options] [source] [target]
♦ Kopieer bestanden en mappen (van de lijn): cp [- opties] [bron] [doel]
cp를 하게 되면 파일 및 디렉토리의 생성 날짜가 cp한 시간으로 바뀌게 됨
If you do cp, the creation date of files and directories will change to cp time.
Wanneer de cp verandering in de tijd dat de creatie data van de bestanden en directories cp zoeken
♦ 파일 및 디렉토리 이동, 이름변경 : mv [소스] [소스] [타겟]
♦ Move and rename files and directories: mv [source] [source] [target]
♦ Verplaats bestanden en mappen, hernoemen: mv [bron] [bron] [doel]
mv /directory/file /directory/file1 : 디렉토리의 '파일'이 '파일1'로 바뀜
Mv / directory / file / directory / file1: 'file' in the directory has been changed to 'file 1'
mv / directory / file / directory / file1: directory 'files' wordt vervangen door 'File 1'
mv를 하게되더라도 생성 날짜는 변하지 않고 원본을 따르게 됨
Mv does not change the creation date but follows the original
Zelfs als de mv zal volgen de oorspronkelijke schepping datum zal niet veranderen zoeken
♦ 디렉토리 생성 : mkdir [새 디렉토리까지 경로]
♦ Create directory: mkdir [Path to new directory]
♦ Maak directory: mkdir [Totdat de nieuwe pad]
옵션
-p : 상위 디렉토리가 없을 시 상위 디렉토리까지 모두 생성
ex) '/a'란 디렉토리가 없을 시 mkdir -p /a/b/를 하면 /a 디렉토리 자동 생성
option
-p: Create all parent directories if parent directory does not exist
Ex) If there is no directory named '/ a', mkdir -p / a / b / will automatically create / a directory
opties
-p: het genereren van zowel de bovenliggende map als er geen bovenliggende map
ex) '/ a' Wat als de mkdir -p / a / b / wanneer er een directory / a map automatisch aangemaakt
♦ 디렉토리 삭제 : rmdir [디렉토리까지 경로] ※빈 디렉토리만 삭제
♦ Delete directory: rmdir [Path to directory] ※ Delete only empty directory
♦ Verwijder de directory: rmdir [directory pad naar] ※ alleen lege mappen verwijderen
옵션
-p : 지정한 최상위 디렉토리까지 빈 디렉토리만 삭제
ex) rmdir -p /a/b/x : 지정한 최상위 디렉토리 '/' 까지 빈 디렉토리 삭제
option
-p: Delete only empty directories up to the specified top level directory
ex) rmdir -p /a/b/x : Delete the empty directory up to the specified top level directory '/'
opties
-p: alleen verwijderen lege mappen naar het hoogste niveau directory gespecificeerd
ex) rmdir -p /a/b/x : gespecificeerd top level directory '/' om lege mappen verwijderen
파일 복사하는거 보고싶다면
If you want to see a file copy
Als u wilt kopiëren van bestanden te kijken
https://www.youtube.com/watch?v=P0VxcDqx3-M
♦ Show files and directories in a location: ls [--options] [location]
♦ show files en mappen op de locatie: ls [- opties] [locatie]
옵션
-lF : 형식을 알리는 문자출력.
※ 각 파일 이름 뒤에 추가. 기호 없으면 파일, '/'있으면 디렉토리
※ @,→ : 바로 가기. 사본→원본
(파일 종류는 'l'로 표시. 허가권 모두 활성화)
(허가권 : 읽거나 쓰고 접근하는 권한)
※ 파일명 뒤에 * 붙으면 실행 파일
-d : 디렉토리 자체의 내용 보기
-h : 파일 및 디렉토리 크기를 (K,M,G)로 출력. 기본단위는 byte
option
-lF: Character output for formatting.
※ Append after each file name. If there is no symbol file, the directory '/'
※ @, →: Shortcut. Copy → Source
(file type is marked with 'l', all permissions are enabled)
(Permission: permission to read, write and access)
※ Executable file with * after file name
-d : View the contents of the directory itself
-h : Output file and directory size in (K, M, G). The default unit is byte
opties
-lF : tekenuitvoer met vermelding van het formaat.
※ In een bijlage bij elke bestandsnaam. Als u zich niet aanmeldt als het bestand "/" directory
※ @, →: snelkoppelingen. Een kopie van het origineel →
(Type bestand wordt weergegeven als 'l'. Rechten worden ingeschakeld)
(Toestemming: toestemming om te lezen of schrijven toegang)
※ Bestandsnaam gevolgd door "*" gelijmde uitvoerbaar bestand
-d : De inhoud van de map zelf
-h : output file en directory maten in (K, M, G). De basiseenheid is een byte
♦ 파일 및 디렉토리 복사(그 줄부터) : cp [-옵션] [소스] [타겟]
♦ Copy files and directories (from that line): cp [--options] [source] [target]
♦ Kopieer bestanden en mappen (van de lijn): cp [- opties] [bron] [doel]
cp를 하게 되면 파일 및 디렉토리의 생성 날짜가 cp한 시간으로 바뀌게 됨
If you do cp, the creation date of files and directories will change to cp time.
Wanneer de cp verandering in de tijd dat de creatie data van de bestanden en directories cp zoeken
♦ 파일 및 디렉토리 이동, 이름변경 : mv [소스] [소스] [타겟]
♦ Move and rename files and directories: mv [source] [source] [target]
♦ Verplaats bestanden en mappen, hernoemen: mv [bron] [bron] [doel]
mv /directory/file /directory/file1 : 디렉토리의 '파일'이 '파일1'로 바뀜
Mv / directory / file / directory / file1: 'file' in the directory has been changed to 'file 1'
mv / directory / file / directory / file1: directory 'files' wordt vervangen door 'File 1'
mv를 하게되더라도 생성 날짜는 변하지 않고 원본을 따르게 됨
Mv does not change the creation date but follows the original
Zelfs als de mv zal volgen de oorspronkelijke schepping datum zal niet veranderen zoeken
♦ 디렉토리 생성 : mkdir [새 디렉토리까지 경로]
♦ Create directory: mkdir [Path to new directory]
♦ Maak directory: mkdir [Totdat de nieuwe pad]
옵션
-p : 상위 디렉토리가 없을 시 상위 디렉토리까지 모두 생성
ex) '/a'란 디렉토리가 없을 시 mkdir -p /a/b/를 하면 /a 디렉토리 자동 생성
option
-p: Create all parent directories if parent directory does not exist
Ex) If there is no directory named '/ a', mkdir -p / a / b / will automatically create / a directory
opties
-p: het genereren van zowel de bovenliggende map als er geen bovenliggende map
ex) '/ a' Wat als de mkdir -p / a / b / wanneer er een directory / a map automatisch aangemaakt
♦ 디렉토리 삭제 : rmdir [디렉토리까지 경로] ※빈 디렉토리만 삭제
♦ Delete directory: rmdir [Path to directory] ※ Delete only empty directory
♦ Verwijder de directory: rmdir [directory pad naar] ※ alleen lege mappen verwijderen
옵션
-p : 지정한 최상위 디렉토리까지 빈 디렉토리만 삭제
ex) rmdir -p /a/b/x : 지정한 최상위 디렉토리 '/' 까지 빈 디렉토리 삭제
option
-p: Delete only empty directories up to the specified top level directory
ex) rmdir -p /a/b/x : Delete the empty directory up to the specified top level directory '/'
opties
-p: alleen verwijderen lege mappen naar het hoogste niveau directory gespecificeerd
ex) rmdir -p /a/b/x : gespecificeerd top level directory '/' om lege mappen verwijderen
파일 복사하는거 보고싶다면
If you want to see a file copy
Als u wilt kopiëren van bestanden te kijken
https://www.youtube.com/watch?v=P0VxcDqx3-M
[linux] PUTTY, 기본 명령어, 절대 경로, 상대 경로 ,PUTTY, basic command, absolute path, relative path
PUTTY는 서버 컴퓨터가 아니라 다른 컴퓨터로 서버에 접속하기 위해서 쓴다.
PUTTY is used to access the server from another computer, not from a server computer.
PUTTY ξοδεύει για να συνδεθείτε με το διακομιστή σε έναν άλλο υπολογιστή, δεν τον υπολογιστή του διακομιστή.
PUTTY 시작 방법
How to start PUTTY
PUTTY πώς να ξεκινήσετε
Host Name에 리눅스 ip 입력(linux 터미널에서 ifconfig로 확인 가능)
Enter linux ip on Hostname (ifconfig on linux terminal)
Linux ip που εγγράφονται στον Host Name (επικοινωνήστε με το ifconfig στο τερματικό linux διαθέσιμο)
Window에 Translation에서 자기 언어에 맞는 set을 한다(한국이면 UTF-8, 안하면 한글 깨짐)
Set the translation in the window to your language (UTF-8 in Korea, if not, text break.)
Η μετάφραση από το σύνολο Παράθυρο για την κάλυψη στη γλώσσα τους (αν Κορέα UTF-8, Αν όχι, σπάσιμο κειμένου.)
'Saved sessions'에서 아무 이름으로 저장하고 열기, 창 뜨면 yes 선택
'Save Saved sessions with any name and open, select yes when you open window
«Εκτός από τις αποθηκευμένες συνεδρίες χωρίς όνομα, και να ανοίξετε το αναδυόμενο παράθυρο, επιλέξτε Ναι
linux prompt 구조
Linux prompt structure
linux άμεση δομές
[A @ B~ ] C
A : 서버에 로그인한 계정 명
@ : 계정 명과 서버 이름의 구분 기호
B : 서버의 이름
~ : 경로의 마지막 경로 명 출력
C : 계정 상태 출력 (관리자 - #, 사용자 - $)
A: Name of the account logged into the server
@: Separator between account name and server name
B: Name of the server
~: Output the last pathname of the path
C: Account status output (Administrator - #, User - $)
Α: λογαριασμός, συνδεθείτε με το όνομα του διακομιστή
@: Το όνομα του λογαριασμού διαχωριστή και το όνομα διακομιστή
Β: όνομα του διακομιστή
~: Το τελευταίο όνομα της διαδρομής της πορείας εξόδου
C: έξοδος Λογαριασμός κατάσταση (Διευθυντής - #, το χρήστη $)
명령어는 기본적으로 : 명령어 [-옵션] [서브 옵션] [파일/디렉토리]
The command is basically a : command [-option] [suboption] [file / directory]
Οι εντολές από προεπιλογή: Εντολή [Options] [υπο-επιλογή] [αρχείο / κατάλογο]
명령어 앞에는 명령어 경로가 생략되어 있다. (예를 들어 /usr/bin/명령어)
The command path is omitted before the command. (For example, / usr / bin / command)
Command είναι ένα μονοπάτι εντολή παραλείπεται μπροστά. (Για παράδειγμα, / usr / bin / εντολή)
♦ 지금 작업 위치 표시 : pwd
♦ Show current working position: pwd
♦ Τώρα εργάζεται οθόνη θέση: pwd
♦ 작업 위치 변경 : cd [위치]
♦ Change work location: cd [location]
♦ αλλαγή τοποθεσίας: cd [Θέση]
cd /root : /root 로 이동
cd ~[계정] : 계정 위치로 이동
cd ~- : 이전 디렉토리로 이동
cd / root : Go to / root
cd ~[account] : Go to account location
cd ~- : go to previous directory
cd / root : Πηγαίνετε στο / root
cd ~[λογαριασμούς] : Μετάβαση στο ισοζύγιο τρεχουσών
cd ~- : Μετάβαση στο προηγούμενο κατάλογο
♦ 화면 비우기 : clear
♦ Clear screen: clear
♦ Κενή οθόνη: clear
♦ 위치 안에 있는 파일 및 디렉토리 보여주기 : ls [-옵션] [위치]
♦ Show files and directories in a location: ls [--options] [location]
♦ αρχεία δείχνουν και καταλόγους στην τοποθεσία: ls [- επιλογές] [Τοποθεσία]
옵션
-a : 숨김 파일까지 보여주기(이름 앞에 .붙어 있으면 숨김 파일)
-l : 자세히 보여주기
-n : 소유권을 숫자로 보여줌(소유권을 간단하게 설명하면 파일 및 디렉토리의 사용자나 사용 그룹)
-R : 하위 디렉토리 나열
※ -nl처럼 옵션을 합치면 두 가지 옵션 모두 실행
option
-a: Show hidden files (hidden files before the name)
-l: Show details
-n: Show ownership as a number (a brief description of ownership is a user or usage group of files and directories)
-R: List subdirectories
※ If you combine options like -nl, you can run both options
επιλογές
-a: να δείξει τα κρυφά αρχεία (τα κρυφά αρχεία, αν πριν κολλήσει το όνομα.)
-l: δείτε περισσότερα
-n: Εμφανίζει τον αριθμό τίτλου (Εν συντομία αρχείο ιδιοκτησία και ομάδες χρηστών ή να χρησιμοποιήσετε τον κατάλογο)
-R: λίστες υποκαταλόγους
※ σε συνδυασμό με επιλογές όπως -nl τρέξει και τις δύο επιλογές
백문이불여일견 百聞不如一見
It is better to see it than to listen a hundred times.
Μην έχετε καλύτερα μια φορά από το να ακούω εκατό φορές.
https://www.youtube.com/watch?v=ofBq_7Quj4Q
PUTTY is used to access the server from another computer, not from a server computer.
PUTTY ξοδεύει για να συνδεθείτε με το διακομιστή σε έναν άλλο υπολογιστή, δεν τον υπολογιστή του διακομιστή.
PUTTY 시작 방법
How to start PUTTY
PUTTY πώς να ξεκινήσετε
Host Name에 리눅스 ip 입력(linux 터미널에서 ifconfig로 확인 가능)
Enter linux ip on Hostname (ifconfig on linux terminal)
Linux ip που εγγράφονται στον Host Name (επικοινωνήστε με το ifconfig στο τερματικό linux διαθέσιμο)
Window에 Translation에서 자기 언어에 맞는 set을 한다(한국이면 UTF-8, 안하면 한글 깨짐)
Set the translation in the window to your language (UTF-8 in Korea, if not, text break.)
Η μετάφραση από το σύνολο Παράθυρο για την κάλυψη στη γλώσσα τους (αν Κορέα UTF-8, Αν όχι, σπάσιμο κειμένου.)
'Saved sessions'에서 아무 이름으로 저장하고 열기, 창 뜨면 yes 선택
'Save Saved sessions with any name and open, select yes when you open window
«Εκτός από τις αποθηκευμένες συνεδρίες χωρίς όνομα, και να ανοίξετε το αναδυόμενο παράθυρο, επιλέξτε Ναι
linux prompt 구조
Linux prompt structure
linux άμεση δομές
[A @ B~ ] C
A : 서버에 로그인한 계정 명
@ : 계정 명과 서버 이름의 구분 기호
B : 서버의 이름
~ : 경로의 마지막 경로 명 출력
C : 계정 상태 출력 (관리자 - #, 사용자 - $)
A: Name of the account logged into the server
@: Separator between account name and server name
B: Name of the server
~: Output the last pathname of the path
C: Account status output (Administrator - #, User - $)
Α: λογαριασμός, συνδεθείτε με το όνομα του διακομιστή
@: Το όνομα του λογαριασμού διαχωριστή και το όνομα διακομιστή
Β: όνομα του διακομιστή
~: Το τελευταίο όνομα της διαδρομής της πορείας εξόδου
C: έξοδος Λογαριασμός κατάσταση (Διευθυντής - #, το χρήστη $)
명령어는 기본적으로 : 명령어 [-옵션] [서브 옵션] [파일/디렉토리]
The command is basically a : command [-option] [suboption] [file / directory]
Οι εντολές από προεπιλογή: Εντολή [Options] [υπο-επιλογή] [αρχείο / κατάλογο]
명령어 앞에는 명령어 경로가 생략되어 있다. (예를 들어 /usr/bin/명령어)
The command path is omitted before the command. (For example, / usr / bin / command)
Command είναι ένα μονοπάτι εντολή παραλείπεται μπροστά. (Για παράδειγμα, / usr / bin / εντολή)
♦ 지금 작업 위치 표시 : pwd
♦ Show current working position: pwd
♦ Τώρα εργάζεται οθόνη θέση: pwd
♦ 작업 위치 변경 : cd [위치]
♦ Change work location: cd [location]
♦ αλλαγή τοποθεσίας: cd [Θέση]
cd /root : /root 로 이동
cd ~[계정] : 계정 위치로 이동
cd ~- : 이전 디렉토리로 이동
cd / root : Go to / root
cd ~[account] : Go to account location
cd ~- : go to previous directory
cd / root : Πηγαίνετε στο / root
cd ~[λογαριασμούς] : Μετάβαση στο ισοζύγιο τρεχουσών
cd ~- : Μετάβαση στο προηγούμενο κατάλογο
♦ 화면 비우기 : clear
♦ Clear screen: clear
♦ Κενή οθόνη: clear
♦ 위치 안에 있는 파일 및 디렉토리 보여주기 : ls [-옵션] [위치]
♦ Show files and directories in a location: ls [--options] [location]
♦ αρχεία δείχνουν και καταλόγους στην τοποθεσία: ls [- επιλογές] [Τοποθεσία]
옵션
-a : 숨김 파일까지 보여주기(이름 앞에 .붙어 있으면 숨김 파일)
-l : 자세히 보여주기
-n : 소유권을 숫자로 보여줌(소유권을 간단하게 설명하면 파일 및 디렉토리의 사용자나 사용 그룹)
-R : 하위 디렉토리 나열
※ -nl처럼 옵션을 합치면 두 가지 옵션 모두 실행
option
-a: Show hidden files (hidden files before the name)
-l: Show details
-n: Show ownership as a number (a brief description of ownership is a user or usage group of files and directories)
-R: List subdirectories
※ If you combine options like -nl, you can run both options
επιλογές
-a: να δείξει τα κρυφά αρχεία (τα κρυφά αρχεία, αν πριν κολλήσει το όνομα.)
-l: δείτε περισσότερα
-n: Εμφανίζει τον αριθμό τίτλου (Εν συντομία αρχείο ιδιοκτησία και ομάδες χρηστών ή να χρησιμοποιήσετε τον κατάλογο)
-R: λίστες υποκαταλόγους
※ σε συνδυασμό με επιλογές όπως -nl τρέξει και τις δύο επιλογές
백문이불여일견 百聞不如一見
It is better to see it than to listen a hundred times.
Μην έχετε καλύτερα μια φορά από το να ακούω εκατό φορές.
https://www.youtube.com/watch?v=ofBq_7Quj4Q
Tuesday, June 27, 2017
[linux] GUI centOS 설치하기, centOS normal installation
가상 머신 만들기에서 종류는 'linux' 버전은 'red hat 64bit' 선택
In creating a virtual machine, select 'red hat 64bit' for 'linux' version.
લખો 'લાલ ટોપી 64bit' ની વર્ચ્યુઅલ મશીન બનાવો 'Linux આવૃત્તિમાં પસંદગી
가상 하드 디스크 만들기 종류는 VMDK(가상 머신 디스크) 선택
Create virtual hard disk type is VMDK (Virtual Machine Disk) selection
વર્ચ્યુઅલ હાર્ડ ડિસ્ક પ્રકાર બનાવો, VMDK પસંદ (વર્ચ્યુઅલ મશીન ડિસ્ક)
설정
Settings
સેટિંગ્સ
네트워크는 공유기를 쓴다면 '브리지 어댑터' 선택
If you are using a router, select 'Bridge Adapter'
નેટવર્ક રાઉટર, પુલ એડેપ્ટર ચોઇસ દ્વારા લખવામાં આવે છે, તો
저장소. 컨트롤러 IDE에 '비어있음'클릭 후 광학 드라이브에 iso파일 넣기
Storage. Click 'Empty' in the controller IDE and insert the iso file into the optical drive
દુકાન. ખાલી 'ISO ફાઈલ હોય, તો પછી IDE નિયંત્રક કે ઓપ્ટિકલ ડ્રાઈવ પર ક્લિક
설치 시작
Start the installation
સ્થાપન શરૂ કરી રહ્યા છીએ
소프트웨어 선택. 서버-GUI 선택하고 추가 기능 선택
Software selection. Select Server-GUI and select Add-ons
સોફ્ટવેર પસંદ કરો. સર્વર પસંદ કરો અને પસંદ કરો Add-ons -GUI
설치 대상. 파티션을 설정합니다 선택
Installation target. Select Set Partition
સ્થાપન લક્ષ્યાંક. પસંદ કરેલ પાર્ટીશન સેટ
자동으로 생성 클릭
Click Generate automatically
એક ક્લિક આપમેળે જનરેટ
ROOT암호 생성 (성명과 사용자 이름이 있는데 성명이 별명이고, 사용자 이름이 진짜 이름이다)
ROOT password creation (name and user name, name is alias, user name is real name)
રુટ પાસવર્ડ બનાવટ (ત્યાં નામ અને વપરાશકર્તા નામ અને ઉપનામ નામ, વપરાશકર્તા નામ, વાસ્તવિક નામ છે)
설치 완료 후 라이센스 동의(오픈소스 동의)
License agreement (open source agreement) after installation
સ્થાપન લાઇસેંસ કરાર (એગ્રીમેન્ટ ઓપન સોર્સ) પૂર્ણ કર્યા બાદ
움직이는 걸 보고 싶다면
If you want to see moving
તમે કંઈક મૂવિંગ જોવા માંગો છો, તો
https://www.youtube.com/watch?v=tiBCpYvLjDo
Monday, June 26, 2017
[linux] 오라클, VMware 가상머신과 리눅스 OS 다운로드 Download Oracle V Box, Linux OS and VMware Workstation pro
먼저, https://www.virtualbox.org/ 에 접속. 다운로드 클릭
First, access https://www.virtualbox.org/. Click download
En primeiro lugar, acceda a https://www.virtualbox.org/. prema aquí para baixar
최신 버전 다운로드
Download the latest version
Descargar a última versión
OS 다운로드 하기 위해서 https://www.centos.org/에 접속
Access to https://www.centos.org/ to download OS
Https://www.centos.org/ acceso ao descargar OS
'Get CentOS now' 클릭 후 'Everything ISO' 클릭
Click 'Get CentOS now' and click 'Everything ISO'
'Get CentOS agora' e prema en 'Todo ISO premendo
아무거나 클릭해서 다운로드
Click anything to download
Algo aquí para descargar
VMware workstation pro
https://www.vmware.com/에 접속, 다운로드 클릭
Access https://www.vmware.com/ , Click download
Access https://www.vmware.com/ , prema aquí para baixar
Workingstation Pro 클릭
Click Workingstation Pro
Prema Workingstation Pro
자기 컴퓨터 운영체제에 맞춰 다운로드
Download according to your computer operating system
Descargar en liña co seu sistema operativo do ordenador
사진이 싫다면 클릭
Click if you do not like the screenshot.
Prema na imaxe Se non queres.
https://www.youtube.com/watch?v=QqwduATULAo
First, access https://www.virtualbox.org/. Click download
En primeiro lugar, acceda a https://www.virtualbox.org/. prema aquí para baixar
최신 버전 다운로드
Download the latest version
Descargar a última versión
OS 다운로드 하기 위해서 https://www.centos.org/에 접속
Access to https://www.centos.org/ to download OS
Https://www.centos.org/ acceso ao descargar OS
'Get CentOS now' 클릭 후 'Everything ISO' 클릭
Click 'Get CentOS now' and click 'Everything ISO'
'Get CentOS agora' e prema en 'Todo ISO premendo
아무거나 클릭해서 다운로드
Click anything to download
Algo aquí para descargar
VMware workstation pro
https://www.vmware.com/에 접속, 다운로드 클릭
Access https://www.vmware.com/ , Click download
Access https://www.vmware.com/ , prema aquí para baixar
Workingstation Pro 클릭
Click Workingstation Pro
Prema Workingstation Pro
자기 컴퓨터 운영체제에 맞춰 다운로드
Download according to your computer operating system
Descargar en liña co seu sistema operativo do ordenador
사진이 싫다면 클릭
Click if you do not like the screenshot.
Prema na imaxe Se non queres.
https://www.youtube.com/watch?v=QqwduATULAo
Subscribe to:
Posts (Atom)


















