CINXE.COM
intro(1) — manpages — Debian bookworm — Debian Manpages
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>intro(1) — manpages — Debian bookworm — Debian Manpages</title> <style type="text/css"> @font-face { font-family: 'Inconsolata'; src: local('Inconsolata'), url(/Inconsolata.woff2) format('woff2'), url(/Inconsolata.woff) format('woff'); font-display: swap; } @font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto Regular'), local('Roboto-Regular'), url(/Roboto-Regular.woff2) format('woff2'), url(/Roboto-Regular.woff) format('woff'); font-display: swap; } body { color: #000; background-color: white; background-image: linear-gradient(to bottom, #d7d9e2, #fff 70px); background-position: 0 0; background-repeat: repeat-x; font-family: sans-serif; font-size: 100%; line-height: 1.2; letter-spacing: 0.15px; margin: 0; padding: 0; } #header { padding: 0 10px 0 52px; } #logo { position: absolute; top: 0; left: 0; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; width: 50px; height: 5.07em; min-height: 65px; } #logo a { display: block; height: 100%; } #logo img { margin-top: 5px; position: absolute; bottom: 0.3em; overflow: auto; border: 0; } p.section { margin: 0; padding: 0 5px 0 5px; font-size: 13px; line-height: 16px; color: white; letter-spacing: 0.08em; position: absolute; top: 0px; left: 52px; background-color: #c70036; } p.section a { color: white; text-decoration: none; } .hidecss { display: none; } #searchbox { text-align:left; line-height: 1; margin: 0 10px 0 0.5em; padding: 1px 0 1px 0; position: absolute; top: 0; right: 0; font-size: .75em; } #navbar { border-bottom: 1px solid #c70036; } #navbar ul { margin: 0; padding: 0; overflow: hidden; } #navbar li { list-style: none; float: left; } #navbar a { display: block; padding: 1.75em .5em .25em .5em; color: #0035c7; text-decoration: none; border-left: 1px solid transparent; border-right: 1px solid transparent; } #navbar a:hover , #navbar a:visited:hover { background-color: #f5f6f7; border-left: 1px solid #d2d3d7; border-right: 1px solid #d2d3d7; text-decoration: underline; } a:link { color: #0035c7; } a:visited { color: #54638c; } #breadcrumbs { line-height: 2; min-height: 20px; margin: 0; padding: 0; font-size: 0.75em; background-color: #f5f6f7; border-bottom: 1px solid #d2d3d7; } #breadcrumbs:before { margin-left: 0.5em; margin-right: 0.5em; } #content { margin: 0 10px 0 52px; display: flex; flex-direction: row; word-wrap: break-word; } .paneljump { background-color: #d70751; padding: 0.5em; border-radius: 3px; margin-right: .5em; display: none; } .paneljump a, .paneljump a:visited, .paneljump a:hover, .paneljump a:focus { color: white; } @media all and (max-width: 800px) { #content { flex-direction: column; margin: 0.5em; } .paneljump { display: block; } } .panels { display: block; order: 2; } .maincontent { width: 100%; max-width: 80ch; order: 1; } .mandoc { font-family: monospace; font-size: 1.04rem; } .mandoc pre { white-space: pre-wrap; } #footer { border: 1px solid #dfdfe0; border-left: 0; border-right: 0; background-color: #f5f6f7; padding: 1em; margin: 1em 10px 0 52px; font-size: 0.75em; line-height: 1.5em; } hr { border-top: 1px solid #d2d3d7; border-bottom: 1px solid white; border-left: 0; border-right: 0; margin: 1.4375em 0 1.5em 0; height: 0; background-color: #bbb; } #content p { padding-left: 1em; } a, a:hover, a:focus, a:visited { color: #0530D7; text-decoration: none; } .panel { padding: 15px; margin-bottom: 20px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-heading, .panel details { margin: -15px -15px 0px; background-color: #d70751; border-bottom: 1px solid #dddddd; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading, .panel summary { padding: 5px 5px; font-size: 17.5px; font-weight: 500; color: #ffffff; outline-style: none; } .panel summary { padding-left: 7px; } summary, details { display: block; } .panel details ul { margin: 0; } .panel-footer { padding: 5px 5px; margin: 15px -15px -15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-info { border-color: #bce8f1; } .panel-info .panel-heading { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .list-group { padding-left: 0; margin-bottom: 20px; background-color: #ffffff; } .list-group-item { position: relative; display: block; padding: 5px 5px 5px 5px; margin-bottom: -1px; border: 1px solid #dddddd; } .list-group-item > .list-item-key { min-width: 27%; display: inline-block; } .list-group-item > .list-item-key.versions-repository { min-width: 40%; } .list-group-item > .list-item-key.versioned-links-version { min-width: 40% } .versioned-links-icon { margin-right: 2px; } .versioned-links-icon a { color: black; } .versioned-links-icon a:hover { color: blue; } .versioned-links-icon-inactive { opacity: 0.5; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .list-group-item:hover { background-color: #f5f5f5; } .list-group-item.active a { z-index: 2; } .list-group-item.active { background-color: #efefef; } .list-group-flush { margin: 15px -15px -15px; } .panel .list-group-flush { margin-top: -1px; } .list-group-flush .list-group-item { border-width: 1px 0; } .list-group-flush .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .list-group-flush .list-group-item:last-child { border-bottom: 0; } .panel { float: right; clear: right; min-width: 200px; } .toc { width: 200px; } .toc li { font-size: 98%; letter-spacing: 0.02em; display: flex; } .otherversions { width: 200px; } .otherversions li, .otherlangs li { display: flex; } .otherversions a, .otherlangs a { flex-shrink: 0; } .pkgversion, .pkgname, .toc a { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .pkgversion, .pkgname { margin-left: auto; padding-left: 1em; } .mandoc { overflow: hidden; margin-top: .5em; margin-right: 45px; } table.head, table.foot { width: 100%; } .head-vol { text-align: center; } .head-rtitle { text-align: right; } .spacer, .Pp { min-height: 1em; } pre { margin-left: 2em; } .anchor { margin-left: .25em; visibility: hidden; } h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { visibility: visible; } h1, h2, h3, h4, h5, h6 { letter-spacing: .07em; margin-top: 1.5em; margin-bottom: .35em; } h1 { font-size: 150%; } h2 { font-size: 125%; } @media print { #header, #footer, .panel, .anchor, .paneljump { display: none; } #content { margin: 0; } .mandoc { margin: 0; } } .Bd { } .Bd-indent { margin-left: 3.8em; } .Bl-bullet { list-style-type: disc; padding-left: 1em; } .Bl-bullet > li { } .Bl-dash { list-style-type: none; padding-left: 0em; } .Bl-dash > li:before { content: "\2014 "; } .Bl-item { list-style-type: none; padding-left: 0em; } .Bl-item > li { } .Bl-compact > li { margin-top: 0em; } .Bl-enum { padding-left: 2em; } .Bl-enum > li { } .Bl-compact > li { margin-top: 0em; } .Bl-diag { } .Bl-diag > dt { font-style: normal; font-weight: bold; } .Bl-diag > dd { margin-left: 0em; } .Bl-hang { } .Bl-hang > dt { } .Bl-hang > dd { margin-left: 5.5em; } .Bl-inset { } .Bl-inset > dt { } .Bl-inset > dd { margin-left: 0em; } .Bl-ohang { } .Bl-ohang > dt { } .Bl-ohang > dd { margin-left: 0em; } .Bl-tag { margin-left: 5.5em; } .Bl-tag > dt { float: left; margin-top: 0em; margin-left: -5.5em; padding-right: 1.2em; vertical-align: top; } .Bl-tag > dd { clear: both; width: 100%; margin-top: 0em; margin-left: 0em; vertical-align: top; overflow: auto; } .Bl-compact > dt { margin-top: 0em; } .Bl-column { } .Bl-column > tbody > tr { } .Bl-column > tbody > tr > td { margin-top: 1em; } .Bl-compact > tbody > tr > td { margin-top: 0em; } .Rs { font-style: normal; font-weight: normal; } .RsA { } .RsB { font-style: italic; font-weight: normal; } .RsC { } .RsD { } .RsI { font-style: italic; font-weight: normal; } .RsJ { font-style: italic; font-weight: normal; } .RsN { } .RsO { } .RsP { } .RsQ { } .RsR { } .RsT { text-decoration: underline; } .RsU { } .RsV { } .eqn { } .tbl { } .HP { margin-left: 3.8em; text-indent: -3.8em; } table.Nm { } code.Nm { font-style: normal; font-weight: bold; font-family: inherit; } .Fl { font-style: normal; font-weight: bold; font-family: inherit; } .Cm { font-style: normal; font-weight: bold; font-family: inherit; } .Ar { font-style: italic; font-weight: normal; } .Op { display: inline; } .Ic { font-style: normal; font-weight: bold; font-family: inherit; } .Ev { font-style: normal; font-weight: normal; font-family: monospace; } .Pa { font-style: italic; font-weight: normal; } .Lb { } code.In { font-style: normal; font-weight: bold; font-family: inherit; } a.In { } .Fd { font-style: normal; font-weight: bold; font-family: inherit; } .Ft { font-style: italic; font-weight: normal; } .Fn { font-style: normal; font-weight: bold; font-family: inherit; } .Fa { font-style: italic; font-weight: normal; } .Vt { font-style: italic; font-weight: normal; } .Va { font-style: italic; font-weight: normal; } .Dv { font-style: normal; font-weight: normal; font-family: monospace; } .Er { font-style: normal; font-weight: normal; font-family: monospace; } .An { } .Lk { } .Mt { } .Cd { font-style: normal; font-weight: bold; font-family: inherit; } .Ad { font-style: italic; font-weight: normal; } .Ms { font-style: normal; font-weight: bold; } .St { } .Ux { } .Bf { display: inline; } .No { font-style: normal; font-weight: normal; } .Em { font-style: italic; font-weight: normal; } .Sy { font-style: normal; font-weight: bold; } .Li { font-style: normal; font-weight: normal; font-family: monospace; } body { font-family: 'Roboto', sans-serif; } .mandoc, .mandoc pre, .mandoc code, p.section { font-family: 'Inconsolata', monospace; } </style> <link rel="search" title="Debian manpages" type="application/opensearchdescription+xml" href="/opensearch.xml"> <link rel="alternate" href="/bookworm/manpages-cs/intro.1.cs.html" hreflang="cs"> <link rel="alternate" href="/bookworm/manpages-da/intro.1.da.html" hreflang="da"> <link rel="alternate" href="/bookworm/manpages-de/intro.1.de.html" hreflang="de"> <link rel="alternate" href="/bookworm/manpages/intro.1.en.html" hreflang="en"> <link rel="alternate" href="/bookworm/manpages-es/intro.1.es.html" hreflang="es"> <link rel="alternate" href="/bookworm/manpages-fr/intro.1.fr.html" hreflang="fr"> <link rel="alternate" href="/bookworm/manpages-it/intro.1.it.html" hreflang="it"> <link rel="alternate" href="/bookworm/manpages-ja/intro.1.ja.html" hreflang="ja"> <link rel="alternate" href="/bookworm/manpages-nl/intro.1.nl.html" hreflang="nl"> <link rel="alternate" href="/bookworm/manpages-pl/intro.1.pl.html" hreflang="pl"> <link rel="alternate" href="/bookworm/manpages-pt-br/intro.1.pt_BR.html" hreflang="pt-BR"> <link rel="alternate" href="/bookworm/manpages-ru/intro.1.ru.html" hreflang="ru"> <link rel="alternate" href="/bookworm/manpages-sv/intro.1.sv.html" hreflang="sv"> <link rel="alternate" href="/bookworm/manpages-uk/intro.1.uk.html" hreflang="uk"> <link rel="alternate" href="/bookworm/manpages-zh/intro.1.zh_CN.html" hreflang="zh-CN"> <link rel="alternate" href="/bookworm/manpages-zh/intro.1.zh_TW.html" hreflang="zh-TW"> </head> <body> <div id="header"> <div id="upperheader"> <div id="logo"> <a href="https://www.debian.org/" title="Debian Home"><img src="/openlogo-50.svg" alt="Debian" width="50" height="61"></a> </div> <p class="section"><a href="/">MANPAGES</a></p> <div id="searchbox"> <form action="https://dyn.manpages.debian.org/jump" method="get"> <input type="hidden" name="suite" value="bookworm"> <input type="hidden" name="binarypkg" value="manpages"> <input type="hidden" name="section" value="1"> <input type="hidden" name="language" value="en"> <input type="text" name="q" placeholder="manpage name" required> <input type="submit" value="Jump"> </form> </div> </div> <div id="navbar"> <p class="hidecss"><a href="#content">Skip Quicknav</a></p> <ul> <li><a href="/">Index</a></li> <li><a href="/about.html">About Manpages</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="https://wiki.debian.org/manpages.debian.org">Service Information</a></li> </ul> </div> <p id="breadcrumbs"> / <a href="/contents-bookworm.html">bookworm</a> / <a href="/bookworm/manpages/index.html">manpages</a> / intro(1) </p> </div> <div id="content"> <div class="panels" id="panels"> <div class="panel" role="complementary"> <div class="panel-heading" role="heading"> links </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a href="/bookworm/manpages/intro.1">language-indep link</a> </li> <li class="list-group-item"> <a href="https://tracker.debian.org/pkg/manpages">package tracker</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.1.en.gz">raw man page</a> </li> </ul> </div> </div> <div class="panel toc" role="complementary" style="padding-bottom: 0"> <details> <summary> table of contents </summary> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a class="toclink" href="#NAME" title="NAME">NAME</a> </li> <li class="list-group-item"> <a class="toclink" href="#DESCRIPTION" title="DESCRIPTION">DESCRIPTION</a> </li> <li class="list-group-item"> <a class="toclink" href="#NOTES" title="NOTES">NOTES</a> </li> <li class="list-group-item"> <a class="toclink" href="#SEE_ALSO" title="SEE ALSO">SEE ALSO</a> </li> </ul> </div> </details> </div> <div class="panel otherversions" role="complementary"> <div class="panel-heading" role="heading"> other versions </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item active"> <a href="/bookworm/manpages/intro.1.en.html">bookworm</a> <span class="pkgversion" title="6.03-2">6.03-2</span> </li> <li class="list-group-item"> <a href="/testing/manpages/intro.1.en.html">testing</a> <span class="pkgversion" title="6.8-2">6.8-2</span> </li> <li class="list-group-item"> <a href="/unstable/manpages/intro.1.en.html">unstable</a> <span class="pkgversion" title="6.9.1-1">6.9.1-1</span> </li> </ul> </div> </div> <div class="panel otherlangs" role="complementary"> <div class="panel-heading" role="heading"> other languages </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a href="/bookworm/manpages-cs/intro.1.cs.html" title="Czech (cs)">čeština</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-da/intro.1.da.html" title="Danish (da)">dansk</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-de/intro.1.de.html" title="German (de)">Deutsch</a> </li> <li class="list-group-item active"> <a href="/bookworm/manpages/intro.1.en.html" title="English (en)">English</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-es/intro.1.es.html" title="Spanish (es)">español</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-fr/intro.1.fr.html" title="French (fr)">français</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-it/intro.1.it.html" title="Italian (it)">italiano</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-ja/intro.1.ja.html" title="Japanese (ja)">日本語</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-nl/intro.1.nl.html" title="Dutch (nl)">Nederlands</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-pl/intro.1.pl.html" title="Polish (pl)">polski</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-pt-br/intro.1.pt_BR.html" title="Brazilian Portuguese (pt_BR)">português (pt-BR)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-ru/intro.1.ru.html" title="Russian (ru)">русский</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-sv/intro.1.sv.html" title="Swedish (sv)">svenska</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-uk/intro.1.uk.html" title="Ukrainian (uk)">українська</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-zh/intro.1.zh_CN.html" title="Chinese (zh_CN)">中文 (zh-CN)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-zh/intro.1.zh_TW.html" title="Chinese (zh_TW)">繁體中文 (zh-TW)</a> </li> </ul> </div> </div> <div class="panel" role="complementary"> <div class="panel-heading" role="heading"> other sections </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item active"> <a href="/bookworm/manpages/intro.1.en.html">1 (<span title="Executable programs or shell commands">progs</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/freebsd-manpages/intro.2freebsd.en.html">2freebsd (<span title="System calls (functions provided by the kernel)">syscalls</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.2.en.html">2 (<span title="System calls (functions provided by the kernel)">syscalls</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.3.en.html">3 (<span title="Library calls (functions within program libraries)">libfuncs</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/linuxcnc-uspace-dev/intro.3hal.en.html">3hal (<span title="Library calls (functions within program libraries)">libfuncs</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/linuxcnc-uspace-dev/intro.3rtapi.en.html">3rtapi (<span title="Library calls (functions within program libraries)">libfuncs</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.4.en.html">4 (<span title="Special files (usually found in /dev)">files</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/freebsd-manpages/intro.4freebsd.en.html">4freebsd (<span title="Special files (usually found in /dev)">files</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.5.en.html">5 (<span title="File formats and conventions eg /etc/passwd">formats</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.6.en.html">6 (<span title="Games">games</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.7.en.html">7 (<span title="Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)">misc</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/mandos/intro.8mandos.en.html">8mandos (<span title="System administration commands (usually only for root)">sysadmin</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/intro.8.en.html">8 (<span title="System administration commands (usually only for root)">sysadmin</span>)</a> </li> <li class="list-group-item"> <a href="/bookworm/freebsd-manpages/intro.9freebsd.en.html">9freebsd (<span title="Kernel routines [Non standard]">kernel</span>)</a> </li> </ul> </div> </div> </div> <div class="maincontent"> <p class="paneljump"><a href="#panels">Scroll to navigation</a></p> <div class="mandoc"> <table class="head"> <tbody><tr> <td class="head-ltitle"><a href="/bookworm/manpages/intro.1.en.html">intro(1)</a></td> <td class="head-vol">General Commands Manual</td> <td class="head-rtitle"><a href="/bookworm/manpages/intro.1.en.html">intro(1)</a></td> </tr> </tbody></table> <div class="manual-text"> <section class="Sh"> <h1 class="Sh" id="NAME">NAME<a class="anchor" href="#NAME">¶</a></h1> <p class="Pp">intro - introduction to user commands</p> </section> <section class="Sh"> <h1 class="Sh" id="DESCRIPTION">DESCRIPTION<a class="anchor" href="#DESCRIPTION">¶</a></h1> <p class="Pp">Section 1 of the manual describes user commands and tools, for example, file manipulation tools, shells, compilers, web browsers, file and image viewers and editors, and so on.</p> </section> <section class="Sh"> <h1 class="Sh" id="NOTES">NOTES<a class="anchor" href="#NOTES">¶</a></h1> <p class="Pp">Linux is a flavor of UNIX, and as a first approximation all user commands under UNIX work precisely the same under Linux (and FreeBSD and lots of other UNIX-like systems).</p> <p class="Pp">Under Linux, there are GUIs (graphical user interfaces), where you can point and click and drag, and hopefully get work done without first reading lots of documentation. The traditional UNIX environment is a CLI (command line interface), where you type commands to tell the computer what to do. That is faster and more powerful, but requires finding out what the commands are. Below a bare minimum, to get started.</p> <section class="Ss"> <h2 class="Ss" id="Login">Login<a class="anchor" href="#Login">¶</a></h2> <p class="Pp">In order to start working, you probably first have to open a session by giving your username and password. The program <a href="/bookworm/login/login.1.en.html">login(1)</a> now starts a <i>shell</i> (command interpreter) for you. In case of a graphical login, you get a screen with menus or icons and a mouse click will start a shell in a window. See also <a href="/bookworm/xterm/xterm.1.en.html">xterm(1)</a>.</p> </section> <section class="Ss"> <h2 class="Ss" id="The_shell">The shell<a class="anchor" href="#The_shell">¶</a></h2> <p class="Pp">One types commands to the <i>shell</i>, the command interpreter. It is not built-in, but is just a program and you can change your shell. Everybody has their own favorite one. The standard one is called <i>sh</i>. See also <a href="/bookworm/ash/ash.1.en.html">ash(1)</a>, <a href="/bookworm/bash/bash.1.en.html">bash(1)</a>, <a href="/bookworm/passwd/chsh.1.en.html">chsh(1)</a>, <b>csh</b>(1), <a href="/bookworm/dash/dash.1.en.html">dash(1)</a>, <b>ksh</b>(1), <a href="/bookworm/zsh-common/zsh.1.en.html">zsh(1)</a>.</p> <p class="Pp">A session might go like:</p> <p class="Pp"> <br/> </p> <pre>knuth login: <b>aeb</b> Password: <b>********</b> $ <b>date</b> Tue Aug 6 23:50:44 CEST 2002 $ <b>cal</b> <br/> August 2002 Su Mo Tu We Th Fr Sa <br/> 1 2 3 <br/> 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 $ <b>ls</b> bin tel $ <b>ls -l</b> total 2 drwxrwxr-x 2 aeb 1024 Aug 6 23:51 bin -rw-rw-r-- 1 aeb 37 Aug 6 23:52 tel $ <b>cat tel</b> maja 0501-1136285 peter 0136-7399214 $ <b>cp tel tel2</b> $ <b>ls -l</b> total 3 drwxr-xr-x 2 aeb 1024 Aug 6 23:51 bin -rw-r--r-- 1 aeb 37 Aug 6 23:52 tel -rw-r--r-- 1 aeb 37 Aug 6 23:53 tel2 $ <b>mv tel tel1</b> $ <b>ls -l</b> total 3 drwxr-xr-x 2 aeb 1024 Aug 6 23:51 bin -rw-r--r-- 1 aeb 37 Aug 6 23:52 tel1 -rw-r--r-- 1 aeb 37 Aug 6 23:53 tel2 $ <b>diff tel1 tel2</b> $ <b>rm tel1</b> $ <b>grep maja tel2</b> maja 0501-1136285 $ </pre> <br/> <p class="Pp">Here typing Control-D ended the session.</p> <p class="Pp">The <b>$</b> here was the command prompt—it is the shell's way of indicating that it is ready for the next command. The prompt can be customized in lots of ways, and one might include stuff like username, machine name, current directory, time, and so on. An assignment PS1="What next, master? " would change the prompt as indicated.</p> <p class="Pp">We see that there are commands <i>date</i> (that gives date and time), and <i>cal</i> (that gives a calendar).</p> <p class="Pp">The command <i>ls</i> lists the contents of the current directory—it tells you what files you have. With a <i>-l</i> option it gives a long listing, that includes the owner and size and date of the file, and the permissions people have for reading and/or changing the file. For example, the file "tel" here is 37 bytes long, owned by aeb and the owner can read and write it, others can only read it. Owner and permissions can be changed by the commands <i>chown</i> and <i>chmod</i>.</p> <p class="Pp">The command <i>cat</i> will show the contents of a file. (The name is from "concatenate and print": all files given as parameters are concatenated and sent to "standard output" (see <a href="/bookworm/manpages-dev/stdout.3.en.html">stdout(3)</a>), here the terminal screen.)</p> <p class="Pp">The command <i>cp</i> (from "copy") will copy a file.</p> <p class="Pp">The command <i>mv</i> (from "move"), on the other hand, only renames it.</p> <p class="Pp">The command <i>diff</i> lists the differences between two files. Here there was no output because there were no differences.</p> <p class="Pp">The command <i>rm</i> (from "remove") deletes the file, and be careful! it is gone. No wastepaper basket or anything. Deleted means lost.</p> <p class="Pp">The command <i>grep</i> (from "g/re/p") finds occurrences of a string in one or more files. Here it finds Maja's telephone number.</p> </section> <section class="Ss"> <h2 class="Ss" id="Pathnames_and_the_current_directory">Pathnames and the current directory<a class="anchor" href="#Pathnames_and_the_current_directory">¶</a></h2> <p class="Pp">Files live in a large tree, the file hierarchy. Each has a <i>pathname</i> describing the path from the root of the tree (which is called <i>/</i>) to the file. For example, such a full pathname might be <i>/home/aeb/tel</i>. Always using full pathnames would be inconvenient, and the name of a file in the current directory may be abbreviated by giving only the last component. That is why <i>/home/aeb/tel</i> can be abbreviated to <i>tel</i> when the current directory is <i>/home/aeb</i>.</p> <p class="Pp">The command <i>pwd</i> prints the current directory.</p> <p class="Pp">The command <i>cd</i> changes the current directory.</p> <p class="Pp">Try alternatively <i>cd</i> and <i>pwd</i> commands and explore <i>cd</i> usage: "cd", "cd .", "cd ..", "cd /", and "cd ~".</p> </section> <section class="Ss"> <h2 class="Ss" id="Directories">Directories<a class="anchor" href="#Directories">¶</a></h2> <p class="Pp">The command <i>mkdir</i> makes a new directory.</p> <p class="Pp">The command <i>rmdir</i> removes a directory if it is empty, and complains otherwise.</p> <p class="Pp">The command <i>find</i> (with a rather baroque syntax) will find files with given name or other properties. For example, "find . -name tel" would find the file <i>tel</i> starting in the present directory (which is called <i>.</i>). And "find / -name tel" would do the same, but starting at the root of the tree. Large searches on a multi-GB disk will be time-consuming, and it may be better to use <a href="/bookworm/manpages-ja/locate.1.ja.html">locate(1)</a>.</p> </section> <section class="Ss"> <h2 class="Ss" id="Disks_and_filesystems">Disks and filesystems<a class="anchor" href="#Disks_and_filesystems">¶</a></h2> <p class="Pp">The command <i>mount</i> will attach the filesystem found on some disk (or floppy, or CDROM or so) to the big filesystem hierarchy. And <i>umount</i> detaches it again. The command <i>df</i> will tell you how much of your disk is still free.</p> </section> <section class="Ss"> <h2 class="Ss" id="Processes">Processes<a class="anchor" href="#Processes">¶</a></h2> <p class="Pp">On a UNIX system many user and system processes run simultaneously. The one you are talking to runs in the <i>foreground</i>, the others in the <i>background</i>. The command <i>ps</i> will show you which processes are active and what numbers these processes have. The command <i>kill</i> allows you to get rid of them. Without option this is a friendly request: please go away. And "kill -9" followed by the number of the process is an immediate kill. Foreground processes can often be killed by typing Control-C.</p> </section> <section class="Ss"> <h2 class="Ss" id="Getting_information">Getting information<a class="anchor" href="#Getting_information">¶</a></h2> <p class="Pp">There are thousands of commands, each with many options. Traditionally commands are documented on <i>man pages</i>, (like this one), so that the command "man kill" will document the use of the command "kill" (and "man man" document the command "man"). The program <i>man</i> sends the text through some <i>pager</i>, usually <i>less</i>. Hit the space bar to get the next page, hit q to quit.</p> <p class="Pp">In documentation it is customary to refer to man pages by giving the name and section number, as in <a href="/bookworm/man-db/man.1.en.html">man(1)</a>. Man pages are terse, and allow you to find quickly some forgotten detail. For newcomers an introductory text with more examples and explanations is useful.</p> <p class="Pp">A lot of GNU/FSF software is provided with info files. Type "info info" for an introduction on the use of the program <i>info</i>.</p> <p class="Pp">Special topics are often treated in HOWTOs. Look in <i>/usr/share/doc/howto/en</i> and use a browser if you find HTML files there.</p> </section> </section> <section class="Sh"> <h1 class="Sh" id="SEE_ALSO">SEE ALSO<a class="anchor" href="#SEE_ALSO">¶</a></h1> <p class="Pp"><a href="/bookworm/ash/ash.1.en.html">ash(1)</a>, <a href="/bookworm/bash/bash.1.en.html">bash(1)</a>, <a href="/bookworm/passwd/chsh.1.en.html">chsh(1)</a>, <b>csh</b>(1), <a href="/bookworm/dash/dash.1.en.html">dash(1)</a>, <b>ksh</b>(1), <a href="/bookworm/manpages-ja/locate.1.ja.html">locate(1)</a>, <a href="/bookworm/login/login.1.en.html">login(1)</a>, <a href="/bookworm/man-db/man.1.en.html">man(1)</a>, <a href="/bookworm/xterm/xterm.1.en.html">xterm(1)</a>, <a href="/bookworm/zsh-common/zsh.1.en.html">zsh(1)</a>, <a href="/bookworm/manpages-dev/wait.2.en.html">wait(2)</a>, <a href="/bookworm/manpages-dev/stdout.3.en.html">stdout(3)</a>, <a href="/bookworm/manpages/man-pages.7.en.html">man-pages(7)</a>, <a href="/bookworm/manpages/standards.7.en.html">standards(7)</a></p> </section> </div> <table class="foot"> <tbody><tr> <td class="foot-date">2023-02-05</td> <td class="foot-os">Linux man-pages 6.03</td> </tr> </tbody></table> </div> </div> </div> <div id="footer"> <p><table> <tr> <td> Source file: </td> <td> intro.1.en.gz (from <a href="http://snapshot.debian.org/package/manpages/6.03-2/">manpages 6.03-2</a>) </td> </tr> <tr> <td> Source last updated: </td> <td> 2023-04-30T10:42:06Z </td> </tr> <tr> <td> Converted to HTML: </td> <td> 2024-11-18T15:13:14Z </td> </tr> </table></p> <hr> <div id="fineprint"> <p>debiman c35ad7d, see <a href="https://github.com/Debian/debiman/">github.com/Debian/debiman</a>. Found a problem? See the <a href="/faq.html">FAQ</a>.</p> </div> </div> <script type="application/ld+json"> "{\"@context\":\"http://schema.org\",\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"Thing\",\"@id\":\"/contents-bookworm.html\",\"name\":\"bookworm\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"Thing\",\"@id\":\"/bookworm/manpages/index.html\",\"name\":\"manpages\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@type\":\"Thing\",\"@id\":\"\",\"name\":\"intro(1)\"}}]}" </script>