Ama-aliases: Izinqamuleli zesikhumulo

Akukho okufana ne-terminal, ubulula bayo, ukusebenza kwayo kahle kanye nejubane layo okusisizayo osukwini lwethu nosuku xazulula imisebenzi eziyisisekelo noma eziyinkimbinkimbi, kusuka ekuqambeni kabusha amaqoqo amakhulu wamafayela, noma nokuguqula umtapo wolwazi wethu womculo ube yifomethi ye-vorbis. Konke kwenza esikhathini se- isikhathi esincane kakhulu kunabalingani babo bokuqhafaza.

isinqamuleli

Kepha senzani lapho kufanele ngekhanda inani elikhulu lemiyalo?.

Ake sicabange njengomsebenzisi ojwayelekile: Bangazizwa bekhungathekile kakhulu inani lemiyalo okufanele bayisebenzise, ​​ngobunzima babo nemisebenzi yabo ehlukile (futhi angibasoli ngempela). Ekuboneni kokuqala izinto ezinjengalezi zingakuphonsa emuva lapho uqala ukusebenzisa i-terminal. Mane ubale izikhathi esizwe ngazo okufana nokuthi:

«Hheyi, wawunjani lowo myalo wokufaka ukhiye we-usb? Ngimbeke kabi futhi ngaphezulu kunginike iphutha»

Noma funda okuthile cishe okungenakugwemeka:

maxwell@triskel $> sudo aptt-get install foo
bash: aptt-get: orden no encontrada

Futhi ngaphandle kokuthi sibe "nephepha lokukhohlisa" elihle ngayo yonke imiyalo yethu, noma ukwehluleka lokho kube yimemori enhle, besingeke siphume 100% kukhonsoli yethu. Uma uvame ukusebenzisa i-terminal ngamandla, ngeke uphike ukuthi ngemuva kokubhala imiyalo eminingi kangaka bangasidida, futhi basicasule. Ngenhlanhla sinayo alias, sithathe umyalo omude futhi obanzi futhi sawabela isinqamuleli esincane, esifushanisiwe, okulula ukusikhumbula nokubhala.

Isibonelo, sinemiyalo:

sudo apt-get install
sudo apt-get remove
sudo apt-get update
apt-cache search

Impela kuzoshesha futhi kube lula ngawe ukuthayipha lokhu:

apt-sys
apt-ren
apt-up
apt-find

Ukwenza lokhu, okumele ukwenze ukuvula ifayela lakho kusihleli sombhalo. .bashrc (uma usebenzisa igobolondo njenge bashuma usebenzisa zhs bangene .zshrc), bese ungeza okufana:

alias apt-sys='sudo apt-get install'
alias apt-ren='sudo apt-get remove'
alias apt-up='sudo apt-get update'
alias apt-find='apt-cache search'

Futhi akupheleli lapho, singangeza imisebenzi eminingi ewusizo, kusuka ekuvuleni uziphu, ukulalela umculo ngokungahleliwe kusuka enkombeni, ukucindezela, ukwazi usuku, izikhumbuzo, ukuhamba phakathi kwezinkomba, njll.

Kungenzeka futhi ukuthi ungeze umbala othile kubo nge- "echo" futhi uxoxele nemicimbi yomsindo kubo nge- yobe o olg123.

Ezinye izibonelo eziyisisekelo ngokuhamba kwemikhombandlela:

## Dir shortcuts
alias atras='cd ..'
alias documentos='cd ~/documentos'
alias descargas='cd ~/descargas'
alias imagenes='cd ~/imagenes'
alias videos='cd ~/videos'

Noma, ukwenza okuthile okuyinkimbinkimbi kakhulu, okulungile kakhulu kungaba bhala umbhalo ohlukile, ukuze singagcwalisi ifayili lethu kakhulu .bashrc.

Ekugcineni ngishiya ezinye izibizo zami, uqobo:

