Yuav Ua Li Cas Khiav Bash Tsab Ntawv

Cov txheej txheem:

Yuav Ua Li Cas Khiav Bash Tsab Ntawv
Yuav Ua Li Cas Khiav Bash Tsab Ntawv

Video: Yuav Ua Li Cas Khiav Bash Tsab Ntawv

Video: Yuav Ua Li Cas Khiav Bash Tsab Ntawv
Video: Tsis Muaj Peev Xwm Yuav Ua Li Cas 2024, Hlis ntuj nqeg
Anonim

Lub khauj khaum bash, nruab rau yuav luag txhua qhov kev ua haujlwm ntawm Linux tsev neeg, muaj cov txheej txheem hais kom ua kom zoo dua uas tso cai rau koj txhim kho cov ntawv sau nrog cov nplua nuj ua haujlwm. Cov ntawv sau zoo li no yog qhov ubiquitous ntawm Linux systems. Koj tuaj yeem khiav bash tsab ntawv los ntawm kev teeb tsa qhov tsim nyog rau nws thiab muaj txoj cai uas tsim nyog.

Yuav ua li cas khiav bash tsab ntawv
Yuav ua li cas khiav bash tsab ntawv

Tsim nyog

  • - tus lej ntawm hom phiaj tshuab;
  • - tej zaum hauv paus.

Cov Lus Qhia

Kauj ruam 1

Nkag mus rau hauv lub console rau ntawm lub tshuab uas cov ntawv sau yuav tsum tau tua. Pib lub davhlau ya nyob twg emulator (konsole, XTerm, thiab lwm yam) lossis hloov mus rau cov ntawv nyeem khawm los ntawm nias ib ntawm Ctrl + Alt + Fx keyboard shortcuts. Yog tias tsis muaj lub cev nkag mus rau lub khoos phis tawm, txuas rau nws lub network uas siv ssh client (piv txwv li PuTTY hauv Windows lossis ssh hauv Linux). Yog tias yuav tsum tau, ntaus koj tus lej ntaub ntawv

Kauj ruam 2

Hloov cov ntawv qhia tam sim no mus rau ib qhov chaw ntawm cov ntawv sau cov ntaub ntawv nyob. Qhov no yuav tsum tau ua kom yooj yim rau kev ua haujlwm ntxiv. Siv daim cd hais kom ua, qhov ntsuas ntawm qhov uas yuav tsum yog txoj kev tsis muaj tseeb lossis txoj kev txheeb ze rau lub hom phiaj. Piv txwv li: cd / tsev / tmp / Koj kuj tseem tuaj yeem siv tus tuav ntaub ntawv zoo li Midnight Commander

Kauj ruam 3

Hloov cov kev tso cai ntawm cov ntawv sau yog tsim nyog. Ua kom nws siv tau thiab kho tau nrog koj tus lej. Yog tias koj yog tus tswv ntawm cov ntaub ntawv, khiav lub chmod hais kom ua, hloov cov kev tso cai. Piv txwv: chmod 0755./test.sh Yog tias cov ntaub ntawv yog tus tswv ntawm lwm tus neeg siv, tom qab ntawd ib ntus teeb tsa kev tso cai rau 0777 los ntawm kev khiav chmod nrog sudo, lossis hloov tus tswv thiab pab pawg nrog chown (kuj los ntawm sudo). Yog tias koj siv tus thawj tswj hwm cov ntaub ntawv, cov kev ua no yuav yooj yim dua rau ua nrog nws cov kev pab (hauv Midnight Commander no yog cov khoom sib xws ntawm Cov Ntawv Qhia Cov Ntawv)

Kauj ruam 4

Txheeb xyuas thiab, yog tias tsim nyog, kho cov ntawv sau nrog txoj hauv kev rau tus neeg txhais lus bash tom qab tus #! Cov cim rau ntawm thawj kab. Siv koj cov ntawv nyeem xav tau. Piv txwv vim los sis Ib tag hmo Commander editor. Txuag hloov kho cov ntawv sau

Kauj ruam 5

Khiav cov bash tsab ntawv. Nkag mus rau hauv lub console qhov meej lossis qhov chaw txheeb ze rau cov ntawv qhia nrog cov ntawv sau, nws lub npe, thiab tsis, yog tias tsim nyog. Nias ENTER.

Pom zoo: