You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

568 lines
20 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  5. <head>
  6. <!-- 2023-02-02 Thu 16:34 -->
  7. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1" />
  9. <title>Lab 1 Amirlan Sharipov (BS21-CS-01)</title>
  10. <meta name="author" content="Amirlan Sharipov (BS21-CS-01)" />
  11. <meta name="generator" content="Org Mode" />
  12. <style>
  13. #content { max-width: 60em; margin: auto; }
  14. .title { text-align: center;
  15. margin-bottom: .2em; }
  16. .subtitle { text-align: center;
  17. font-size: medium;
  18. font-weight: bold;
  19. margin-top:0; }
  20. .todo { font-family: monospace; color: red; }
  21. .done { font-family: monospace; color: green; }
  22. .priority { font-family: monospace; color: orange; }
  23. .tag { background-color: #eee; font-family: monospace;
  24. padding: 2px; font-size: 80%; font-weight: normal; }
  25. .timestamp { color: #bebebe; }
  26. .timestamp-kwd { color: #5f9ea0; }
  27. .org-right { margin-left: auto; margin-right: 0px; text-align: right; }
  28. .org-left { margin-left: 0px; margin-right: auto; text-align: left; }
  29. .org-center { margin-left: auto; margin-right: auto; text-align: center; }
  30. .underline { text-decoration: underline; }
  31. #postamble p, #preamble p { font-size: 90%; margin: .2em; }
  32. p.verse { margin-left: 3%; }
  33. pre {
  34. border: 1px solid #e6e6e6;
  35. border-radius: 3px;
  36. background-color: #f2f2f2;
  37. padding: 8pt;
  38. font-family: monospace;
  39. overflow: auto;
  40. margin: 1.2em;
  41. }
  42. pre.src {
  43. position: relative;
  44. overflow: auto;
  45. }
  46. pre.src:before {
  47. display: none;
  48. position: absolute;
  49. top: -8px;
  50. right: 12px;
  51. padding: 3px;
  52. color: #555;
  53. background-color: #f2f2f299;
  54. }
  55. pre.src:hover:before { display: inline; margin-top: 14px;}
  56. /* Languages per Org manual */
  57. pre.src-asymptote:before { content: 'Asymptote'; }
  58. pre.src-awk:before { content: 'Awk'; }
  59. pre.src-authinfo::before { content: 'Authinfo'; }
  60. pre.src-C:before { content: 'C'; }
  61. /* pre.src-C++ doesn't work in CSS */
  62. pre.src-clojure:before { content: 'Clojure'; }
  63. pre.src-css:before { content: 'CSS'; }
  64. pre.src-D:before { content: 'D'; }
  65. pre.src-ditaa:before { content: 'ditaa'; }
  66. pre.src-dot:before { content: 'Graphviz'; }
  67. pre.src-calc:before { content: 'Emacs Calc'; }
  68. pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
  69. pre.src-fortran:before { content: 'Fortran'; }
  70. pre.src-gnuplot:before { content: 'gnuplot'; }
  71. pre.src-haskell:before { content: 'Haskell'; }
  72. pre.src-hledger:before { content: 'hledger'; }
  73. pre.src-java:before { content: 'Java'; }
  74. pre.src-js:before { content: 'Javascript'; }
  75. pre.src-latex:before { content: 'LaTeX'; }
  76. pre.src-ledger:before { content: 'Ledger'; }
  77. pre.src-lisp:before { content: 'Lisp'; }
  78. pre.src-lilypond:before { content: 'Lilypond'; }
  79. pre.src-lua:before { content: 'Lua'; }
  80. pre.src-matlab:before { content: 'MATLAB'; }
  81. pre.src-mscgen:before { content: 'Mscgen'; }
  82. pre.src-ocaml:before { content: 'Objective Caml'; }
  83. pre.src-octave:before { content: 'Octave'; }
  84. pre.src-org:before { content: 'Org mode'; }
  85. pre.src-oz:before { content: 'OZ'; }
  86. pre.src-plantuml:before { content: 'Plantuml'; }
  87. pre.src-processing:before { content: 'Processing.js'; }
  88. pre.src-python:before { content: 'Python'; }
  89. pre.src-R:before { content: 'R'; }
  90. pre.src-ruby:before { content: 'Ruby'; }
  91. pre.src-sass:before { content: 'Sass'; }
  92. pre.src-scheme:before { content: 'Scheme'; }
  93. pre.src-screen:before { content: 'Gnu Screen'; }
  94. pre.src-sed:before { content: 'Sed'; }
  95. pre.src-sh:before { content: 'shell'; }
  96. pre.src-sql:before { content: 'SQL'; }
  97. pre.src-sqlite:before { content: 'SQLite'; }
  98. /* additional languages in org.el's org-babel-load-languages alist */
  99. pre.src-forth:before { content: 'Forth'; }
  100. pre.src-io:before { content: 'IO'; }
  101. pre.src-J:before { content: 'J'; }
  102. pre.src-makefile:before { content: 'Makefile'; }
  103. pre.src-maxima:before { content: 'Maxima'; }
  104. pre.src-perl:before { content: 'Perl'; }
  105. pre.src-picolisp:before { content: 'Pico Lisp'; }
  106. pre.src-scala:before { content: 'Scala'; }
  107. pre.src-shell:before { content: 'Shell Script'; }
  108. pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
  109. /* additional language identifiers per "defun org-babel-execute"
  110. in ob-*.el */
  111. pre.src-cpp:before { content: 'C++'; }
  112. pre.src-abc:before { content: 'ABC'; }
  113. pre.src-coq:before { content: 'Coq'; }
  114. pre.src-groovy:before { content: 'Groovy'; }
  115. /* additional language identifiers from org-babel-shell-names in
  116. ob-shell.el: ob-shell is the only babel language using a lambda to put
  117. the execution function name together. */
  118. pre.src-bash:before { content: 'bash'; }
  119. pre.src-csh:before { content: 'csh'; }
  120. pre.src-ash:before { content: 'ash'; }
  121. pre.src-dash:before { content: 'dash'; }
  122. pre.src-ksh:before { content: 'ksh'; }
  123. pre.src-mksh:before { content: 'mksh'; }
  124. pre.src-posh:before { content: 'posh'; }
  125. /* Additional Emacs modes also supported by the LaTeX listings package */
  126. pre.src-ada:before { content: 'Ada'; }
  127. pre.src-asm:before { content: 'Assembler'; }
  128. pre.src-caml:before { content: 'Caml'; }
  129. pre.src-delphi:before { content: 'Delphi'; }
  130. pre.src-html:before { content: 'HTML'; }
  131. pre.src-idl:before { content: 'IDL'; }
  132. pre.src-mercury:before { content: 'Mercury'; }
  133. pre.src-metapost:before { content: 'MetaPost'; }
  134. pre.src-modula-2:before { content: 'Modula-2'; }
  135. pre.src-pascal:before { content: 'Pascal'; }
  136. pre.src-ps:before { content: 'PostScript'; }
  137. pre.src-prolog:before { content: 'Prolog'; }
  138. pre.src-simula:before { content: 'Simula'; }
  139. pre.src-tcl:before { content: 'tcl'; }
  140. pre.src-tex:before { content: 'TeX'; }
  141. pre.src-plain-tex:before { content: 'Plain TeX'; }
  142. pre.src-verilog:before { content: 'Verilog'; }
  143. pre.src-vhdl:before { content: 'VHDL'; }
  144. pre.src-xml:before { content: 'XML'; }
  145. pre.src-nxml:before { content: 'XML'; }
  146. /* add a generic configuration mode; LaTeX export needs an additional
  147. (add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
  148. pre.src-conf:before { content: 'Configuration File'; }
  149. table { border-collapse:collapse; }
  150. caption.t-above { caption-side: top; }
  151. caption.t-bottom { caption-side: bottom; }
  152. td, th { vertical-align:top; }
  153. th.org-right { text-align: center; }
  154. th.org-left { text-align: center; }
  155. th.org-center { text-align: center; }
  156. td.org-right { text-align: right; }
  157. td.org-left { text-align: left; }
  158. td.org-center { text-align: center; }
  159. dt { font-weight: bold; }
  160. .footpara { display: inline; }
  161. .footdef { margin-bottom: 1em; }
  162. .figure { padding: 1em; }
  163. .figure p { text-align: center; }
  164. .equation-container {
  165. display: table;
  166. text-align: center;
  167. width: 100%;
  168. }
  169. .equation {
  170. vertical-align: middle;
  171. }
  172. .equation-label {
  173. display: table-cell;
  174. text-align: right;
  175. vertical-align: middle;
  176. }
  177. .inlinetask {
  178. padding: 10px;
  179. border: 2px solid gray;
  180. margin: 10px;
  181. background: #ffffcc;
  182. }
  183. #org-div-home-and-up
  184. { text-align: right; font-size: 70%; white-space: nowrap; }
  185. textarea { overflow-x: auto; }
  186. .linenr { font-size: smaller }
  187. .code-highlighted { background-color: #ffff00; }
  188. .org-info-js_info-navigation { border-style: none; }
  189. #org-info-js_console-label
  190. { font-size: 10px; font-weight: bold; white-space: nowrap; }
  191. .org-info-js_search-highlight
  192. { background-color: #ffff00; color: #000000; font-weight: bold; }
  193. .org-svg { }
  194. </style>
  195. </head>
  196. <body>
  197. <div id="content" class="content">
  198. <h1 class="title">Lab 1 Amirlan Sharipov (BS21-CS-01)</h1>
  199. <div id="table-of-contents" role="doc-toc">
  200. <h2>Table of Contents</h2>
  201. <div id="text-table-of-contents" role="doc-toc">
  202. <ul>
  203. <li><a href="#org7571a9d">1. About this document</a></li>
  204. <li><a href="#orgf4668cc">2. Exercise 1</a></li>
  205. <li><a href="#orge29640a">3. Questions</a>
  206. <ul>
  207. <li><a href="#orge1aa2bd">3.1. Using hostname command:</a></li>
  208. <li><a href="#orgfd20bdc">3.2. Arch Linux.</a></li>
  209. <li><a href="#orge186e45">3.3. The root directory is &ldquo;/&rdquo;</a></li>
  210. <li><a href="#orgc55cfc1">3.4. /bin/bash vs /bin/sh</a></li>
  211. <li><a href="#org78ddece">3.5. Bash manual</a></li>
  212. <li><a href="#org65d1d72">3.6. Linux distributions I want to try</a>
  213. <ul>
  214. <li><a href="#orgf7d803e">3.6.1. NixOS</a></li>
  215. <li><a href="#org2fdefff">3.6.2. Gentoo Linux</a></li>
  216. <li><a href="#org9c9b380">3.6.3. Artix Linux</a></li>
  217. <li><a href="#org1bf8e90">3.6.4. LFS</a></li>
  218. <li><a href="#org896f88e">3.6.5. Alpine Linux</a></li>
  219. </ul>
  220. </li>
  221. <li><a href="#orgc4925a6">3.7. POSIX</a></li>
  222. <li><a href="#org520649a">3.8. Advantages of POSIX standards</a></li>
  223. <li><a href="#org7b5efac">3.9. Slackware vs Debian</a></li>
  224. <li><a href="#org12183b1">3.10. uname -a</a></li>
  225. </ul>
  226. </li>
  227. </ul>
  228. </div>
  229. </div>
  230. <div id="outline-container-org7571a9d" class="outline-2">
  231. <h2 id="org7571a9d"><span class="section-number-2">1.</span> About this document</h2>
  232. <div class="outline-text-2" id="text-1">
  233. <p>
  234. I use Org mode in Emacs to write documents and will use it throughout the course.
  235. It has a super useful feature: it can evaluate the code on the fly and save results in the buffer.
  236. Also it&rsquo;s easy to use latex inside Org mode. That&rsquo;s why I will use Org mode for this course.
  237. If there are any problems with that, please report in the comments in Moodle.
  238. </p>
  239. </div>
  240. </div>
  241. <div id="outline-container-orgf4668cc" class="outline-2">
  242. <h2 id="orgf4668cc"><span class="section-number-2">2.</span> Exercise 1</h2>
  243. <div class="outline-text-2" id="text-2">
  244. <p>
  245. Code:
  246. </p>
  247. <div class="org-src-container">
  248. <pre class="src src-bash">lsb_release -a
  249. </pre>
  250. </div>
  251. <pre class="example">
  252. -e LSB Version: n/a
  253. -e Distributor ID: Arch
  254. -e Description: Arch Linux
  255. -e Release: rolling
  256. -e Codename: n/a
  257. </pre>
  258. <p>
  259. Code:
  260. </p>
  261. <div class="org-src-container">
  262. <pre class="src src-bash">whoami
  263. </pre>
  264. </div>
  265. <pre class="example">
  266. rinri
  267. </pre>
  268. <p>
  269. Code:
  270. </p>
  271. <div class="org-src-container">
  272. <pre class="src src-bash">users
  273. </pre>
  274. </div>
  275. <pre class="example">
  276. rinri
  277. </pre>
  278. <p>
  279. Code:
  280. </p>
  281. <div class="org-src-container">
  282. <pre class="src src-bash"><span style="color: #c792ea;">pwd</span>
  283. </pre>
  284. </div>
  285. <pre class="example">
  286. /home/rinri/edu/sna
  287. </pre>
  288. <p>
  289. Code:
  290. </p>
  291. <div class="org-src-container">
  292. <pre class="src src-bash"><span style="color: #c792ea;">ls</span> -la
  293. </pre>
  294. </div>
  295. <pre class="example">
  296. total 224
  297. drwxr-xr-x 2 rinri users 4096 Feb 2 15:47 .
  298. drwxr-xr-x 25 rinri users 4096 Feb 2 14:13 ..
  299. -rw-r--r-- 1 rinri users 20424 Feb 2 16:32 lab1.html
  300. -rw-r--r-- 1 rinri users 6592 Feb 2 16:32 lab1.org
  301. -rw-r--r-- 1 rinri users 190030 Feb 2 15:45 lab1.pdf
  302. </pre>
  303. <p>
  304. Code:
  305. </p>
  306. <div class="org-src-container">
  307. <pre class="src src-bash"><span style="color: #c792ea;">cd</span> ~/library
  308. <span style="color: #c792ea;">ls</span> -la
  309. </pre>
  310. </div>
  311. <pre class="example" id="org95787e4">
  312. total 17260
  313. drwxr-xr-x 2 rinri users 4096 Jan 8 10:47 .
  314. drwx--x---+ 74 rinri users 4096 Feb 2 16:31 ..
  315. -rw-r--r-- 1 rinri users 6556637 Jan 8 10:47 Andrew S. Tanenbaum - Modern Operating Systems.pdf
  316. lrwxrwxrwx 1 rinri users 38 Aug 3 2022 cormen-algos.pdf -&gt; /home/rinri/data/docs/cormen-algos.pdf
  317. lrwxrwxrwx 1 rinri users 93 Aug 3 2022 genki -&gt; /home/rinri/data/docs/Banno E., Ikeda Y., Ohno Y., Shinagawa Ch., Tokashiki K. - Genki - 2020
  318. -rw-r--r-- 1 rinri users 213363 Jan 8 10:47 ipfs-p2p-file-system.pdf
  319. -rwxr-xr-x 1 rinri users 66 Aug 3 2022 library.sh
  320. -rw-r--r-- 1 rinri users 2658531 Jan 8 10:47 Stroustrup B. - A Tour of C++ - Second Edition - 2018.pdf
  321. -rw-r--r-- 1 rinri users 8220353 Jan 8 10:47 TRENCH_FREE_DIFFEQ_I.PDF
  322. </pre>
  323. <p>
  324. Code:
  325. </p>
  326. <div class="org-src-container">
  327. <pre class="src src-bash"><span style="color: #c792ea;">cat</span> /etc/shells
  328. </pre>
  329. </div>
  330. <pre class="example">
  331. # Pathnames of valid login shells.
  332. # See shells(5) for details.
  333. /bin/sh
  334. /bin/bash
  335. /bin/zsh
  336. /usr/bin/zsh
  337. /usr/bin/git-shell
  338. /bin/dash
  339. </pre>
  340. <p>
  341. Code:
  342. </p>
  343. <div class="org-src-container">
  344. <pre class="src src-bash"><span style="color: #c792ea;">echo</span> <span style="color: #c3e88d;">"</span><span style="color: #f78c6c;">$</span><span style="color: #ffcb6b;">SHELL</span><span style="color: #c3e88d;">"</span>
  345. </pre>
  346. </div>
  347. <pre class="example">
  348. /bin/zsh
  349. </pre>
  350. </div>
  351. </div>
  352. <div id="outline-container-orge29640a" class="outline-2">
  353. <h2 id="orge29640a"><span class="section-number-2">3.</span> Questions</h2>
  354. <div class="outline-text-2" id="text-3">
  355. </div>
  356. <div id="outline-container-orge1aa2bd" class="outline-3">
  357. <h3 id="orge1aa2bd"><span class="section-number-3">3.1.</span> Using hostname command:</h3>
  358. <div class="outline-text-3" id="text-3-1">
  359. <p>
  360. Code:
  361. </p>
  362. <div class="org-src-container">
  363. <pre class="src src-bash">hostname
  364. </pre>
  365. </div>
  366. <pre class="example">
  367. akemi
  368. </pre>
  369. </div>
  370. </div>
  371. <div id="outline-container-orgfd20bdc" class="outline-3">
  372. <h3 id="orgfd20bdc"><span class="section-number-3">3.2.</span> Arch Linux.</h3>
  373. <div class="outline-text-3" id="text-3-2">
  374. <p>
  375. It&rsquo;s a rolling-release distribution. That&rsquo;s why there is no &ldquo;version&rdquo;. I&rsquo;ve been using it for several years. Used lsb_release -a command to check the info.
  376. </p>
  377. </div>
  378. </div>
  379. <div id="outline-container-orge186e45" class="outline-3">
  380. <h3 id="orge186e45"><span class="section-number-3">3.3.</span> The root directory is &ldquo;/&rdquo;</h3>
  381. </div>
  382. <div id="outline-container-orgc55cfc1" class="outline-3">
  383. <h3 id="orgc55cfc1"><span class="section-number-3">3.4.</span> /bin/bash vs /bin/sh</h3>
  384. <div class="outline-text-3" id="text-3-4">
  385. <p>
  386. /bin/bash is a path to the bash shell. Whereas /bin/sh, on most of the systems, is a symbolic link to a POSIX-compliant shell. In many cases, it&rsquo;s linked to bash. On my machine, it&rsquo;s dash (it&rsquo;s usually faster if the script is POSIX-compliant)
  387. </p>
  388. <p>
  389. Code:
  390. </p>
  391. <div class="org-src-container">
  392. <pre class="src src-bash"><span style="color: #c792ea;">ls</span> -l /bin/sh
  393. </pre>
  394. </div>
  395. <pre class="example">
  396. lrwxrwxrwx 1 root root 4 Jul 3 2022 /bin/sh -&gt; dash
  397. </pre>
  398. </div>
  399. </div>
  400. <div id="outline-container-org78ddece" class="outline-3">
  401. <h3 id="org78ddece"><span class="section-number-3">3.5.</span> Bash manual</h3>
  402. <div class="outline-text-3" id="text-3-5">
  403. <ol class="org-ol">
  404. <li>&#x2013;verbose - When verbose mode is used, bash doesn&rsquo;t hide extra information (prints it), including all the steps done of a script, bashrc commands, and other info.</li>
  405. <li>&#x2013;help - shows help message</li>
  406. <li>&#x2013;rcfile file - use &ldquo;file&rdquo; as a initialization file instead of ~/.bashrc</li>
  407. </ol>
  408. </div>
  409. </div>
  410. <div id="outline-container-org65d1d72" class="outline-3">
  411. <h3 id="org65d1d72"><span class="section-number-3">3.6.</span> Linux distributions I want to try</h3>
  412. <div class="outline-text-3" id="text-3-6">
  413. </div>
  414. <div id="outline-container-orgf7d803e" class="outline-4">
  415. <h4 id="orgf7d803e"><span class="section-number-4">3.6.1.</span> NixOS</h4>
  416. <div class="outline-text-4" id="text-3-6-1">
  417. <p>
  418. NixOS uses a unique package manager called nix that solves many problems of common package managers (e.g. apt), including dependency hell.
  419. Apart from the package manager, NixOS has single configuration file for the entire system.
  420. Moreover, NixOS saves different &ldquo;states&rdquo; of the OS, and a user can rollback, for example, to the yesterday&rsquo;s state of the OS if something breaks.
  421. </p>
  422. </div>
  423. </div>
  424. <div id="outline-container-org2fdefff" class="outline-4">
  425. <h4 id="org2fdefff"><span class="section-number-4">3.6.2.</span> Gentoo Linux</h4>
  426. <div class="outline-text-4" id="text-3-6-2">
  427. <p>
  428. Gentoo Linux also uses a unique package manager called Portage.
  429. To install software on Gentoo, Portage builds most of the packages from source and allows user to optimize the software for their own needs.
  430. Gentoo also allows to use OpenRC as an init system instead of systemd. Even though OpenRC doesn&rsquo;t have many features of systemd, it&rsquo;s significantly lighter and simpler than systemd.
  431. </p>
  432. </div>
  433. </div>
  434. <div id="outline-container-org9c9b380" class="outline-4">
  435. <h4 id="org9c9b380"><span class="section-number-4">3.6.3.</span> Artix Linux</h4>
  436. <div class="outline-text-4" id="text-3-6-3">
  437. <p>
  438. Artix Linux is essentially Arch Linux, but it gives several options for the init system, including OpenRC, runit, s6, and others.
  439. </p>
  440. </div>
  441. </div>
  442. <div id="outline-container-org1bf8e90" class="outline-4">
  443. <h4 id="org1bf8e90"><span class="section-number-4">3.6.4.</span> LFS</h4>
  444. <div class="outline-text-4" id="text-3-6-4">
  445. <p>
  446. LFS allows a user to build their own Linux distribution. I think it allows a user to learn many things about Linux.
  447. </p>
  448. </div>
  449. </div>
  450. <div id="outline-container-org896f88e" class="outline-4">
  451. <h4 id="org896f88e"><span class="section-number-4">3.6.5.</span> Alpine Linux</h4>
  452. <div class="outline-text-4" id="text-3-6-5">
  453. <p>
  454. Alpine Linux is a lightweight Linux distribution, since it uses musl libc instead of glibc and busybox instead of GNU coreutils. It&rsquo;s widely used in Docker Images, thus it&rsquo;s useful to learn Alpine Linux.
  455. </p>
  456. </div>
  457. </div>
  458. </div>
  459. <div id="outline-container-orgc4925a6" class="outline-3">
  460. <h3 id="orgc4925a6"><span class="section-number-3">3.7.</span> POSIX</h3>
  461. <div class="outline-text-3" id="text-3-7">
  462. <p>
  463. POSIX is a family of standards created to maintain compatibility between operating systems.
  464. For example, POSIX-compliant shell I mentioned earlier, is a shell that does things as mentioned in the POSIX standard for shells.
  465. If a script is POSIX-compliant, any POSIX-compliant shell can run it without issues and the script usually starts with #!/bin/sh
  466. Some of the information is taken from Wikipedia.
  467. </p>
  468. </div>
  469. </div>
  470. <div id="outline-container-org520649a" class="outline-3">
  471. <h3 id="org520649a"><span class="section-number-3">3.8.</span> Advantages of POSIX standards</h3>
  472. <div class="outline-text-3" id="text-3-8">
  473. <p>
  474. If a program is written with POSIX in mind, then it should work on other POSIX OSes too. Thus the portability increases.
  475. Since POSIX standards are public, everyone can create programs that can work and communicate with other POSIX-compliant programs.
  476. </p>
  477. </div>
  478. </div>
  479. <div id="outline-container-org7b5efac" class="outline-3">
  480. <h3 id="org7b5efac"><span class="section-number-3">3.9.</span> Slackware vs Debian</h3>
  481. <div class="outline-text-3" id="text-3-9">
  482. <p>
  483. Both distributions are old (29 years old), but both are still maintained.
  484. </p>
  485. <p>
  486. Slackware tries to be stable and simple, thus makes as few changes to the software as possible. It uses pkgtool package management system.
  487. There are not that many packages available in Slackware, but users can use third-party repositories to install software or update the system.
  488. Slackware has a small team of developers, whereas Debian is an popular distribution, that has many maintainers.
  489. </p>
  490. <p>
  491. Debian stable is widely used on servers, thanks to its stability and long-term support, while Debian unstable (rolling-release) and testing are used on PCs.
  492. Debian uses apt (with dpkg) package management system. There are many Linux distributions based on Debian, e.g. Ubuntu, MX linux, etc.
  493. </p>
  494. </div>
  495. </div>
  496. <div id="outline-container-org12183b1" class="outline-3">
  497. <h3 id="org12183b1"><span class="section-number-3">3.10.</span> uname -a</h3>
  498. <div class="outline-text-3" id="text-3-10">
  499. <p>
  500. Code:
  501. </p>
  502. <div class="org-src-container">
  503. <pre class="src src-bash">uname -a
  504. </pre>
  505. </div>
  506. <pre class="example">
  507. Linux akemi 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux
  508. </pre>
  509. <ol class="org-ol">
  510. <li>Kernel name:
  511. Linux</li>
  512. <li>Hostname:
  513. akemi</li>
  514. <li>Kernel release version and kernel version:
  515. 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000</li>
  516. <li>Hardware platform name:
  517. x86_64</li>
  518. <li>Operating system name:
  519. GNU/Linux</li>
  520. </ol>
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. <div id="postamble" class="status">
  526. <p class="author">Author: Amirlan Sharipov (BS21-CS-01)</p>
  527. <p class="date">Created: 2023-02-02 Thu 16:34</p>
  528. </div>
  529. </body>
  530. </html>