I use the Linux command line extensively, both on my local machine or when I'm connected to a remote server. मैं Linux कमांड लाइन बड़े पैमाने पर इस्तेमाल करते हैं, दोनों अपने स्थानीय मशीन पर है या जब मैं एक दूरस्थ सर्वर से जुड़ा हुआ हूँ. There are some keyboard shortcuts that I want to share with you which have made my life on BASH a lot easier. कोई कुंजीपटल शॉर्टकट है कि मैं आप के साथ साझा पर पार्टी की योजना बनाई है जो मेरी जिंदगी बना दिया है एक बहुत आसान चाहते हैं. I have not come across too many books that have documented these shortcuts and I think they are quite important to improve your productivity while on the command line. मैं भी कई किताबें है कि ये शॉर्टकट दस्तावेज तैयार किया है और मुझे लगता है कि वे काफी अपनी उत्पादकता में सुधार महत्वपूर्ण हैं भर में नहीं आया है, जबकि कमांड लाइन पर.
1. 1. Ctrl + r Ctrl + R
This keyboard shortcut is for running a reverse search in your command line. इस कुंजीपटल शॉर्टकट आपके कमांड लाइन में एक रिवर्स खोज चलाने के लिए है. To use this shortcut hold down the “Control” key in your terminal interface and hit the “r” while the “Control” key is still pressed. इस शॉर्टकट का उपयोग अपने टर्मिनल इंटरफ़ेस में नीचे पकड़ "नियंत्रण कुंजी" और "r" समय "नियंत्रण कुंजी" अभी भी दबाव है मारा. you should get a message like this: तुम इस तरह एक संदेश होना चाहिए:
(reverse-i-search)`': (रिवर्स-i-खोज) ` ':
Now begin typing a command you used earlier. अब एक कमांड तुम पहले करते थे टाइप करना आरंभ करें. BASH will automatically complete your command. मार स्वचालित रूप से आपकी कमान पूरी कर लेगा. You can keep hitting the “Ctrl + r” combination to search further. आप "Ctrl खोज r" संयोजन को और अधिक + मार रख सकते हैं.
2. 2. Ctrl + a Ctrl + A
This shortcut makes your cursor jump to the beginning of the line. इस शॉर्टकट पंक्ति की शुरुआत को अपने कर्सर छलांग बनाता है. When you have typed a few works in your terminal hit the key combination of “Control + a” and you will reach the beginning of the line you are typing in. जब आप अपने टर्मिनल में कुछ काम करता है टाइप है "के नियंत्रण कुंजी संयोजन + एक" और तुम लाइन तुम्हें अंदर टाइप कर रहे हैं की शुरुआत तक पहुंच जाएगा मारा
3. 3. Ctrl + e Ctrl + ई
This shortcut is similar to the previous one, except it makes your cursor jump to the other end of the line, the end. इस शॉर्टकट पिछले एक के समान है, सिवाय यह पंक्ति के दूसरे सिरे को अपने कर्सर कूद, अंत करता है. Type this key combination when in the middle of a line you are typing and you will jump right to the end of the line. इस कुंजी संयोजन प्रकार जब एक लाइन और आप टाइप कर रहे हैं आप लाइन के अंत तक सही कूद जाएगा के बीच में.
4. 4. Ctrl + w Ctrl + W
Using this shortcut will result in the deletion of one word to the left of the cursor. इस शॉर्टकट का प्रयोग एक शब्द का विलोपन में कर्सर की बाईं के लिए परिणाम होगा. So if you are in the middle of a line that you are typing hitting “Control + w” will delete one word before the cursor. तो अगर तुम एक लाइन के बीच में है कि तुम मार "नियंत्रण टाइप कर रहे हैं + w" कर्सर से पहले एक शब्द को हटाना होगा.
5. 5. ESC + d ईएससी + D
This shortcut is the opposite of the previous one. इस शॉर्टकट पिछले एक के विपरीत है. Hitting “Escape + d” in your terminal will delete one word to the right of the cursor. मार "एस्केप + घ 'में अपने टर्मिनल कर्सर के दाईं ओर एक शब्द को हटाना होगा.
6. 6. Ctrl + k Ctrl + K
This is a very powerful shortcut and must be used with caution. यह एक बहुत शक्तिशाली शॉर्टकट है और सावधानी के साथ किया जाना चाहिए. It deletes all the data to the right of the cursor in the line that you are typing in. यह लाइन में कर्सर के अधिकार के लिए सभी डेटा नष्टकरण कि तुम अंदर टाइप कर रहे हैं
7. 7. Ctrl + u Ctrl + U
This is again a very powerful shortcut and must be used with caution. इस बार एक बहुत शक्तिशाली शॉर्टकट है और सावधानी के साथ किया जाना चाहिए. It deletes all the data to the left of the cursor in the line that you are typing in. Remember that once you run this shortcut you can not get back the text that you have typed. यह लाइन में कर्सर की बाईं कि तुम अंदर टाइप कर रहे हैं याद रखें कि एक बार आप इस शॉर्टकट आप वापस मूल पाठ इस प्रकार है कि आप टाइप नहीं कर सकते हैं चलाने के लिए सभी डेटा नष्टकरण.























Always appreciate the extra knowledge! हमेशा अतिरिक्त जानकारी की सराहना करते हैं! Thanks for sharing! साझा करने के लिए धन्यवाद!
> Remember that once you run this shortcut you can not get back याद है> कि एक बार आप इस शॉर्टकट तुम वापस नहीं चला सकता हूँ
> the text that you have typed. मूल पाठ इस प्रकार है कि आप टाइप है>.
Not true. सच नहीं है. All the shortcuts you mentioned that remove anything from the command line will place a copy in the kill buffer. सभी शॉर्टकट तुम कहा कि कमांड लाइन से कुछ दूर मार बफर में एक प्रतिलिपि जगह होगी. You can yank it from the buffer using CTRL-y आप इसे CTRL प्रयोग बफर से झटका-y कर सकते हैं
Ya Ben is right. हां बेन सही है. In fact every Emacs users are comfortable with these defaults bash keybindings cause they are often the same as Emacs. वास्तव में हर Emacs उपयोक्ता इन चूक मार keybindings कारण वे अक्सर Emacs के रूप में ही हैं साथ आराम कर रहे हैं.
I can't understand who could prefer that ^^, but there's also a vi-mode for bash (for readline) : “set -o vi” (”set -o emacs” to get back in the good way :-p). मैं समझ सकता है कि जो पसंद ^ ^ है, लेकिन वहाँ भी एक vi-मार (readline के लिए) के लिए साधन नहीं है: "निर्धारित कर सकते हैं-o vi (" सेट ओ emacs "को अच्छी तरह से वापस ले:-p) .
As a noob, I appreciate the info एक noob के रूप में, मैं जानकारी की सराहना करते हैं