##Actualizar Trisquel
alias apt-dist!!='echo -e "\e[1;31mPeligro, peligro, que vas \e[1;37ma actualizar la distro entera o_o" && sudo apt-get update;apt-get -f -y dist-upgrade'
##Formatear
alias format?='sudo mkfs.vfat -F 32 -n'
##Editar bashrc
alias bash?='ne ~/.bashrc'
##Ver versión de Trisquel
alias trisquel?='cat /etc/lsb-release'
##Abrir navegador w3m
alias galeon?='echo -e "\e[0;32m:: :: ::\e[1;37mGaleon iniciado\e[0;32m:: :: ::" && sleep 2 && w3m http://trisquel.info/es'
##Salir
alias e?='exit'
##Dispositivos conectados
alias usb?='dmesg | grep sd'
##Saber el día y la hora
alias hoy?='echo -e "\e[1;31mPor favor deja de ser \e[1;37mtan vago, \e[1;33mmira que hoy es\e[1;32m:" && date "+%Y-%m-%d %A %T %Z" && echo -e "\e[1;37m Además yo no soy tu niñera -__-"'

Futhi unama-aliases amahle ongabelana ngawo?

Iziqhumane ngokuyikho

Futhi ngalokhu siphetha lokhu kubuyekezwa okuncane kuma-aliases nokusetshenziswa kwawo, khumbula ukuthi uma ufuna ukuqeda noma yimaphi ama-aliases ungasebenzisa insiza alias:

unalias mi-alias

Ukususa i-alias.

unalias a

Ukususa zonke izibizo kufayela le- .bashrc.

Noma, uma umuntu ebahlukumeza kungenzeka ukuthi ugcina ukhohlwe imiyalo yangempela (njengami) kungcono kakhulu ukuzisebenzisa kancane.

Ngiyethemba ukuthi manje uma ungathola ijusi ethe xaxa kumatheminali akho, manje ukonga okungenani isikhashana. Nibe nempelasonto enhle kakhulu, sizofunda ngokuhamba kwesikhathi.

Ukubingelela


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-10, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   abel kusho

    Izibizo ezibusisiwe ezenza impilo ibe lula kithina, zisenza ubuvila ngokwengeziwe. i-xD

    Bengikade ngiba nokuningi kakhulu kepha njengoba usho, ekugcineni ugcina ukhohlwa imiyalo yangempela ngakho-ke manje ngisebenzisa okumbalwa ukusetha okuncamelayo.

    Ukubingelela ne-athikili enhle.

    1.    KZKG ^ Gaara kusho

      Kwenzeka into efanayo kimi ... ngagcina ngikhohlwa umyalo, ngoba ngangisebenzisa ama-aliases kukho konke haha ​​...
      Manje ngisebenzisa eyodwa ukufaka ama-ISOs futhi ukukhipha umsindo kufayela levidiyo, izinto ezimbili engingavamile ukuzenza hehe 😉

      Ukubingelela ne-athikili enhle 😀

      1.    Maxwell kusho

        Ngiyabonga, ngiyajabula ukuthi kube wusizo.

        Ukubingelela

  2.   Ren434 kusho

    Uma kuyiqiniso umuntu ugcina ekhohlwa imiyalo eminingi yangempela hahaha xD, yingakho ngiyisebenzisa kuphela manje ukukhipha iSudo, futhi ngicabanga ukuthi angisoze ngawukhohlwa lowo.
    Yize uma ngikhohlwe umyalo othile 'we-apropos' insindiso.

    1.    Ren434 kusho

      hhawu! Yeka ukuthi zifuna ukwazi kangakanani, futhi zinkulu kangakanani lezi zinhlayiya, bengingazazi.

      Futhi ukudada i-xD, ngithola ukuthi kukhona ama-chops ngisho nama-emac, kepha angiboni lutho lweChakra. Ngizobona ukuthi ngenza eyodwa bese ngilaba lapha.

    2.    KZKG ^ Gaara kusho

      Eqinisweni sibeka isikhathi esithile esidlule lapha hehe: https://blog.desdelinux.net/cubos-comandos-para-distros-gnulinux/

  3.   kufanelekile kusho

    ikati le-bash-4.1 $ .bashrc
    sh / usr / bin / screenfetch-dev
    alias ls = »ls -p -color = okuzenzakalelayo»
    I-bash-4.1 $

    Leyo yifayela lami le-.bashrc xD

    1.    KZKG ^ Gaara kusho

      O_O … WTF !!!

  4.   I-AurosZx kusho

    Ngangivame ukusebenzisa ama-aliases kancane, kepha hhayi kuze kube seqophelweni lokukhohlwa imiyalo yoqobo… Impela ziwusizo olukhulu 🙂