shell.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="generator" content="GitLab Pages">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <title>Dayalan Saravanan's homepage</title>
  8. <link rel="stylesheet" type="text/css" href="style.css"/>
  9. </head>
  10. <body style="background: #ffffff;" onload="onPageLoad();">
  11. <div>
  12. <header>
  13. <h2>Dayalan Saravanan</h2>
  14. </header>
  15. <nav>
  16. <a href="index.html" class="current">Home</a> &nbsp;&nbsp;
  17. <a href="datascience.html">DataScience</a> &nbsp;&nbsp;
  18. <a href="linux.html">Linux</a> &nbsp;&nbsp;
  19. <a href="math.html">Math</a> &nbsp;&nbsp;
  20. <a href="music.html">Music</a> &nbsp;&nbsp;
  21. <a href="numerical.html">Numerical</a> &nbsp;&nbsp;
  22. <a href="programming.html">Programming</a>
  23. </nav>
  24. </div>
  25. <hr />
  26. <h4>Shells on a Linux system:</h4>
  27. <p>The file <code>/etc/shells</code> gives an overview of known shells on a Linux
  28. system:</p>
  29. <pre><code>$ cat /etc/shells
  30. /bin/bash
  31. /bin/sh
  32. /bin/tcsh
  33. /bin/csh
  34. </code></pre>
  35. <p>Your default shell is set in the <code>/etc/passwd</code> file, like this line
  36. for user euclid:</p>
  37. <pre><code>euclid:L2NOfqdlPrHwE:504:504:Euclid:/home/euclid:/bin/bash</code></pre>
  38. <p>To switch from one shell to another, just enter the name of the new shell in the
  39. active terminal. The system finds the directory where the name occurs using the
  40. <code>PATH</code> settings, and since a shell is an executable file, the current
  41. shell activates it and it gets executed. A new prompt is usually shown, because each
  42. shell has its typical appearence:</p>
  43. <pre><code>$ tcsh
  44. [euclid@machine ~]$
  45. </code></pre>
  46. <hr />
  47. <footer><span>&copy;</span> 2020 Dayalan Saravanan</footer>
  48. </body>
  49. </html>