Telly long commands in Linux



Telly long commands in Linux

Suffers a lot of Linux users, the difficulty of Tdkr some commands, either because they are long or because it is a vehicle, but you can avoid Hedda it through the creation of a special order your Taatdl using the command alias and which in Arabic means "nickname" where we can shortcut commands long or difficult remember to hope is easy to remember.


Benefits alias:

  •  Tabut any amendment is to integrate multiple commands together ‪, ‬ or even merging ordered with several options such as merging ‬ and it ls-l option to become the only ls and thus benefit from the option-l for Adhar powers onscreen for each file only through the command ls.
  • The establishment of a new order any you will add something not present your own 
  • Shortcut commands that are difficult to Tdla long and used too much.

Create Alias:

To create a shortcut to what you Sue doing the alias name and then it was a new thing that you want to shortening, such as 
alias ayoub = 'ls-l'
Here in the example we have created something we called the New ayoub doing it ls-l 
It also can modify a command such as
alias rm = 'rm-i'

Here we have to modify the command rm and wasted his option-i in order to confirm the request of the tribes scan any file

Remove Alias:

Enough to remove the alias Execution only after it unalias name of the shortcut, for example,
unalias ayoub
Hecda may be removed by the abbreviation my father we had before we added 

Taatbeth alias:

Orders that we have added, of course, is not reserved for this once close Altermainal we must re-abbreviated again for this order Ntbethha Aj writing it follows.
echo "alias ayoub = 'ls-l'" >>. bashrc


You may also be home to a folder Tdhb Adhar been hidden folders with CTRL + H and Find. Bashrc and add a command to it as we did before, as in the picture:



  You can add anything you want if there are any questions, please put them in comments

ليست هناك تعليقات:

إرسال تعليق

جميع حقوق الطبع والنشر © محفوظة لموقع تعليم

يتم التشغيل بواسطة Blogger.