फ्रेंडली इंटरैक्टिव शेल जिसे संक्षिप्त में FISH कहा जाता है, यूनिक्स और यूनिक्स-जैसे ऑपरेटिंग सिस्टम्स के लिए एक शेल है। यह कई अमूल्य सुधारों के साथ एक अद्वितीय और अभिनव कमांड लाइन एनवायरनमेंट है। फिश को किसी अन्य शेल जैसे bash या ZSH के साथ काम करने के लिए डिज़ाइन किया गया है। अन्य शेल्स के विपरीत जो डिफ़ॉल्ट रूप से प्रोसेस रिसोर्स बचाने के लिए कई तत्वों को अक्षम करते हैं, FISH उन सभी को डिफ़ॉल्ट रूप से सक्षम रखता है ताकि इसका अधिकतम लाभ उठाया जा सके।
विशेषताएं
- यह एक यूजर-फ्रेंडली और इंटरैक्टिव शेल है
- इसमें कई शक्तिशाली विशेषताएं हैं
- इनबिल्ट वेब-बेस्ड कॉन्फिगरेशन
- यह ग्लोरियस VGA कलर और 256 टर्मिनल कलर्स को सपोर्ट करता है
- X क्लिपबोर्ड सपोर्टेड
- एरर चेकिंग क्षमताएं
- FISH डॉक्यूमेंटेशन देखने के लिए हेल्प कमांड
- तीर कुंजी का उपयोग करके सुझावों का चयन
FISH इंस्टॉल करना
फिश इंस्टॉल करने के लिए, इसे Python software Properties की आवश्यकता होती है, पायथन इंस्टॉल करने के लिए निम्न कमांड का उपयोग करें:
$ sudo apt-get install python-software-properties
सैंपल आउटपुट इस तरह होना चाहिए:
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: python-pycurl Suggested packages: libcurl4-gnutls-dev python-pycurl-dbg The following NEW packages will be installed: python-pycurl python-software-properties 0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded. Need to get 67.5 kB of archives. After this operation, 358 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://in.archive.ubuntu.com/ubuntu/ trusty/main python-pycurl amd64 7.19.3-0ubuntu3 [47.9 kB] Get:2 https://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe python-software-properties all 0.92.37.7 [19.6 kB] Fetched 67.5 kB in 1s (45.9 kB/s) Selecting previously unselected package python-pycurl. (Reading database ... 218616 files and directories currently installed.) Preparing to unpack .../python-pycurl_7.19.3-0ubuntu3_amd64.deb ... Unpacking python-pycurl (7.19.3-0ubuntu3) ... ..................................................
अब, हमें नीचे दिखाए अनुसार fish रिपॉजिटरी को कॉल करना चाहिए:
$ sudo add-apt-repository ppa:fish-shell/nightly-master
आउटपुट इस तरह होना चाहिए:
This repository contains regular builds of the most recent source of Fish shell, built from the Git master trunk at https://github.com/fish-shell/fish-shell/. More info: https://launchpad.net/~fish-shell/+archive/ubuntu/nightly-master Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmpzn3dsxqj/secring.gpg' created gpg: keyring `/tmp/tmpzn3dsxqj/pubring.gpg' created gpg: requesting key 6DC33CA5 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpzn3dsxqj/trustdb.gpg: trustdb created gpg: key 6DC33CA5: public key "Launchpad PPA for Fish shell maintainers" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK
लिनक्स पैकेजेस को अपडेट करने के लिए निम्न कमांड का उपयोग करें:
$ sudo apt-get update
फिश इंस्टॉल करने के लिए, निम्न कमांड का उपयोग करें:
$ sudo apt-get install fish
आउटपुट इस तरह होना चाहिए:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic linux-signed-image-4.2.0-27-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed: xsel The following NEW packages will be installed: fish xsel 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1,187 kB of archives. After this operation, 6,568 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://ppa.launchpad.net/fish-shell/nightly-master/ubuntu/ trusty/main fish amd64 2.2.0-680-ga701264-1~trusty [1,166 kB] Get:2 https://in.archive.ubuntu.com/ubuntu/ trusty/universe xsel amd64 1.2.0-2 [20.6 kB] Fetched 1,187 kB in 4s (284 kB/s) .................................
फिश शेल उपयोग करना
फिश शेल कमांड लाइन उपयोग करने के लिए, निम्न कमांड का उपयोग करें:
$ fish
सैंपल आउटपुट इस तरह होना चाहिए:
Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish
इंस्टॉल किए गए फिश का वर्जन चेक करने के लिए, निम्न कमांड का उपयोग करें:
$ echo $FISH_VERSION
सैंपल आउटपुट इस तरह होना चाहिए:
2.2.0-680-ga701264
ऑटो सजेशन प्राप्त करने के लिए, बस "da" लिखें, यह नीचे दिखाए अनुसार ऑटो सजेशन्स दिखाएगा:
$ date
आउटपुट इस तरह होना चाहिए:
Tue Mar 15 11:29:50 IST 2016
फिश के बारे में अधिक जानकारी प्राप्त करने के लिए। निम्न कमांड का उपयोग करें:
$ help
सैंपल आउटपुट इस तरह होना चाहिए:

रियल टाइम में इंटेलिजेंट कलर सिलेक्शन स्वचालित रूप से प्राप्त करने के लिए, निम्न कमांड का उपयोग करें:
$ echo "I am loving tutorialspoint"
आउटपुट इस तरह होना चाहिए:
I am loving tutorialspoint
फिश को डिफ़ॉल्ट शेल बनाने के लिए, निम्न कमांड का उपयोग करें:
$ chsh -s /usr/bin/fish
पिछले शेल पर वापस स्विच करने के लिए, निम्न कमांड का उपयोग करें:
$ chsh -s /bin/bash
बधाई हो! अब, आप जानते हैं "फिश - लिनक्स के लिए एक स्मार्ट और यूजर-फ्रेंडली इंटरैक्टिव शेल का उपयोग कैसे करें"। हम अपने अगले लिनक्स पोस्ट में इस प्रकार के कमांड्स के बारे में और सीखेंगे। पढ़ते रहें!