A cikin labarin na gaba zamuyi la'akari da Wataƙila. Tare da wannan kayan aikin zamu iya samun sauƙin sani menene ainihin umarni ko shirin zasu yi kafin aiwatar dashi kai tsaye daga tashar. Za mu cimma wannan tare da Wataƙila. Amfani gudanar da matakai a ƙarƙashin ikon ptrace (tare da taimakon ɗakin karatu Python-ptrace). Kayan aikin zai fara aiki lokacin da ya katse kiran tsarin da yake shirin yin canje-canje ga tsarin fayil. Zai shiga wannan kiran sannan kuma ya sake yin rajistar CPU don tura kiran zuwa syscall id mara inganci (yadda ya kamata juya shi a cikin wani «babu aiki«) Kuma saita darajar waccan kira mara aiki ga wanda ke nuna nasarar kiran na asali.
Wannan kayan aiki ne mai sauƙi wanda zai bamu damar aiwatar da umarni kuma duba abin da yake yi wa fayilolinmu ba tare da aikata shi ba. Bayan nazarin sakamakon da za'a lissafa, zamu iya yanke hukunci idan da gaske muna son aiwatar dashi ko a'a.
Sanya Wataƙila akan Ubuntu
Domin amfani da wannan kayan aikin, dole ne mu tabbatar da hakan sun shigar pip a cikin tsarinmu Gnu / Linux. Idan ba mu girka shi ba, za mu iya yin sa ta hanya mai sauƙi kamar yadda aka nuna a ƙasa. Zamu iya amfani da m (Ctrl + Alt T) a ciki Debian, Ubuntu da Linux Mint rubuta umarnin mai zuwa:
sudo apt-get install python-pip
Lokacin da muka riga mun sanya pip a cikin tsarinmu, zamu iya aiwatar da wannan umarnin zuwa shigar Wataƙila daga m:
sudo pip install maybe
Zamu iya koyo game da wannan kayan aikin a shafin GitHub na aikin.
Yadda ake sanin menene umarni ko shiri zasuyi kafin aiwatar dashi
Amfani da wannan kayan aiki yana da matuƙar sauƙi. Dole ne kawai muyi hakan Maybeara Wataƙila a gaban umarnin cewa muna son aiwatarwa a tasharmu. A matsayin misali zaku iya ganin umarnin da na rubuta a cikin tashar tawa:
maybe rm -r Ubunlog/
Kuna iya ganin zan share ta amfani da umarnin "rm"Babban fayil da ake kira"ubunlog»Daga tsarina. A cikin kama mai zuwa zaku iya ganin fitowar da umarni ya nuna min a cikin tashar:
Mai yiwuwa kayan aikin zasuyi ayyukan fayil guda 6 kuma ni ya nuna ainihin abin da wannan umarnin zai yi (rm -r Ubunlog /). Yanzu zan iya yanke shawara ko ya kamata in yi wannan aikin. Wannan misali ne mai sauki, amma ina tsammanin zaku iya ganin menene ra'ayin kayan aikin.
Idan har mai amfani bai gama bayyana ba, ga wani misali. Zan shigar da abokin cinikin tebur inboxer don Gmel. Don wannan zan je babban fayil ɗin da na zazzage fayil ɗin. AppImage kuma ƙaddamar da shi tare da Wataƙila. Wannan shine abin da tsarin ya nuna min a cikin tashar (Ctrl + Alt + T):
maybe ./inboxer-0.4.0-x86_64.AppImage
Idan har kayan aikin basu gano ba babu aiki akan tsarin fayil, tashar zata nuna mana sako cewa bata gano wani aiki akan tsarin fayil ba, don haka ba zata nuna gargadi ba.
Daga yanzu, za mu iya samun sauƙin sanin abin da umarni ko shiri zai yi kafin ma aiwatar da shi. A sakamakon haka, tsarin yayi imanin cewa duk abin da kuke ƙoƙarin aikatawa a zahiri yana faruwa, alhali a zahiri ba haka bane.
Uninstall Wata kila
Don cire wannan kayan aikin daga tsarin aikin mu, kawai zamuyi amfani da zaɓi na cirewa na pip. Don yin wannan, mun buɗe tashar (Ctrl + Alt + T) kuma muyi rubutu a ciki:
sudo pip uninstall maybe
Gargadi
Dole ne mu yi hankali sosai yayin amfani da wannan mai amfani akan tsarin samarwa ko a cikin kowane tsarin tare da bayanai masu mahimmanci. Wannan ba kayan aiki bane don gudanar da lambar tabbatacce akan tsarinmu. Tsarin da ke gudana ƙarƙashin Wataƙila yana iya haifar da mummunan lahani ga tsarinmu saboda kawai 'yan kiran tsarin da aka toshe. Hakanan zamu iya tabbatar idan anyi aiki kamar share fayil da shi kiran waya karanta-kawai kuma gyara halinta yadda yakamata.
A ce mutum yana da mummunan ra'ayin gudu rm -r / * a matsayin mai gudanarwa