Sida loogu celiyo amarkii ugu dambeeyay ee Linux adoon isticmaalin furayaasha fallaadha

Sida loo soo celiyo amarkii ugu dambeeyay ee Linux adoon isticmaalin furayaasha fallaadha: (How to repeat the last command in Linux without using the arrow keys: ) Hagaag mararka qaarkood waxaad dooneysaa inaad ku celiso amarkii hore ee khadka taliska markaad la shaqeyneyso nidaamyada Linux iyo sidoo kale adigoon isticmaalin furayaasha fallaadha markaa ma jirto hab gaar ah oo taas loo sameeyo laakiin halkan Cilad-sheegaha waxaanu ku taxnay dhammaan siyaabaha kala duwan ee tan loo sameeyo.

Si aad ugu celiso amarada waxaad sida caadiga ah isticmaali kartaa csh hore! hawlwadeenka taariikhda "!!" (aan lahayn xigasho) amarkii ugu dambeeyay, haddii aad rabto inaad ku celiso amarkii hore markaa waxaad isticmaali kartaa !-2, !foo kii ugu dambeeyay ee ka bilaabmaya hoos-u-dhigga "foo." Waxa kale oo aad isticmaali kartaa amarka fc ama kaliya isticmaal :p si aad u daabacdo soo jeedinta hawlwadeenka taariikhda.

Sida loogu celiyo amarkii ugu dambeeyay ee Linux adoon isticmaalin furayaasha fallaadha

Aynu aragno qaar ka mid ah siyaabaha dib loogu soo celin karo amarrada isla markiiba qolofka:

Habka 1: Loogu talagalay csh ama qolof kasta oo hirgelinaya beddelka taariikhda csh u eg

!!
Then press Enter

OR

!-1
Then press Enter

Or

Ctrl+P then press Enter

Fiiro gaar ah:(Note:) !! ama !-1 si toos ah kuuguma fidi doono ilaa aad fulinayso waxa laga yaabaa inay daahday.

Haddii aad isticmaasho bash, waxaad ku dhejin kartaa booska: magic-space ~/.bashrc ka dib ka dib booska saxaafadda amarka ayaa si toos ah u ballaarin doona khadka.

Habka 2: Isticmaal Emacs furaha xidhitaanka

Inta badan qolofka leh qaabka daabacaadda khadka taliska ee taageera xirmooyinka muhiimka ah ee Emacs :

Up Ctrl+P
Down Ctrl+N
Left Ctrl+B
Right Ctrl+F
Home Ctrl+A
End Ctrl+E
Delete Ctrl+D

Habka 3: Isticmaal CTRL + P ka dibna CTRL + O

Markaad riixdo CTRL CTRL + P waxay kuu ogolaan doontaa inaad u beddesho amarka ugu dambeeya oo aad riixdo CTRL + O waxay kuu ogolaan doontaa inaad fuliso khadka hadda. Xusuusin: CTRL + O waxaa loo isticmaali karaa inta jeer ee aad rabto.

Habka 3: Isticmaalka amarka fc

fc -e : -1

For example:

$ echo "Troubleshooter"
Troubleshooter

$ fc -e : -1
echo "Troubleshooter"
Troubleshooter

Sidoo kale akhri,  How to Restore files from lost+found

Habka 4: Isticmaal !<bilawga amarka>

Csh ama qolof kasta oo fulinaya beddelka taariikhda csh-sida (tcsh, bash, zsh), waxaad isticmaali kartaa !

For example:

$ tail example.txt
$ less file.txt
$ !ta
!ta would execute tail example.txt

Habka 5: Haddii ay dhacdo in la isticmaalo MAC aad awoodo furaha

Waad xidhi kartaa ?+R ilaa 0x0C 0x10 0x0d. Tani waxay nadiifin doontaa terminalka waxayna socodsiin doontaa amarka ugu dambeeya.

Taasi waa waxa aad si guul leh u baratay  sida loogu celiyo amarkii ugu dambeeyay ee Linux adoon isticmaalin furayaasha fallaadha(How to repeat the last command in Linux without using the arrow keys) laakiin haddii aad wali wax su'aalo ah ka qabto boostadan xor u tahay inaad ku waydiiso qaybta faallooyinka.



About the author

Waxaan ahay injineer software ah oo khibrad u leh Xbox Explorer, Microsoft Excel, iyo Windows 8.1 Explorer. Waqtiga firaaqada, waxaan jeclahay inaan ciyaaro ciyaaraha fiidiyaha oo aan daawado TV-ga. Waxaan shahaadada ka qaatay Jaamacadda Utah, waxaanan hadda u shaqeynayaa sidii injineer software ah oo shirkad caalami ah.



Related posts