Cov txheej txheem:

Yuav Siv Mac Terminal Li Cas, thiab Yuav Siv Li Cas Tseem Ceeb: 4 Kauj Ruam
Yuav Siv Mac Terminal Li Cas, thiab Yuav Siv Li Cas Tseem Ceeb: 4 Kauj Ruam

Video: Yuav Siv Mac Terminal Li Cas, thiab Yuav Siv Li Cas Tseem Ceeb: 4 Kauj Ruam

Video: Yuav Siv Mac Terminal Li Cas, thiab Yuav Siv Li Cas Tseem Ceeb: 4 Kauj Ruam
Video: yuav coj li cas kom luag nyiam 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Siv Mac Terminal, thiab Yuav Siv Li Cas Tseem Ceeb
Yuav Ua Li Cas Siv Mac Terminal, thiab Yuav Siv Li Cas Tseem Ceeb

Peb yuav qhia koj yuav qhib MAC Terminal li cas. Peb kuj tseem yuav qhia koj ob peb yam hauv Terminal, xws li ifconfig, hloov cov npe, nkag mus rau cov ntaub ntawv, thiab arp. Ifconfig yuav tso cai rau koj los tshuaj xyuas koj tus IP chaw nyob, thiab koj li MAC chaw nyob. Qhov no muaj txiaj ntsig zoo rau teeb tsa lub cuab yeej tshiab ntawm lub network. Hloov cov npe hauv Terminal tuaj yeem muaj txiaj ntsig zoo li txoj hauv kev zoo dua los nrhiav cov ntaub ntawv, thiab cov ntawv tais ceev tseg hauv koj lub khoos phis tawj tsis yog tshawb nrhiav los ntawm tag nrho koj cov ntawv tais ceev tseg.

Kauj ruam 1: Nkag mus rau Terminal

Nkag mus rau Terminal
Nkag mus rau Terminal

1) Nias qhov hais kom ua + chaw bar

2) Hom Terminal

3) Nias Sau

Kauj Ruam 2: Siv ifconfig Command kom Sib Sau Network Cov Ntaub Ntawv Xws Li IP Chaw Nyob lossis MAC Chaw Nyob

Siv ifconfig Command kom sib sau Cov Ntaub Ntawv Network Xws Li IP Chaw Nyob lossis MAC Chaw Nyob
Siv ifconfig Command kom sib sau Cov Ntaub Ntawv Network Xws Li IP Chaw Nyob lossis MAC Chaw Nyob
Siv ifconfig Command kom sib sau Cov Ntaub Ntawv Network Xws Li IP Chaw Nyob lossis MAC Chaw Nyob
Siv ifconfig Command kom sib sau Cov Ntaub Ntawv Network Xws Li IP Chaw Nyob lossis MAC Chaw Nyob
Siv ifconfig Command kom sib sau Cov Ntaub Ntawv Network Xws Li IP Chaw Nyob lossis MAC Chaw Nyob
Siv ifconfig Command kom sib sau Cov Ntaub Ntawv Network Xws Li IP Chaw Nyob lossis MAC Chaw Nyob

1) Ntaus "Ifconfig" rau hauv Terminal ces nias nkag mus

3) Koj tus IP chaw nyob yuav tshwm ntawm inet (Raws li tau hais tseg hauv daim duab thib ob)

4) Koj qhov chaw nyob Mac yuav tshwm ntawm ether (Raws li tau hais tseg hauv daim duab thib peb)

Kauj Ruam 3: Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab

Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab
Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab
Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab
Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab
Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab
Siv Cd Command kom Taw Qhia Los Ntawm Koj Cov Ntawv Teev Npe Ex: Rub Tawm, Duab, Duab

1) Ntaus "meej" tom qab ntawd nias nkag mus txhawm rau tshem tawm txhua cov ntaub ntawv nce thiab tawm ntawm lub vijtsam ua ntej cov kauj ruam tom ntej, nws tso cai rau koj coj cov teeb meem tawm ntawm cov ntaub ntawv tsis xav tau

2) Ntaus "cd ~/rub tawm" tom qab ntawd nias nkag mus thiab qhov no yuav txav koj mus rau koj li kev rub npe

4) Ntaus "ls" rau hauv Terminal tom qab ntawd nias nkag mus txhawm rau tso saib cov ntaub ntawv nyob hauv cov npe ntawd (rub tawm)

(HINT: Nco ntsoov tias koj siv L thiab tsis yog i)

4) koj kuj tseem tuaj yeem siv "cd.." rov qab mus rau cov npe saum toj kawg nkaus kom tuaj yeem txav mus rau lwm qhov

Kauj Ruam 4: Siv Arp Command los Qhia Lub Rooj Ntawm Cov Khoom Siv Nrog Lawv Tus IP thiab MAC Chaw Nyob

Siv Arp Command los Qhia Lub Rooj Ntawm Cov Khoom Siv Nrog Lawv Tus IP thiab MAC Chaw Nyob
Siv Arp Command los Qhia Lub Rooj Ntawm Cov Khoom Siv Nrog Lawv Tus IP thiab MAC Chaw Nyob

1) Ntaus "meej" tom qab ntawv nyem nkag mus txhawm rau tshem tawm txhua cov ntaub ntawv thiab tawm ntawm lub vijtsam kom pib tshiab

2) Hom "arp -a" tom qab ntawv nyem qhov no yuav qhia koj cov cuab yeej txuas nrog koj lub network thiab lawv tus IP thiab MAC chaw nyob sib xws

(HINT: Nco ntsoov tias koj tso ib qho chaw nruab nrab ntawm arp thiab -a)

Pom zoo: